<!--		
		/*
		 Check if it's Enter key which has just been pressed.
		 If it's the case, we stop submit of the page and make .blur()
		*/
		function CheckKeyPressed(currentTextbox) 
        {    
            if (event.keyCode == 13) 
            {        
                event.cancelBubble = true;
                event.returnValue = false;
                
                document.forms[0].elements[currentTextbox].blur();
            }
		} 
		
		function TrimTxtValue(sValue)
		{
			var strValue = new String(sValue);
			while(strValue.indexOf(" ")!=-1)
			{
				strValue = strValue.replace(" ","");
			}
			return strValue;
		}
		
		// OnKeyPresse
		function DisableKeyPressed(name)
		{			
            if (event.keyCode != null && event.keyCode == 0) 
            {     
				if (document.forms[0].elements["fhdOKButton"] != null)
				{      
					event.cancelBubble = true;    
					var okbtn = document.forms[0].elements["fhdOKButton"].value;
	                             
					if (name != okbtn) 
					{							
						// cancel the default submit
						event.returnValue=false;
						event.cancel = true;
						// submit the form by programmatically clicking the specified button
						
						document.forms[0].elements["Btn1"].click();
					}
					else
					{
						document.forms[0].submit();
					}
				}
            }          
		}
			
		
		// onFocus
		function FindOKButton(currentTextboxId)
		{	
			if(currentTextboxId.indexOf("ProspectLoginCx")!=-1)
			{
				var Prefix = currentTextboxId.substring(0,currentTextboxId.indexOf("ProspectLoginCx")+15);
				//name of immagebutton = objProspectLoginCx:btnOK
				document.forms[0].elements["fhdOKButton"].value = Prefix+":btnOK";   
			}
			else 
			{
				if( (currentTextboxId.indexOf("UserLogin")!=-1) ||	
					(currentTextboxId.indexOf("UserPass")!=-1)
				  )
				{
					//name of immagebutton = objLoginImgBtn
					document.forms[0].elements["fhdOKButton"].value = "objLoginImgBtn" ;  
				}
			}
		}
		
		
//-->
