function stopError(){
return true;
}
window.onerror=stopError;

function a(form){
 for(var b=0;b<form.elements.length;b++){
  if((form.elements[b].selectedIndex>-1)){
   if(form.elements[b].selectedIndex==0){
     alert('Please select a '+form.elements[b].name.toLowerCase());
   return false;
    }
   }
  }
 return true;
}


<!-- Begin
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->

function setCookie(path, expiredays) {
  var ExpireDate = new Date ();
  ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
  document.cookie = "path=" + escape(path) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function getCookie(path) {
  if (document.cookie.length > 0) { 
    begin = document.cookie.indexOf(path+"="); 
    if (begin != -1) {   
      begin += path.length+1; 
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
      return unescape(document.cookie.substring(begin, end));
    } 
  }
return ""; 
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=520,height=520,left = 10,top = 10');");
}


function setCookieY(name, value, expiredays) {
  var ExpireDate = new Date ();
  ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
  document.cookie = name+"=" + escape(value) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

function isValidEmail(str) {
  return (str.indexOf("@") > 0);
}

function moveValues() {

if (!isValidEmail(document.multi_add1.emailAddress.value)) 
   { 
   alert('Please enter valid email address') 
   return false; 
   } 

var today = new Date();
var millisecond = Math.round((1100000000000-today.getTime())*(-1)/1000);
setCookieY("quotenumber", millisecond, 7);

var val1 = document.single_as1505xxbxs.vwquantity.value;
setCookieY("w1", val1, 7);
var quote = "&w1=" + val1;
var val1 = document.single_as1505xxbxs.vwattr0_Size.value;
document.multi_add1.vwattr0_Size.value = val1;

var val1 = document.single_as1505xxbs.vwquantity.value;
setCookieY("w2", val1, 7);
var quote = quote + "&w2=" + val1;
var val1 = document.single_as1505xxbs.vwattr1_Size.value;
document.multi_add1.vwattr1_Size.value = val1;

var val1 = document.single_as1505xxgs.vwquantity.value;
setCookieY("w3", val1, 7);
var quote = quote + "&w3=" + val1;
var val1 = document.single_as1505xxgs.vwattr2_Size.value;
document.multi_add1.vwattr2_Size.value = val1;

var val1 = document.single_as1505xxcs.vwquantity.value;
setCookieY("w4", val1, 7);
var quote = quote + "&w4=" + val1;
var val1 = document.single_as1505xxcs.vwattr3_Size.value;
document.multi_add1.vwattr3_Size.value = val1;

var val1 = document.single_as1505xxbm.vwquantity.value;
setCookieY("w5", val1, 7);
var quote = quote + "&w5=" + val1;
var val1 = document.single_as1505xxbm.vwattr4_Size.value;
document.multi_add1.vwattr4_Size.value = val1;

var val1 = document.single_as1505xxgm.vwquantity.value;
setCookieY("w6", val1, 7);
var quote = quote + "&w6=" + val1;
var val1 = document.single_as1505xxgm.vwattr5_Size.value;
document.multi_add1.vwattr5_Size.value = val1;

var val1 = document.single_as1505xxcm.vwquantity.value;
setCookieY("w7", val1, 7);
var quote = quote + "&w7=" + val1;
var val1 = document.single_as1505xxcm.vwattr6_Size.value;
document.multi_add1.vwattr6_Size.value = val1;

var val1 = document.single_as1505xxbl.vwquantity.value;
setCookieY("w8", val1, 7);
var quote = quote + "&w8=" + val1;
var val1 = document.single_as1505xxbl.vwattr7_Size.value;
document.multi_add1.vwattr7_Size.value = val1;

var val1 = document.single_as1505xxgl.vwquantity.value;
setCookieY("w9", val1, 7);
var quote = quote + "&w9=" + val1;
var val1 = document.single_as1505xxgl.vwattr8_Size.value;
document.multi_add1.vwattr8_Size.value = val1;

var val1 = document.single_as1505xxcl.vwquantity.value;
setCookieY("w10", val1, 7);
var quote = quote + "&w10=" + val1;
var val1 = document.single_as1505xxcl.vwattr9_Size.value;
document.multi_add1.vwattr9_Size.value = val1;

var val1 = document.single_as1505pxs.vwquantity.value;
setCookieY("p1", val1, 7);
var quote = quote + "&p1=" + val1;
var val1 = document.single_as1505pxs.vwattr10_Size.value;
document.multi_add1.vwattr10_Size.value = val1;

var val1 = document.single_as1505pxm.vwquantity.value;
setCookieY("p2", val1, 7);
var quote = quote + "&p2=" + val1;
var val1 = document.single_as1505pxm.vwattr11_Size.value;
document.multi_add1.vwattr11_Size.value = val1;

var val1 = document.single_as1505pxl.vwquantity.value;
setCookieY("p3", val1, 7);
var quote = quote + "&p3=" + val1;
var val1 = document.single_as1505pxl.vwattr12_Size.value;
document.multi_add1.vwattr12_Size.value = val1;

var val1 = document.single_as1505pxxl.vwquantity.value;
setCookieY("p4", val1, 7);
var quote = quote + "&p4=" + val1;
var val1 = document.single_as1505pxxl.vwattr13_Size.value;
document.multi_add1.vwattr13_Size.value = val1;

window.open('http://ejones.com/cgi-bin/yaktraxmail.pl?mail='+document.multi_add1.emailAddress.value+quote,'newWin','fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=240');

}

function processNotify() {

var item = document.notify.nitem.value;
var itemname = document.notify.nitemname.value;
var name = document.notify.nname.value;
var email = document.notify.nemail.value;
var website = document.notify.nwebsite.value;

window.open('http://www.ejones.com/cgi-bin/notifymail.pl?name='+name+'&email='+email+'&website='+website+'&itemname='+itemname+'&item='+item,'newWin','fullscreen=no,titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=240');

}
