//this function is to Fill in the same shipping
		//information as billing information. The only thing I
		//ever have to change is the following string depending
		//on how the particular shopping cart parses the 
		//shipping post data
		var shippingString = "ToShip";
		
		function FillInShippingInfo(){
			
			//first see if the checkbox that called this function is checked
			if (document.forms[0].chkShippingSame.checked == true){
			
				for (i = 0; i < document.forms[0].elements.length; i++){
				
					//checks to see if there is we went to far
					//looking for elements of the form by checking if we're
					//up to shipping elements
					if (document.forms[0].elements[i].name.indexOf(shippingString) > -1) break;
				
					//checks the element to see if there is a comparable shipping element
					var shippingElement = document.forms[0].elements[i].name + shippingString;
				
					//makes the shipping element value the same as the billing element value
					if (document.forms[0].elements[shippingElement] != null){
						document.forms[0].elements[shippingElement].value = document.forms[0].elements[i].value;
					}
				}
			}else{//its not checked so clear shipping fields
			
				for (i = 0; i < document.forms[0].elements.length; i++){
				
					//checkts to see if the element has the shippingString in its name
					//and clears its value if it does
					if (document.forms[0].elements[i].name.indexOf(shippingString) > -1){
						document.forms[0].elements[i].value = "";
					}
				}
					
			}//end of is shippingChecked check
		}//end of FillInShippingInfo function
		
		
		
		
		
		
		//this script is to open a new window for the product image
     function openImgWindow(productId){
     
       var windowUrl = "FullImage.aspx?ProductId=" + productId;
       var newWind = window.open(windowUrl, "imgWind", "toolbar=no,menubar=no,status=no,resizable=no");
     }
     

     //for the catalog page, shows a label message for this category
     function CategoryImage_Over(category)
     {
     
		if (BrowserName == "NN")
		{
		  if (BrowserVersion >= 6)
		  {
			document.getElementById("lblMessage").innerHTML = category;
		  }
		  
		}else if((BrowserName == "IE") && (BrowserVersion >= 4))
		{
			document.all["lblMessage"].innerHTML = category;
		}
	 }
	 
	 
	   
     
     
     
     
     
