
function mailOut(){

// mailout for maxiautomotive must call the mailoutmaxiauto.asp file on the networksolutions
// server, the enertron server will not allow mail output.


var x=document.getElementById("form1");
var taxid=document.getElementById("taxId").value;
var companyname=document.getElementById("companyName").value;
var contactname=document.getElementById("contactName").value;
var address=document.getElementById("address").value;
var city=document.getElementById("city").value;
var zip=document.getElementById("zip").value;
var phone=document.getElementById("phone").value;
var emailname=document.getElementById("emailad").value;
var msgfield=document.getElementById("comments").value;
var myString = "body=taxid is "+taxid+", company name is "+companyname+", contact name is "+contactname+", address is "+address+", city is "+city+",zip code is "+zip+", phone number is "+phone+", email is "+emailname+", extra notes field is "+msgfield;
//window.alert(myString);
var myAction = "http://www.metromaxi.com/mailout/mailoutmaxiauto.asp?"+myString;
x.action=myAction;
//x.submit();
//document.getElementById("contactUs").submit();
document.getElementById("form1").submit();

}

