var xmlHttp

function savecustomer(str1,str2,str3,str4,str5,str6,str7,str8,str9,str10,str11,str12,str13,str14,str15,str16,str17,str18,str19,str20,str21,str22)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 

var url="commonInc/savecustomerfp.asp";
url=url+"?fname="+str1+"&lname="+str2+"&addr1="+str3+"&addr2="+str4+"&city="+str5+"&state="+str6+"&zip="+str7+"&email="+str8+"&phone1="+str9+"&phone2="+str10+"&phone3="+str11+"&ipadd="+str12+"&masteraff="+str13+"&aff="+str14+"&aff2="+str15+"&aff3="+str16+"&aff4="+str17+"&aff5="+str18+"&wphone1="+str19+"&wphone2="+str20+"&wphone3="+str21+"&mcarrier="+str22;
//window.location = url;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);

}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.frm.orderid.value=xmlHttp.responseText;
document.frm.action="index2.asp";
document.frm.submit();
}
}

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;
}

