<!-- this is code for rollovers
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
<!-- this is code to put up an alert box for illegal characters - public and private forms
function validForm() {
var badChar = "\+;*^\"&<>~`[]|";
var badCharName = "\'";
for (j=0;j<badChar.length;j++){
var illChar = badChar.charAt(j);
var themessage = "You are required to complete the following field:";

if (document['usaorders']['x_Ship_To_First_Name'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the first name");
document.usaorders.x_Ship_To_First_Name.focus()
return false;
}
if (document['usaorders']['x_Ship_To_First_Name2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to first name");
document.usaorders.x_Ship_To_First_Name2.focus()
return false;
}

if (document['usaorders']['x_Ship_To_Last_Name'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the last name");
document.usaorders.x_Ship_To_Last_Name.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Last_Name'].value.indexOf(badCharName,0) !=-1){
alert("Please remove the apostrophe from the Bill-to Last Name");
document.usaorders.x_Ship_To_Last_Name.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Last_Name2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to last name");
document.usaorders.x_Ship_To_Last_Name2.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Address'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the address");
document.usaorders.x_Ship_To_Address.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Address2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to address");
document.usaorders.x_Ship_To_Address2.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Company'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the apartment line");
document.usaorders.x_Ship_To_Company.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Company2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to apartment line");
document.usaorders.x_Ship_To_Company2.focus()
return false;
}
if (document['usaorders']['x_Ship_To_City'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the city");
document.usaorders.x_Ship_To_City.focus()
return false;
}
if (document['usaorders']['x_Ship_To_City2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to city");
document.usaorders.x_Ship_To_City2.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Zip'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the zip");
document.usaorders.x_Ship_To_Zip.focus()
return false;
}
if (document['usaorders']['x_Ship_To_Zip2'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the ship-to zip");
document.usaorders.x_Ship_To_Zip2.focus()
return false;
}
if (document['usaorders']['x_Phone'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the phone");
document.usaorders.x_Phone.focus()
return false;
}
if (document['usaorders']['x_Email'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the email");
document.usaorders.x_Email.focus()
return false;
}
if (document['usaorders']['cust_extra_info'].value.indexOf(illChar,0) !=-1){
alert("Please remove quotes or these illegal characters &+;*^<>~`[]| from the special instructions. In place of quotes you may use the apostrophe");
document.usaorders.cust_extra_info.focus()
return false;
}
<!-- this is code to put up an alert box for empty fields - public and private forms
if (document.usaorders.x_Ship_To_First_Name.value=="") {
themessage = themessage + " - First Name";
alert(themessage);
document.usaorders.x_Ship_To_First_Name.focus()
return false;
}
if (document.usaorders.x_Ship_To_Last_Name.value=="") {
themessage = themessage + " - Last Name";
alert(themessage);
document.usaorders.x_Ship_To_Last_Name.focus()
return false;
}
if (document.usaorders.x_Ship_To_Zip.value=="") {
themessage = themessage + " - Zip Code";
alert(themessage);
document.usaorders.x_Ship_To_Zip.focus()
return false;
}
   }
}
//-->
