var tabIdx = 1;

function getIdx(){
	currIdx = tabIdx;
	tabIdx ++;
	return currIdx;
}

document.write('<LEFT><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD COLSPAN="2"></TD></TR>\n');
document.write('<TR>\n'); 
document.write('<TR>\n');
document.write('<TD><FONT COLOR="#ff0000" SIZE=-1>*</FONT><B><FONT SIZE=-1  FACE="arial">State:</FONT></B>\n');
document.write('</TD>\n');
document.write('<TD><INPUT TYPE="text" NAME="state" SIZE="12" TABINDEX="' + getIdx() + '"></TD></TR>\n');
document.write('</TABLE>\n');
document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD COLSPAN="2"></TD></TR>\n');
document.write('<TR>\n'); 
document.write('<TR>\n');
document.write('<TD><FONT COLOR="#ff0000" SIZE=-1>*</FONT><B><FONT SIZE=-1  FACE="arial">Country:</FONT></B>\n');
document.write('<SELECT NAME="country">\n');
document.write('<OPTION>Select Country</OPTION>\n');
document.write('<OPTION>USA</OPTION>\n');
document.write('</SELECT>\n');
document.write('</TABLE>\n');




document.write('<CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD ALIGN="RIGHT">\n');
document.write('<FONT SIZE=-1 COLOR="white">*</FONT><B><FONT SIZE=-1 FACE=' + myFont + '></FONT></B>\n');
document.write('</TD>\n');



document.write('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD COLSPAN="2"></TD></TR>\n');
document.write('<TR>\n'); 
document.write('<TR>\n');
document.write('<td><font size=-1><input type="button" value="Proceed To Secure Checkout" onClick="Validate(COsecureGateway,1)"></font></td>\n');
document.write('</TABLE>\n');






document.write('<CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD ALIGN="RIGHT">\n');
document.write('<FONT SIZE=-1 COLOR="white">*</FONT><B><FONT SIZE=-1 FACE=' + myFont + '></FONT></B>\n');
document.write('</TD>\n');
document.write('<CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">\n');
document.write('<TR>\n');
document.write('<TD ALIGN="RIGHT">\n');
document.write('<FONT SIZE=-1 COLOR="white">*</FONT><B><FONT SIZE=-1 FACE=' + myFont + '></FONT></B>\n');
document.write('</TD>\n');
document.write('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">\n');
document.write('<TR>\n');
document.write('<TD WIDTH="100%" BGCOLOR="#ebebeb"><FONT SIZE=-1><CENTER><B>A note about Security and Privacy:</B></TD></TR>\n');
document.write('<TD WIDTH="100%" BGCOLOR="#ebebeb"><FONT SIZE=-1><CENTER><B>We value your privacy, so Gregs Automotive will never share or sell your information ever</B></TD></TR>\n');





document.write('</TD>\n');
document.write('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">\n');
document.write('<TR>\n');


document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="fname" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="lname" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="email" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="phone" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="add1" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="add2" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="city" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');
document.write('<TD BGCOLOR="#ebebeb"><CENTER><INPUT TYPE="radio" NAME="zip" SIZE="1" TABINDEX="' + getIdx() + '"></TD>\n');





























function setupForm(){
	fillShopperForm();
	var Cselect   = eval('document.NC_form.country');
	var noCountry = true;
	if(Cselect){
		for(countryCnt = 0; countryCnt < Cselect.options.length; countryCnt ++){
			if(Cselect.options[countryCnt].text.toLowerCase() == myCountry.toLowerCase()){
				Cselect.options[countryCnt].selected = true;
				noCountry = false;
				break;
			}
		}
		if(noCountry){
			Cselect.options[0].selected = true;
		}
	}
	if(getAltShipping){
		Cselect   = eval('document.NC_form.Scountry');
		if(Cselect){
			noCountry = true;
			for(countryCnt = 0; countryCnt < Cselect.options.length; countryCnt ++){
				if(Cselect.options[countryCnt].text.toLowerCase() == myCountry.toLowerCase()){
					Cselect.options[countryCnt].selected = true;
					noCountry = false;
					break;
				}
			}
			if(noCountry){
				Cselect.options[0].selected = true;
			}
		}
	}
	document.NC_form.fname.focus();
}

window.onLoad = setupForm();
