// JavaScript Document
function onOver(form,i) {
	var arr = Array( "#DCE9F2", "#FED2AF", "#FDDDE9", "#D8BFD0", "#BBE8DE", "#FDF8F3", "#F5F5BF", "#F0C5C6", "#FFFF99", "#F1D1FF" )
	form.style.backgroundColor = arr[i-1];
	form.style.cursor="hand";
}
function swapImage(img,path) {
   img.src = path
}
function onOut(form) {
	form.style.backgroundColor = "#FFFFFF";
}
function OpenWi(input){
   // alert(input)
    window.name="List"
	window.open(input,"List")
}
function SamOnClick(f,check) {
  if (check.checked == true ) {  
	f.orderform.shippingName.value       = f.orderform.name.value
    f.orderform.shippingLastName.value   = f.orderform.lastName.value
	f.orderform.shippingCompany.value    = f.orderform.customerCompany.value
    f.orderform.shippingAddress.value    = f.orderform.address.value
	f.orderform.shippingCity.value	     = f.orderform.city.value
	f.orderform.shippingZip.value        = f.orderform.zip.value 
	for(i=0;i<f.orderform.shippinglocCountry.length;i++){
		if(f.orderform.shippinglocCountry.options[i].value==f.orderform.locCountry.options[f.orderform.locCountry.selectedIndex].value){
			f.orderform.shippinglocCountry.options[i].selected=true
			
	    }
	}
	for(i=0;i<f.orderform.shippinglocState.length;i++){
		if(f.orderform.shippinglocState.options[i].value==f.orderform.locState.options[f.orderform.locState.selectedIndex].value){
			f.orderform.shippinglocState.options[i].selected=true
			
	    }
	}	
	f.orderform.shippingPhone.value      = f.orderform.phone.value
	f.orderform.shipMail.value			 = f.orderform.email.value	
  } else {
    f.orderform.shippingName.value       	     		= ""
    f.orderform.shippingLastName.value   		 		= ""
	f.orderform.shippingCompany.value    				= ""
    f.orderform.shippingAddress.value    				= ""
	f.orderform.shippingCity.value	     				= ""
	f.orderform.shippingZip.value	 	 		 		= ""
	f.orderform.shippinglocState.options[0].selected    = true   
	f.orderform.shippinglocCountry.options[0].selected  = true 
	f.orderform.shippingPhone.value      		 		= ""
	f.orderform.shipMail.value			 				= ""
  }
  document.orderform.action = "ShipArray.asp"
  document.orderform.submit()

}

function check() {
	var locState           = document.orderform.locState
	var locCountry         = document.orderform.locCountry
	var shippinglocState   = document.orderform.shippinglocState
	var shippinglocCountry = document.orderform.shippinglocCountry
	document.orderform.action = "ShipArray.asp"
	document.orderform.submit()

}

function changeFocus(f) {
	//if (f.name == "locState")
     //    document.orderform.locCountry").focus()   
	//if (f.name == "shippinglocState")
	 //    document.orderform.shippinglocCountry").focus()
}