function sendCart(fldname,fldvalue) {
//alert('Posting: '+'ajaxcart.asp+f1='+escape(fldname)+'&f2='+escape(fldvalue));
   xmlhttpPost('ajaxcart.asp','f1='+escape(fldname)+'&f2='+escape(fldvalue));

}

function xmlhttpPost(strURL, parms) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(parms);
}


function updatepage(str){
    eval(str);
    //document.getElementById("result").innerHTML = str;
}

function ValidateForm7(frm) {

	  var er1 = '';
	  if (frm.compname.value.length==0)
	  {
		  er1 += 'You must enter your company name.\n';
	  }
	  if (frm.ccname.value.length==0)
	  {
		  er1 += 'You must enter the name on your credit card.\n';
	  }
	  if (frm.Address1.value.length==0)
	  {
		  er1 += 'You must enter your credit card billing address.\n';
	  }
	  if (frm.City.value.length==0)
	  {
		  er1 += 'You must enter your credit card billing city.\n';
	  }
	  if (frm.State.value.length==0)
	  {
		  er1 += 'You must enter your credit card billing state.\n';
	  }
	  if (frm.zip.value.length==0)
	  {
		  er1 += 'You must enter your credit card billing ZIP code.\n';
	  }
	  if (frm.phone.value.length==0)
	  {
		  er1 += 'You must enter your credit card phone #.\n';
	  }
	  if (frm.email.value.length==0)
	  {
		  er1 += 'You must enter your email address.\n';
	  }
	  if (frm.ccnum.value.length<16)
	  {
		  er1 += 'You must enter your credit card number.\n';
	  }
	  if (frm.ccmo.selectedIndex<1)
	  {
		  er1 += 'You must choose your credit card expiration month.\n';
	  }
	  if (frm.ccyr.selectedIndex<1)
	  {
		  er1 += 'You must choose your credit card expiration year.\n';
	  }

	  if (er1!='')
	  {
		  alert(er1);
		  return false;
	  }
	  return true;
}
