﻿// JScript File

/* Form Validation Script for JOB BOARD
Developed By	: Rakesh
Date			: 4 Oct,2007
Message			: Create an array of form elements and apply validation rules on them.
*/
function validateContact()
{
var rules=new Array();
rules[0]='txtName:Your name|required';
rules[1]='txtCompany:Company name|required';
rules[2]='txtEmail:Email|required';
rules[3]='txtEmail|email|Invalid Email';
rules[4]='txtcomments:Additional Information|required';
rules[5]='txtContact:Department|required';
  if(rules.length>0)
        {
        
            return performCheck('aspnetForm', rules, 'classic');
        }
        }
 function textCounter() 
{
 
 var maxlimit=2000;
 	if (document.getElementById("ctl00_ContentPlaceHolder1_txtcomments").value.length > maxlimit)
 		document.getElementById("ctl00_ContentPlaceHolder1_txtcomments").value = document.getElementById("ctl00_ContentPlaceHolder1_txtcomments").value.substring(0, maxlimit);
 	else 
 		document.getElementById("totalChars").value = maxlimit - document.getElementById("ctl00_ContentPlaceHolder1_txtcomments").value.length;
}
 

