﻿// JScript File
/* Form Validation Script for USER
Developed By	: Ashok Kumar Mandial
Date			: Oct 16, 2007 
Message			: Create an array of form elements and apply validation rules on them.
*/

function SetContactUsRuleStatus()
{
    document.getElementById("hdnRules").value="C";
}

function SetContactButtonClick(e)
{
    var unicode=e.keyCode? e.keyCode : e.charCode ? e.charCode : e.which
    if(unicode=='13')
    {
	    if(document.getElementById("hdnRules").value=='C')
	    {					
		    document.getElementById("ctl00_GeneralContent_imgSubmit").click();
		    e.returnValue=false;
		    return false;
	    }
    }
}
function OnContactTextboxFocus()
{
    document.getElementById("hdnRules").value="C";
}
