document.write("<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>")
document.write("function form1_onsubmit() {")
document.write("if (form1.AC.value == '')")
document.write("{")
document.write("alert('Please enter 3 digit Area Code');")
document.write("form1.AC.focus();")
document.write("return false;")
document.write("}")
document.write("if (isNaN(form1.AC.value))")
document.write("{")
document.write("alert('Please enter 3 digit Numeric Area Code');")
document.write("form1.AC.select();")
document.write("return false;")
document.write("}")
document.write("if (form1.AC.value.length != 3)")
document.write("{")
document.write("alert('Please enter 3 digit Numeric Area Code');")
document.write("form1.AC.select();")
document.write("return false;")
document.write("}")
document.write("}")
document.write("</SCRIPT>")

document.write("<form name='form1' action='../Home/index.asp' Method='POST' LANGUAGE=javascript onsubmit='return form1_onsubmit()'>") 
document.write("<input type='text' name='AC' size='3' maxlength='3' value=''>")
document.write("<input type='image' border='0' name='imageField' src='../Images/go.gif' width='27' height='16'>")
document.write("</form>")

