
    function FormValidation() { var oForm = window.document.forms[0]; return (ValidateForm(oForm));}
	  function InitCursor() {
		  var oElement = document.getElementById("txtLoginId");
		  if(!IsEmpty(oElement)) {
		    if(IsEmpty(oElement.value)) {
		      oElement.focus();
		    }
		    else {
		      oElement = document.getElementById("txtPassword");
		      if(!IsEmpty(oElement)) {
		        oElement.focus();
		      }
		    }
		  }
	  }
	  function clickButton(e, buttonid) { 
	  var bt = window.document.getElementById(buttonid); 
      if (bt){ 
        if(navigator.appName.indexOf("Netscape")>(-1)){ 
          if (e.keyCode == 13){ 
            bt.click(); 
            return false; 
          } 
          } 
        if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
          if (event.keyCode == 13){ 
            bt.click(); 
            return false; 
          } 
        } 
      } 
    } 
	 function kH(e) {
      var pK = e ? e.which : window.event.keyCode;
      return pK != 13;
    }
    document.onkeypress = kH;
    if (document.layers) document.captureEvents(Event.KEYPRESS);
  