var xmlHttp var strSpanID function writeEmailSignupForm(strSpanID1) { var qt qt='"' document.getElementById(strSpanID1).innerHTML="Email "; } function getProductName(str,strSpanID1) { strSpanID=strSpanID1; if (str.length==0) { document.getElementById(strSpanID).innerHTML=""; return; } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="ajax_submit.asp"; url=url+"?pn="+str; url=url+"&action=getProductName"; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true) xmlHttp.send(null) } function getOrderTotalCart(id,shell_id,oc,sb,state,zip,country,address1,address2,company,AddrType,strSpanID1) { strSpanID=strSpanID1; if (id.length==0) { document.getElementById(strSpanID).innerHTML=""; return; } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="/ajax_submit.asp"; url=url+"?id="+id; url=url+"&shell_id="+shell_id; url=url+"&oc="+oc; url=url+"&sb="+sb; url=url+"&state="+state; url=url+"&zip="+zip; url=url+"&country="+country; url=url+"&address1="+address1; url=url+"&address2="+address2; url=url+"&company="+company; url=url+"&addrType="+AddrType; url=url+"&spanid="+strSpanID; url=url+"&action=getOrderTotalCart"; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true) xmlHttp.send(null) } function addEmail(str,strSpanID1) { strSpanID=strSpanID1; if (str.length==0) { document.getElementById(strSpanID).innerHTML=""; return; } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="/ajax_submit.asp"; url=url+"?email="+str; url=url+"&action=addEmail"; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4) { document.getElementById(strSpanID).innerHTML=xmlHttp.responseText; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; }