			<!--
			
			
			if (document.all)
			    var xMax = screen.width, yMax = screen.height;
			else
			    if (document.layers)
			        var xMax = window.outerWidth, yMax = window.outerHeight;
			    else
			        var xMax = 640, yMax=480;

			var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;

		           
			
			
			    function EmptyCart()
                {
                alert("Your cart is currently empty!");
                }

                 function EmptyCartNew()
                 {

                window.location.href = "http://www.karmaloop.com/check_out.asp"
                }
			
			
				function	PopUp(file,name,size) 
				{
					msgWindow=open(file,name,size);
					if (msgWindow.opener == null) msgWindow.opener	= self;
				}

				function	LTrim(str) 
				{
					for (var	i=0; str.charAt(i)==" "; i++);
					return str.substring(i,str.length);
				}
					
				function	RTrim(str) 
				{
					for (var	i=str.length-1; str.charAt(i)=="	";	i--);
					return str.substring(0,i+1);
				}

				function	Trim(str) 
				{
					return LTrim(RTrim(str));
				}
				
				function	Tracking(echoTrackForm)
				{
					if(echoTrackForm.XMLOut.value == "")
					{
						alert("Please enter your Shipment Tracking number!.");
						echoTrackForm.XMLOut.focus();
						return(false);
					}
					
					if(echoTrackForm.XMLOut.value.length < 9)
					{
						alert("Please enter the correct Tracking number!.");
						echoTrackForm.XMLOut.focus();
						return(false);
					}
					return(true);
				}
				
				function	EmailCheck(echoForm)
				{
					if(echoForm.Email.value == "")
					{
						alert("Please enter	your email address.");
						echoForm.Email.focus();
						return(false);
					}
  
					var value	= Trim(echoForm.Email.value);
					var pattern = /[^@_\.\w\d\-]|@@|\.\.|__|^@|^\.|^_|@$|\.$|_$|@\.|\.@|@_|_@|\._|_\.|(@)[^@]*\1/g;
					
					if((((value.match(/@/)) && (value.match(/\./))) == null)||(value.match(pattern) != null))
					{
						alert("Please double check the to email address.");
						echoForm.Email.focus();
						return(false);
					}

					return(true);
				}
				
				var how_many_tiles = 2;
				var now = new Date()
				var sec = now.getSeconds()
				var tile = sec % how_many_tiles;
				tile +=1;
				if (tile==1) {
				tileimage="Karma/homepage/girlguylinkz1.jpg";
				map="#LinksMap15";
				width="614";
				height="233";
				}
				if (tile==2) {
				tileimage="Karma/homepage/girlguylinkz3.jpg";
				map="#LinksMap16";
				width="614";
				height="231";
				}
				

				
				
			//-->
