/*******************************************************************************************
	Author					: Sagar Patil
	version					: 1.0 
	created Date			: 17/04/2008
	Last Modified By		: 
	Last Modified Date		: 
	Explanation				: This Script is to restrict the user to enter keywords which are not suported by password pattern.
 *******************************************************************************************/ 
 
function checkPassword(evt){	

			var charCode = (evt.which) ? evt.which : evt.keyCode
			if (!(  (charCode > 64 && charCode < 91) || 
				    (charCode > 96 && charCode < 123) || 
				    (charCode > 47 && charCode < 58) || 
				    (charCode > 45 && charCode < 47) || 
				    (charCode > 7 && charCode < 10) || 
				    (charCode > 15 && charCode < 18) ||
				    (charCode > 94 && charCode < 96)   )) 	{
							
  							return false;
			}
			return true;
}
/*******************************************************************************************
	Author					: Sagar Patil
	version					: 1.0 
	created Date			: 17/04/2008
	Last Modified By		: 
	Last Modified Date		: 
	Explanation				: This Script is to restrict the user to enter keywords other then alphabets.
 *******************************************************************************************/ 
function isAlphabeticKey(evt){	
	
			var charCode = (evt.which) ? evt.which : evt.keyCode
			if (!(	(charCode > 64 && charCode < 91) ||
			 		(charCode > 96 && charCode < 123) || 
			 		(charCode==32) || 
			 		(charCode > 7 && charCode < 10) || 
			 		(charCode > 15 && charCode < 18)	)){
				
  				return false;
			}
  			return true;
}
/*******************************************************************************************
	Author					: Sagar Patil
	version					: 1.0 
	created Date			: 17/04/2008
	Last Modified By		: 
	Last Modified Date		: 
	Explanation				: This Script is to restrict the user to enter keywords other then digits.
 *******************************************************************************************/ 
function isNumberKey(evt){	
	
			var charCode = (evt.which) ? evt.which : evt.keyCode
			if (!(	(charCode > 47 && charCode < 58) ||
					(charCode > 7 && charCode < 10) || 
					(charCode > 15 && charCode < 18)	)){
				
  				return false;
			}
  			return true;
}	
/*******************************************************************************************
	Author					: Sagar Patil
	version					: 1.0 
	created Date			: 17/04/2008
	Last Modified By		: 
	Last Modified Date		: 
	Explanation				: This Script is to restrict the user to enter keywords more then 65535(text).
 *******************************************************************************************/ 
function maxLengthLarge(field)
{
       	if(field.value.length >= 65535	) 
	  	{
        	return false;
       	}
	   	return true;
} 
