tr , td {
padding:6px;
border-spacing:0px;
border-width:0px;
}

Drive Green Form
First Name*
Last Name*
Email* See our Privacy Policy Here

var mndFileds=new Array(‘First Name’,’Last Name’,’Email’);
var fldLangVal=new Array(‘First Name’,’Last Name’,’Email’);
var name=”;
var email=”;

function checkMandatory() {
for(i=0;i<mndFileds.length;i++) {
var fieldObj=document.forms['WebToLeads35579000000508009'][mndFileds[i]];
if(fieldObj) {
if (((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0) {
if(fieldObj.type =='file')
{
alert('Please select a file to upload.');
fieldObj.focus();
return false;
}
alert(fldLangVal[i] +' cannot be empty');
fieldObj.focus();
return false;
} else if(fieldObj.nodeName=='SELECT') {
if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') {
alert(fldLangVal[i] +' cannot be none');
fieldObj.focus();
return false;
}
} else if(fieldObj.type =='checkbox'){
if(fieldObj.checked == false){
alert('Please accept '+fldLangVal[i]);
fieldObj.focus();
return false;
}
}
try {
if(fieldObj.name == 'Last Name') {
name = fieldObj.value;
}
} catch (e) {}
}
}
}