rendered paste body<script type="text/javascript">function validate_required(field,alerttxt){with (field){if (value==null||value=="") {alert(alerttxt);return false}else {return true}}}function validate_email(field,alerttxt){with (field){apos=value.indexOf("@")dotpos=value.lastIndexOf(".")if (apos<1||dotpos-apos<2) {alert(alerttxt);return false}else {return true}}}function lengthRestriction(elem, min, max, alerttxt){ var uInput = elem.value; if(uInput.length >= min && uInput.length <= max){ return true; }else{ alert(alerttxt);return false; }}function validate_form(thisform){with (thisform){if (validate_required(firstname,"Firstname must be filled out!")==false) {firstname.focus();return false}if (validate_required(lastname,"Lastname must be filled out!")==false) {lastname.focus();return false}if (validate_required(email,"Email must be filled out!")==false) {email.focus();return false} if (validate_email(email,"Not a valid e-mail address!")==false) {email.focus();return false} if(lengthRestriction(restrict, 25, 100, "Please enter between " +min+ " and " +max+ " characters")==false) {elem.focus();return false}if(!document.getElementById("radio1").checked&& !document.getElementById("radio2").checked&& !document.getElementById("radio3").checked&& !document.getElementById("radio4").chacked) {alert("Please select a contact");} }}</script><form name="contact" method="post" action="" onsubmit="return validate_form(this)"> <br> <strong>* Please choose a department to contact:</strong> <label><br> <input name="radio" type="radio" value="1" id="radio1"/> <strong>General Support, Billing</strong> </label> <br> <label> <input name="radio" type="radio" value="2" id="radio2"/> <strong>Eggdrop, PsyBnc, Tcl Admin </strong></label> <br> <label> <input name="radio" type="radio" value="3" id="radio3"/> <strong>Web Design Admin </strong><br> </label> <label> <input name="radio" type="radio" value="4" id="radio4"/> <strong>Technical Support Admin</strong></label> <p><br> <strong><a href="#">General Support: Live Chat</a> </strong></p> <p>Username:<br> <input type="text" name="uname" size="20"> ( If already a customer. )<br> Firstname: * <br> <input type="text" name="firstname" size="20"><br> Lastname: * <br> <input type="text" name="lastname" size="20"><br> Email: * <br> <input type="text" name="email" size="20"><br> Refered By:<br> <input type="text" name="referedby" size="20"> ( If applicable )<br><br><br> Message to be sent to selected staff member: * </p> <textarea name="comments" cols="40" rows="10" onclick="value=''" id="restrict">Your Comments Here ...</textarea> <br /><br> <input type="submit" value="Submit" /> </form>