function writeHTMLas3(){
document.write("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"salescontact.php\" onsubmit=\"return checkform(this);\">");
document.write("<table width=\"453\">");
document.write("  <tr>");
document.write("      <td colspan=\"2\"><b>Request   Information:<\/b><\/td>");
document.write("    <\/tr>");
document.write("	<tr>");
document.write("      <td width=\"178\">First Name:<\/td>");
document.write("      <td width=\"263\"><input name=\"Req_First_Name\" type=\"text\" size=\"25\" \/><\/td>");
document.write("    <\/tr>");
document.write("    <tr>");
document.write("      <td>Last Name:<\/td>");
document.write("      <td><input name=\"Req_Last_Name\" type=\"text\" size=\"25\" \/><\/td>");
document.write("    <\/tr>");
document.write("   ");
document.write("        <tr>");
document.write("      <td>City:<\/td>");
document.write("      <td><input name=\"Req_City\" type=\"text\" id=\"Req_City\" size=\"25\" \/><\/td>");
document.write("    <\/tr>");
document.write("    <tr>");
document.write("      <td>Phone:<\/td>");
document.write("  	  <td><input name=\"Req_Phone_Number\" type=\"text\" size=\"14\" \/><\/td>");
document.write("    <\/tr>");
document.write("     <tr>");
document.write("      <td>Email:<\/td>");
document.write("  	  <td><input name=\"Req_E-Mail_Address\" type=\"text\" size=\"25\" \/><\/td>");
document.write("    <\/tr>");
document.write("    ");
document.write("    <tr>");
document.write("      <td>Please provide any other information you think would be helpful.<\/td>");
document.write("      <td><textarea name=\"Extra_Info\" cols=\"25\" rows=\"3\" wrap=\"virtual\"><\/textarea><\/td>");
document.write("    <\/tr>");
document.write("    <tr>");
document.write("<td><\/td>");
document.write("<td>         <?php");
document.write("          require_once('recaptchalib.php');");
document.write("          $publickey = \"6LcfpckSAAAAABeDbEj4EHwmx0llnyDMfsNJHpi0\"; \/\/ you got this from the signup page");
document.write("          echo recaptcha_get_html($publickey);");
document.write("        ?>");
document.write("<\/td>");
document.write("<\/tr>");
document.write("    <tr>");
document.write("      <td>&nbsp;<\/td>");
document.write("      <td><input type=\"submit\" name=\"Submit\" value=\"Submit Your Information\" \/><\/td>");
document.write("    <\/tr>");
document.write("<\/table>");
document.write("     ");
document.write("<\/form>");

}

function writeHTMLas4(){
document.write("<div style=\"width:380px\"><span style=\"font-family:Verdana, Geneva, sans-serif;font-size:16px;color:red\">You have arleady submitted the contact form. Please wait 1 day before submitting the form or call us at 707-545-1330.<\/span><\/div>");
}


DaysToLive = 1;

function GetCookie(name) {

var cookiecontent = '0';

if(document.cookie.length > 0) {
	
	var cookiename = name + '=';
	var cookiebegin = document.cookie.indexOf(cookiename);
	
	var cookieend = 0;
	
	if(cookiebegin > -1) {
		
		cookiebegin += cookiename.length;
		
		cookieend = document.cookie.indexOf(";",cookiebegin);
		if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
		
		cookiecontent = document.cookie.substring(cookiebegin,cookieend);
	}
}

var value = parseInt(cookiecontent) + 1;

PutCookie(name,value);

return value;
}

function PutCookie(n,v) {

var exp = '';

if(DaysToLive > 0) {
	var now = new Date();
	then = now.getTime() + (DaysToLive * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' +
	now.toGMTString();
}

document.cookie = n + "=" + v + '; path=/' + exp;
}
