function checkform(){
	
	if (document.myform.Email.value == ""){
		alert ("Email cannot be empty!");
		document.myform.Email.focus();
		return false;
	}
	if (document.myform.Email.value.indexOf('@')<1 || document.myform.Email.value.indexOf('.')<1){
		alert ("Are you sure the email is correct?");
		document.myform.Email.focus();
		return false;
	}
	
	if (document.myform.Message.value == ""){
		alert ("Message cannot be empty!");
		document.myform.Message.focus();
		return false;
	}
}
document.writeln("        <FORM name=\"myform\" action=\"/SendMail.php\" method=\"POST\" onsubmit=\"return checkform()\">");
document.writeln("<TABLE class=myform cellSpacing=0 cellPadding=0 width=100% border=0 align=\"center\">");

document.writeln("        <TBODY>");
document.writeln("        <TR>");
document.writeln("          <TD colspan=\"2\" align=center>&nbsp;</TD>");
document.writeln("        </TR>");
document.writeln("        <TR>");
document.writeln("          <TD colspan=\"2\" >If you\'re interested in our products or have any questions about it, please let us know. Don\'t hesitate to contact us!</TD>");
document.writeln("          </TR>");
document.writeln("        <TR>");
document.writeln("          <TD colspan=\"2\" height=\"2\"></TD>");
document.writeln("          </TR>");
document.writeln("        <TR>");
document.writeln("        <TD align=right width=20%><SPAN></SPAN>Your Name:&nbsp; </TD>");
document.writeln("        <TD width=80%><INPUT name=\"YourName\"><span>&nbsp;(Optional)</span></TD></TR>");
document.writeln("        <TR>");
document.writeln("        <TD align=right><SPAN>*</SPAN>E-mail: &nbsp;</TD>");
document.writeln("        <TD><INPUT name=\"Email\"></TD></TR>");

document.writeln("        <TR>");
document.writeln("        <TD align=right><SPAN>*</SPAN>Message:&nbsp; </TD>");
document.writeln("        <TD><TEXTAREA name=\"Message\" rows=8 cols=40></TEXTAREA></TD></TR>");
document.writeln("        <TD>&nbsp;</TD>");
document.writeln("        <TD><INPUT type=\"submit\" value=\"Send\" name=\"button\" ></TD></TR></TBODY></FORM></TABLE>");
