/**************************** Start ****************************/ //function disableBackButton() { // window.history.forward(1); //} //setTimeout("disableBackButton()", 0); /*****************************************************/ function winClose() { window.close(); } /*****************************************************/ //window.history.forward(); //function noBack() { window.history.forward(); } /*****************************************************/ function callAutoComp() { aspnetForm.setAttribute("autocomplete", "off"); } /*****************************************************/ function disableAutoComplete() { document.DefaultFormName.autocomplete = 'off'; } /*****************************************************/ //function isNumberKey(evt) { // var charCode; // if (window.event) { // charCode = window.event.keyCode; // } // else { // if (evt) { // charCode = evt.which; // } // } // if (charCode > 31 && (charCode < 48 || charCode > 57)) // return false; // return true; //} /*****************************************************/ function isNumberKey(evt) { var charCode; if (window.event) { charCode = window.event.keyCode; } else { if (evt) { charCode = evt.which; } } if (charCode > 31 && (charCode < 45 || charCode > 57) || charCode == 47) return false; return true; } /*****************************************************/ function isAlphaKey(evt) { var AlphaCode; if (window.event) { AlphaCode = window.event.keyCode; } else { if (evt) { AlphaCode = evt.which; } } if (AlphaCode > 31 && (AlphaCode < 65 || AlphaCode > 90) && (AlphaCode < 97 || AlphaCode > 122)) return false; return true; } /*****************************************************/ function isFirstNameKey(evt) { var AlphaCode; if (window.event) { AlphaCode = window.event.keyCode; } else { if (evt) { AlphaCode = evt.which; } } if (AlphaCode > 31 && (AlphaCode < 65 || AlphaCode > 90) && (AlphaCode < 97 || AlphaCode > 122) && (AlphaCode != 32) && (AlphaCode != 46)) return false; return true; } /*****************************************************/ //Function : DoSelect //Remarks : This function is used for to mandatory selecting dropdown item. function DoSelect(source, arguments) { if ((arguments.Value) == -1) arguments.IsValid = false; else if ((arguments.Value) == 0) arguments.IsValid = true; else arguments.IsValid = true; } /*****************************************************/ //Function : DoSelectDDL //Remarks : This function is used for appraisal entry form to mandatory selecting dropdown item. function DoSelectDDL(source, arguments) { if (arguments.Value == '-1') arguments.IsValid = false; else if ((arguments.Value) == '0') arguments.IsValid = false; else arguments.IsValid = true; } /*****************************************************/ function ConfMsg() { var con = confirm("Your password has been changed successfully. Please login once again."); if (con == false) { return false; } else { window.open("Logout.aspx", "_self"); } } /*****************************************************/ function ShowMsgBox(msg) { ModalPopups.Confirm("idConfirm1", "ok", "", "