﻿function checkform(){



	if (document.myform.YourName.value==""){



	alert("This field is required.");



	document.myform.YourName.focus();



	return false;



	}



	if (document.myform.Email.value == ""){



		alert ("This field is required.");



		document.myform.Email.focus();



		return false;



	}



	var rule=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

	if (!rule.test(document.myform.Email.value)){

		alert ("Please enter a valid e-mail address. For example \"fred@domain.com\".");



		document.myform.Email.focus();



		return false;



	}



	if (document.myform.Message.value == ""){



		alert ("This field is required.");



		document.myform.Message.focus();



		return false;



	}



}







document.writeln("<TABLE class=myform cellSpacing=3 cellPadding=0 width=100% border=0 align=\"center\">");



document.writeln("        <FORM name=\"myform\" action=\"http://email.ascof.com/ascof.asp\" method=\"post\" onsubmit=\"return checkform()\">");



document.writeln("        <TBODY>");

document.writeln("        <input type=\"hidden\" name=\"Domain\" value=\"pelletmill.net\" />");





document.writeln("        <TR>");



document.writeln("          <TD colspan=\"2\"><b>We receive enquiries in <font color=\"#049ae6\">English, Español (Spanish), Русский язык (Russian), Français (French) and العربية (Arabic)</font>. Our professional team will reply to you within one business day. <font color=\"#003399\">Please feel free to contact us!</font><hr color=\"#cccccc\" /></b></TD>");



document.writeln("          </TR>");



document.writeln("        <TR>");



document.writeln("          <TD colspan=\"2\" height=\"2\"></TD>");



document.writeln("          </TR>");



document.writeln("        <TR>");



document.writeln("        <TD width=\"180\"><SPAN style=\"color:#ff6600;\">*</SPAN>Your Name:</TD>");



document.writeln("        <TD width=459><INPUT name=\"YourName\" type=\"text\" class=\"text\"></TD></TR>");



document.writeln("        <TR>");



document.writeln("        <TD width=\"180\">&nbsp;&nbsp;Phone:</TD>");



document.writeln("        <TD><INPUT name=\"PhoneNumber\" type=\"text\" class=\"text\"></TD></TR>");



document.writeln("        <TR>");



document.writeln("        <TD width=\"180\"><SPAN style=\"color:#ff6600;\">*</SPAN>E-mail:</TD>");



document.writeln("        <TD><INPUT name=\"Email\" type=\"text\" class=\"text\"></TD></TR>");



document.writeln("        <TR>");



document.writeln("        <TD width=\"180\">&nbsp;&nbsp;Regrading:</TD>");



document.writeln("        <TD><select name=\"Regrading\"><option value=\"\">Select</option><option value=\"General Enquiries\">General Enquiries</option><option value=\"Sales Enquiries\">Sales Enquiries\</option><option value=\"Support Enquiries\">Support Enquiries\</option><option value=\"Employment Enquiries\">Employment Enquiries</option></select></TR>");

document.writeln("        <TR>");



document.writeln("        <TD width=\"180\">&nbsp;&nbsp;How did you find us?</TD>");



document.writeln("        <TD><select name=\"Finds\"><option value=\"\">Select</option><option value=\"Another site we've done\">Another site we've done</option><option value=\"Referral\">Referral</option><option value=\"Search Engine\">Search Engine</option><option value=\"Online Retailer Expo\">Online Retailer Expo</option><option value=\"Other\">Other</option></select></TD></TR>");





document.writeln("        <TR>");



document.writeln("        <TD width=\"180\"><SPAN style=\"color:#ff6600;\">*</SPAN>Message:</TD>");



document.writeln("        <TD><TEXTAREA name=\"Message\" rows=5 cols=30></TEXTAREA></TD></TR>");



document.writeln("        <TR>");



document.writeln("        <TD>&nbsp;</TD>");



document.writeln("        <TD><INPUT type=\"submit\" value=\"\" name=\"button\" class=\"button\"></TD></TR></FORM></TBODY></TABLE>");
