function drawWarrantyInformationForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form class=ez name=frmWarrantyInformation action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"WarrantyInformation\">");  
    
    document.write("<table class=ez class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0 class=ez>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Cell Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr></table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<tr><td class=ez colspan=2><b>Vehicle Information</b></td></tr>");    
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Kilometres:</td>");
    document.write("<td class=ez><input type=text name=txtKms id=txtKms size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>VIN #:</td>");
    document.write("<td class=ez><input type=text name=txtVIN id=txtVIN size=20></td>");
    document.write("</tr></table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Questions or Comments</b></td></tr>");    
    
    document.write("<tr>");
    document.write("<td class=ez colspan=2><textArea style=\"width:100%\" name=txaComments id=txaComments rows=5 cols=20></textarea></td>");
    document.write("</tr><tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2><input type=button value=\"Submit\" onclick=\"SubmitForm(document.frmWarrantyInformation)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}

function SubmitForm(form)
{
    if(checkWarrantyValidation(form)==1)
    {
        form.submit();
    }  
    
    
}

function chkStr (str, statement) {
    
     if(str.value == ""){
        alert(statement);
        str.focus();
        return(0);
     }
     
     return 1;
}

function chkEmail (email, statement) {
    if(email.value=="")
    {
        alert(statement);
        email.focus();
        return(0);
    }
    else
    {
        var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$";
        var regex = new RegExp(emailReg);
        if(regex.test(trim(email.value))==false)
        {
            alert("Invalid email address");
            email.focus();
            email.select();
            return(0);
        }  else {
            return(1);
        }
                  
    }
    
    
}

function chkPhoneNummber (numb1, statement1, numb2, statement2, numb3, statement3 ) {
    if(trim(numb1.value)=="" && trim(numb2.value)=="" && trim(numb3.value)=="")
    {
        alert("Please enter your phone number");
        numb1.focus();
        return(0);  
    }
    else 
    {
        if(chkStr (numb1, statement1)==0)
		return(0);

	if(chkStr (numb2, statement2)==0)
		return(0);

	if(chkStr (numb3, statement3)==0)
		return(0);
    }
    
    
    
    
    if(chkNumberRange (numb1, "[0-9][0-9][0-9]", "Invalid phone number")==0)
	return(0);

    if(chkNumberRange (numb2, "[0-9][0-9][0-9]", "Invalid phone number")==0)
	return(0);

    if(chkNumberRange (numb3, "[0-9][0-9][0-9][0-9]", "Invalid phone number")==0)
	return(0);
    
    return 1;   
}

function chkNumberRange (numb, range, statement) {
        if(trim(numb.value)!="")
        {
            var emailReg = range;
            var regex = new RegExp(emailReg);
            if(regex.test(trim(numb.value))==false)
            {
                alert(statement);
                numb.focus();
                numb.select();
                return(0);
            } 
                
        }
        
        
    }
function chkIpod(form){
    var submitform = 1;
    
    //Name
    submitform = chkStr (form.txtName, "Please enter your Name");
        
    //Phone
    submitform = chkStr (form.txtPhone, "Please enter your Phone");
    
    //Email
    submitform = chkStr (form.txtEmail, "Please enter your Email");
    
    if (submitform == 1){
        form.submit();
    }
}

function chkAskTech(form){
    var submitform = 1;
    
    //First Name
    submitform = chkStr (form.txtFName, "Please enter your First Name");
        
    //Phone
    submitform = chkStr (form.txtHP1, "Please enter your Home Phone");
    
    //Email
    submitform = chkStr (form.txtEmail, "Please enter your Email");
    
    if (submitform == 1){
        form.submit();
    }
}

function checkWarrantyValidation(form)
{
    var submitform = 1;
    
    //First Name
    submitform = chkStr (form.txtFName, "Please enter your first name");
if(submitform==0)
return(0);
    
    //Email
    submitform = chkEmail (form.txtEmail, "Please enter your email address")
if(submitform==0)
return(0);
    
    //Home Phone
    submitform = chkPhoneNummber (form.txtHP1, "Please enter your home phone", form.txtHP2, "Please enter your home phone", form.txtHP3, "Please enter your home phone" );
    
    return submitform;
}

function trim(stringToTrim) 
{
    if(!stringToTrim || typeof stringToTrim != 'string')
        return "";
    return(stringToTrim.replace(/^\s+|\s+$/g,""));
}



//ASK TECH FORM +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function drawAskTechForm(DealerEmail, SubjectLine, redirectUrl) {
    document.write("<form name=Asktech action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"Asktech\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr></table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Kilometres:</td>");
    document.write("<td class=ez><input type=text name=txtKms id=txtKms size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>VIN #:</td>");
    document.write("<td class=ez><input type=text name=txtVIN id=txtVIN size=20></td>");
    document.write("</tr></table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Questions or Comments</b></td></tr>");    
    
    document.write("<tr>");
    document.write("<td class=ez colspan=2><textArea style=\"width:100%\" name=txaComments id=txaComments rows=5 cols=20></textarea></td>");
    document.write("</tr><tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2><input type=button value=\"Submit\" onclick=\"chkAskTech(document.Asktech)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}


//Ask Parts Expert +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function drawAskPartsExpForm(DealerEmail, SubjectLine, redirectUrl) {
    document.write("<form name=AskPartsExp action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"AskPartsExp\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez valign='top'>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr></table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2>Questions or Comments:<br><textArea style=\"width:100%\" name=txaComments id=txaComments rows=5 cols=20></textarea></td>");
    document.write("</tr><tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2><input type=button value=\"Submit\" onclick=\"SubmitForm(document.AskPartsExp)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}


//Recall+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function drawRecallForm(DealerEmail, SubjectLine, redirectUrl) {
    document.write("<form class=ez name=Recall action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"Recall\">");  
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez valign='top'>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");    
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Preferred Contact:</td>");
    document.write("<td class=ez><input type=text name=txtPreferredContact id=txtPreferredContact size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("</table>");
    document.write("</td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
    document.write("<td class=ez align=right>VIN:</td>");
    document.write("<td class=ez><input type=text name=txtVin id=txtVin size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2>Questions or Comments:<br><textArea style=\"width:100%\" name=txaComments id=txaComments rows=5 cols=20></textarea></td>");
    document.write("</tr><tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2><input type=button value=\"Submit\" onclick=\"SubmitForm(document.Recall)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");
    document.write("</form>");
}

//Book Test Drive ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


function drawBookTestDriveForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form name=frmbooktestDrive action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"frmbooktestDrive\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Cell Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr></table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<tr><td class=ez colspan=2><b>Test Drive Information</b></td></tr>");    
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Desired Day:</td>");
    document.write("<td class=ez>")
    DateInput('desiredDay', true, 'DD-MON-YYYY');
    document.write("</td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Desired Time:</td>");
    document.write("<td class=ez><select name='desiredTime'>");
     for (i=8; i<=11; i++){
        document.write("<option>" + i + ":00 am</option>");
        document.write("<option>" + i + ":15 am</option>");
        document.write("<option>" + i + ":30 am</option>");
        document.write("<option>" + i + ":45 am</option>");
     }
     document.write("<option selected>" + 12 + ":00 pm</option>");
     document.write("<option>" + 12 + ":15 pm</option>");
     document.write("<option>" + 12 + ":30 pm</option>");
     document.write("<option>" + 12 + ":45 pm</option>");
     for (i=1; i<=8; i++){
        document.write("<option>" + i + ":00 pm</option>");
        document.write("<option>" + i + ":15 pm</option>");
        document.write("<option>" + i + ":30 pm</option>");
        document.write("<option>" + i + ":45 pm</option>");
     }
    document.write("</select></td>");
    document.write("</tr>");
   
    document.write("</table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    
    document.write("<tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2 align='center'><input type=button value=\"Submit\" onclick=\"SubmitForm(document.frmbooktestDrive)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}


//Book Service Appointment ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


function drawBookServiceForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form class=ez name=frmBookService action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"frmBookService\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez valign='top'>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Cell Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    
     document.write("<tr>");
    document.write("<td class=ez align=right>Address:</td>");
    document.write("<td class=ez><input type=text name=txtAddress id=txtAddress size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>City:</td>");
    document.write("<td class=ez><input type=text name=txtCity id=txtCity size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Province:</td>");
    document.write("<td class=ez><input type=text name=txtProv id=txtProv size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Postal Code:</td>");
    document.write("<td class=ez><input type=text name=txtPostal id=txtPostal size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Require Shuttle Serivce:</td>");
    document.write("<td class=ez><input type=checkbox name=chkShuttle id=chkShuttle></td>");
    document.write("</tr>");
    
    document.write("</table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    
   
    
    document.write("<tr><td class=ez colspan=2><b>Test Drive Information</b></td></tr>");    
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Kilometres:</td>");
    document.write("<td class=ez><input type=text name=txtKms id=txtKms size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>VIN #:</td>");
    document.write("<td class=ez><input type=text name=txtVIN id=txtVIN size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Desired Day:</td>");
    document.write("<td class=ez>")
    DateInput('desiredDay', true, 'DD-MON-YYYY');
    document.write("</td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Desired Time:</td>");
    document.write("<td class=ez><select name='desiredTime'>");
     for (i=8; i<=11; i++){
        document.write("<option>" + i + ":00 am</option>");
        document.write("<option>" + i + ":15 am</option>");
        document.write("<option>" + i + ":30 am</option>");
        document.write("<option>" + i + ":45 am</option>");
     }
     document.write("<option selected>" + 12 + ":00 pm</option>");
     document.write("<option>" + 12 + ":15 pm</option>");
     document.write("<option>" + 12 + ":30 pm</option>");
     document.write("<option>" + 12 + ":45 pm</option>");
     for (i=1; i<=8; i++){
        document.write("<option>" + i + ":00 pm</option>");
        document.write("<option>" + i + ":15 pm</option>");
        document.write("<option>" + i + ":30 pm</option>");
        document.write("<option>" + i + ":45 pm</option>");
     }
    document.write("</select></td>");
    document.write("</tr>");
   
    document.write("</table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    
    document.write("<tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2 align='center'><input type=button value=\"Submit\" onclick=\"SubmitForm(document.frmBookService)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}


//PARTS INQUIRY++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function drawPartsForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form class=ez name=frmParts action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"frmParts\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez valign='top'>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2 ><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Cell Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr></table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    document.write("<tr><td class=ez colspan=2><b>Vehicle Information</b></td></tr>");    
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Kilometres:</td>");
    document.write("<td class=ez><input type=text name=txtKms id=txtKms size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>VIN #:</td>");
    document.write("<td class=ez><input type=text name=txtVIN id=txtVIN size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right valign='top' ><B>Parts Information:</B></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=center valign='top' colspan='2'>");
    document.write("<table><tr><td class=ez>Item</td><td class=ez align='center'>Part Description</td></tr>");
    document.write("<tr><td class=ez align='center'>1</td><td class=ez align='center'><input type=text name=txtPartDesc1 id=txtPartDesc1 size=20></td></tr>");
    document.write("<tr><td class=ez align='center'>2</td><td class=ez align='center'><input type=text name=txtPartDesc2 id=txtPartDesc2 size=20></td></tr>");
    document.write("<tr><td class=ez align='center'>3</td><td class=ez align='center'><input type=text name=txtPartDesc3 id=txtPartDesc3 size=20></td></tr>");
    document.write("<tr><td class=ez align='center'>4</td><td class=ez align='center'><input type=text name=txtPartDesc4 id=txtPartDesc4 size=20></td></tr>");
    document.write("</table>");
    document.write("</td>");
    document.write("</tr>");
    
    
    
    document.write("</table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Questions or Comments</b></td></tr>");    
    
    document.write("<tr>");
    document.write("<td class=ez colspan=2><textArea style=\"width:100%\" name=txtComments id=txtComments rows=5 cols=20></textarea></td>");
    document.write("</tr><tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2><input type=button value=\"Submit\" onclick=\"SubmitForm(document.frmParts)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}



// TRADE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


function drawTradeForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form class=ez name=frmTrade action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"frmTrade\">");  
    
    document.write("<table class=ez align=center bgcolor=#eaeaea border=0 cellpadding=10 cellspacing=0><Tr><td class=ez valign='top'>");       
    document.write("<table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr><td class=ez colspan=2><b>Personal Information</b></td></tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;First Name:</td>");
    document.write("<td class=ez><input type=text name='txtFName' id='txtFName' size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Last Name:</td>");
    document.write("<td class=ez><input type=text name=txtLName id=txtLName size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Email:</td>");
    document.write("<td class=ez><input type=text name=txtEmail id=txtEmail size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right><font color=red>*</font>&nbsp;Home Phone:</td>");
    document.write("<td class=ez><input type=text name=txtHP1 id=txtHP1 size=3 maxlength=3>&nbsp;<input type=text name=txtHP2 id=txtHP2 size=3 maxlength=3>&nbsp;<input type=text name=txtHP3 id=txtHP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Work Phone:</td>");
    document.write("<td class=ez><input type=text name=txtWP1 id=txtWP1 size=3 maxlength=3>&nbsp;<input type=text name=txtWP2 id=txtWP2 size=3 maxlength=3>&nbsp;<input type=text name=txtWP3 id=txtWP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Cell Phone:</td>");
    document.write("<td class=ez><input type=text name=txtCP1 id=txtCP1 size=3 maxlength=3>&nbsp;<input type=text name=txtCP2 id=txtCP2 size=3 maxlength=3>&nbsp;<input type=text name=txtCP3 id=txtCP3 size=4 maxlength=4></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Address:</td>");
    document.write("<td class=ez><input type=text name=txtAddress id=txtAddress size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>City:</td>");
    document.write("<td class=ez><input type=text name=txtCity id=txtCity size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Province:</td>");
    document.write("<td class=ez><input type=text name=txtProv id=txtProv size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=right>Postal Code:</td>");
    document.write("<td class=ez><input type=text name=txtPostal id=txtPostal size=20></td>");
    document.write("</tr>");
    
   
    
    document.write("</table></td><td class=ez valign=top><table class=ez border=0 cellpadding=1 cellspacing=0>");
    document.write("<tr>");
    
   
    
    document.write("<tr><td class=ez colspan=2><b>Vehicle Information</b></td></tr>");    
    document.write("<td class=ez align=right>Year:</td>");
    document.write("<td class=ez><input type=text name=txtYear id=txtYear size=20></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td class=ez align=right>Make:</td>");
    document.write("<td class=ez><input type=text name=txtMake id=txtMake size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Model:</td>");
    document.write("<td class=ez><input type=text name=txtModel id=txtModel size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>VIN #:</td>");
    document.write("<td class=ez><input type=text name=txtVIN id=txtVIN size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Trim:</td>");
    document.write("<td class=ez><input type=text name=txtTrim id=txtTrim size=20></td>");
    document.write("</tr>");
   
    document.write("<tr>");
    document.write("<td class=ez align=right>Body Style:</td>");
    document.write("<td class=ez><input type=text name=txtBodyStyle id=txtBodyStyle size=20></td>");
    document.write("</tr>");
   
	document.write("<tr>");
    document.write("<td class=ez align=right>Odometer:</td>");
    document.write("<td class=ez><input type=text name=txtOdometer id=txtOdometer size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Transmission:</td>");
    document.write("<td class=ez><input type=text name=txtTransmission id=txtTransmission size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Exterior Colour:</td>");
    document.write("<td class=ez><input type=text name=txtExtColour id=txtExtColour size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Interior Colour:</td>");
    document.write("<td class=ez><input type=text name=txtIntColour id=txtIntColour size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Current Monthly Payment:</td>");
    document.write("<td class=ez><input type=text name=txtMonthPay id=txtMonthPay size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Lender:</td>");
    document.write("<td class=ez><input type=text name=txtLender id=txtLender size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Pay Off Balance:</td>");
    document.write("<td class=ez><input type=text name=txtPayOff id=txtPayOff size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Estimated Trade-In Value:</td>");
    document.write("<td class=ez><input type=text name=txtTradeInValue id=txtTradeInValue size=20></td>");
    document.write("</tr>");

	document.write("<tr>");
    document.write("<td class=ez align=right>Preferred Contact:</td>");
    document.write("<td class=ez><input type=text name=txtPreferredContact id=txtPreferredContact size=20></td>");
    document.write("</tr>");
	


    document.write("</table></td></tr><tr><td class=ez colspan=2>");
    document.write("<table class=ez width=100% border=0 cellpadding=0 cellspacing=0>");
    
    document.write("<tr><td class=ez colspan=2 align=left>");
    document.write("<table class=ez width='100%'><tr><td class=ez colspan='2'><b>Installed Options</b></td></tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Anti-Theft' id='Anti-Theft'><label for='Anti-Theft'>Anti-Theft</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Dual Rear Wheels' id='Dual Rear Wheels'><label for='Dual Rear Wheels'>Dual Rear Wheels</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Rear Air/Heat' id='Rear Air/Heat'><label for='Rear Air/Heat'>Rear Air/Heat</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Custom 4' id='Custom 4'><label for='Custom 4'>Custom 4</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Power Windows' id='Power Windows'><label for='Power Windows'>Power Windows</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Cassette' id='Cassette'><label for='Cassette'>Cassette</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Video System' id='Video System'><label for='Video System'>Video System</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Single CD' id='Single CD'><label for='Single CD'>Single CD</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='AM/FM Stereo' id='AM/FM Stereo'><label for='AM/FM Stereo'>AM/FM Stereo</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Bra' id='Bra'><label for='Bra'>Bra</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Bed Liner' id='Bed Liner'><label for='Bed Liner'>Bed Liner</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Custom 3' id='Custom 3'><label for='Custom 3'>Custom 3</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='DVD System' id='DVD System'><label for='DVD System'>DVD System</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Navigation System' id='Navigation System'><label for='Navigation System'>Navigation System</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Air Conditioning' id='Air Conditioning'><label for='Air Conditioning'>Air Conditioning</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Luggage Rack' id='Luggage Rack'><label for='Luggage Rack'>Luggage Rack</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Leather' id='Leather'><label for='Leather'>Leather</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='4 Wheel Drive' id='4 Wheel Drive'><label for='4 Wheel Drive'>4 Wheel Drive</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Custom 2' id='Custom 2'><label for='Custom 2'>Custom 2</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Premium Wheels' id='Premium Wheels'><label for='Premium Wheels'>Premium Wheels</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Power Locks' id='Power Locks'><label for='Power Locks'>Power Locks</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Air Bag' id='Air Bag'><label for='Air Bag'>Air Bag</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Towing Package' id='Towing Package'><label for='Towing Package'>Towing Package</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Custom 1' id='Custom 1'><label for='Custom 1'>Custom 1</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Long Bed' id='Long Bed'><label for='Long Bed'>Long Bed</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='ABS Brakes' id='ABS Brakes'><label for='ABS Brakes'>ABS Brakes</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Dual Air Bags' id='Dual Air Bags'><label for='Dual Air Bags'>Dual Air Bags</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Sliding Rear Window' id='Sliding Rear Window'><label for='Sliding Rear Window'>Sliding Rear Window</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Running Boards' id='Running Boards'><label for='Running Boards'>Running Boards</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Integrated Cellular' id='Integrated Cellular'><label for='Integrated Cellular'>Integrated Cellular</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Multi CD' id='Multi CD'><label for='Multi CD'>Multi CD</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Moon Roof' id='Moon Roof'><label for='Moon Roof'>Moon Roof</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Power Seats' id='Power Seats'><label for='Power Seats'>Power Seats</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Cruise Control' id='Cruise Control'><label for='Cruise Control'>Cruise Control</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Third Seat' id='Third Seat'><label for='Third Seat'>Third Seat</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Wheel Covers' id='Wheel Covers'><label for='Wheel Covers'>Wheel Covers</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value=Alloy Wheels'' id='Alloy Wheels'><label for='Alloy Wheels'>Alloy Wheels</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Privacy Glass' id='Privacy Glass'><label for='Privacy Glass'>Privacy Glass</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Short Bed' id='Short Bed'><label for='Short Bed'>Short Bed</label></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Tilt Wheel' id='Tilt Wheel'><label for='Tilt Wheel'>Tilt Wheel</label></td>");
    document.write("<td class=ez><input type='checkbox' name='chkOptions' value='Sun Roof' id='Sun Roof'><label for='Sun Roof'>Sun Roof</label></td>");    
    document.write("</tr>");
    
    document.write("</table>");
    document.write("</td></tr>");
    
    document.write("<tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2 align='center'><input type=button value=\"Submit\" onclick=\"SubmitForm(document.frmTrade)\"></td>");
    document.write("</tr>");
    document.write("</table></td></tr></table>");

    document.write("</form>");
}

//IPOD++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function drawIpodForm(DealerEmail, SubjectLine, redirectUrl)
{
    document.write("<form name=frmIpod action=\"processForms.aspx\" method=post>");
    document.write("<input type=hidden name=\"hidDealerEmail\" value=\"" + DealerEmail + "\">"); 
    document.write("<input type=hidden name=\"hidSubjectLine\" value=\"" + SubjectLine + "\">"); 
    document.write("<input type=hidden name=\"redirectUrl\" value=\"" + redirectUrl + "\">");
    document.write("<input type=hidden name=\"hidFormName\" value=\"frmIpod\">");  
    
    document.write("<table class=ez width=100% align=center border=0 cellpadding=10 cellspacing=0>");       
    
    document.write("<tr><th><b>Fill out the short questionnaire and your name will automatically be entered to win an iTouch!</b></th></tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>1.	What are you currently driving? i.e. Year, Make & Model<br><input class=longtextbox type=text name='txtQ1' id='txtQ1' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>2.	Where do you/ would you service your vehicle?<br><input class=longtextbox  type=text name='txtQ2' id='txtQ2' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>3.	How did hear about us?<br><input class=longtextbox  type=text name='txtQ3' id='txtQ3' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>4.	Are you a returning customer?<br><input class=longtextbox  type=text name='txtQ4' id='txtQ4' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>5.	Where do you/ would you do your oil changes?<br><input class=longtextbox  type=text name='txtQ5' id='txtQ5' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>6.	How important is Dealer reputation to your buying decision?<br><input class=longtextbox  type=text name='txtQ6' id='txtQ6' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>7.	Is the internet an important tool in helping you to better understand your purchasing decision?<br><input class=longtextbox  type=text name='txtQ7' id='txtQ7' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>8.	What do you especially like about our website?<br><input class=longtextbox  type=text name='txtQ8' id='txtQ8' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left>9.	What would you like to see change or added to our website?<br><input class=longtextbox  type=text name='txtQ9' id='txtQ9' size=20></td>");
    document.write("</tr>");
    
    document.write("<!--<tr>");
    document.write("<td class=ez align=left>10.	Have you heard about the Drive4Free Program where you can literally “Drive For Free”?<br><input class=longtextbox  type=text name='txtQ10' id='txtQ10' size=20></td>");
    document.write("</tr>-->");
    
document.write("<tr>");
    document.write("<td class=ez align=left><font color=red>*</font>&nbsp;Name:<br><input type=text name='txtName' id='txtName' size=20></td>");
    document.write("</tr>");   


 document.write("<tr>");
    document.write("<td class=ez align=left><font color=red>*</font>&nbsp;Phone:<br><input type=text name='txtPhone' id='txtPhone' size=20></td>");
    document.write("</tr>");
    
    document.write("<tr>");
    document.write("<td class=ez align=left><font color=red>*</font>&nbsp;Email:<br><input type=text name='txtEmail' id='txtEmail' size=20></td>");
    document.write("</tr>");
    
    
    
    document.write("<tr><td class=ez colspan=2>&nbsp;</td></tr>");
    document.write("<tr>");
    document.write("<td class=ez colspan=2 align='center'><input type=button value=Submit onclick=\"chkIpod(document.frmIpod);\" value=\"Submit\"></td>");
    document.write("</tr>");
    
    document.write("</table>");
    document.write("</form>");
}
