  
  
  function disableButtons() {
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
        theForm = document.aspnetForm;
    }
    //alert(theForm.elements.length);
    for (var i = 0; i < theForm.elements.length; i++) {
        if (theForm.elements[i].type.toLowerCase() == "submit") {
            theForm.elements[i].style.visibility = "hidden";
            //theForm.elements[i].disabled = true;
            //alert(theForm.elements[i].value);
        }
    }
    return true;
}



//    function keyhandler(){
//      //alert(window.event.keyCode);
//     if (window.event.keyCode==13){
//        document.all.ctl00$btnSearch.click();
//        return false;
//      }
//      return true;
//    }
//		document.onkeydown=keyhandler;



	function hideimage(id){
		document.getElementById(id).style.visibility = "hidden";
	}
	
	function showimage(id){
		document.getElementById(id).style.visibility = "visible";
	}
	
  function toggleMsg(spanID){
    var elem = document.getElementById(spanID);
    if(elem.style.visibility=="hidden"){
      elem.style.position = "relative";
      elem.style.visibility = "visible";
    }else{
      elem.style.visibility = "hidden";
      elem.style.position = "absolute";
    }
  }
  
  function ClientValidateSpecialRequest(sender, args){
    if(args.Value.length > 255)
      args.IsValid = false;
    else
      args.IsValid = true;
  }
  
  function ClientValidateComment(sender, args){
    if(args.Value.length > 2000)
      args.IsValid = false;
    else
      args.IsValid = true;
  }
  
