// encrypt email addresses
function ee(name, domain, suffix, text)
{
   var address = name + "\u0040" + domain + "." + suffix;
   var url = "mai" + "lto:" + address;

   if( ! text )
   {
      text = address;
   }

   document.write("<a href=\"" + url + "\">" + text + "</a>");
}


function copytext() {
if (document.form1.SameDelivery.checked) {
document.form1.DeliveryAddress1.value=document.form1.BillingAddress1.value
document.form1.DeliveryAddress2.value=document.form1.BillingAddress2.value
document.form1.ShipCity.value=document.form1.BillingCity.value
document.form1.ShipRegion.value=document.form1.BillingRegion.value
document.form1.ShipPostalCode.value=document.form1.BillingPostalCode.value
document.form1.ShipCountry.value=document.form1.BillingCountry.value
}
else {
document.form1.DeliveryAddress1.value=""
document.form1.DeliveryAddress2.value=""
document.form1.ShipCity.value=""
document.form1.ShipRegion.value=""
document.form1.ShipPostalCode.value=""
document.form1.ShipCountry.value=""
}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function cp() {
var cperr=''
if (document.form1.CustomerPassword.value != document.form1.Confirm.value) { cperr += 'Please confirm password' }
if (cperr !='') { alert(cperr) }  
document.MM_returnValue2 = (cperr=='')
}
