/*************************************************************************************/
var isNavigator;
isNavigator= (navigator.appName=="Netscape")?1:0;

/*This code is to accept the numbers from 0 to 3 numbers only*/
function fncnum_zero_to_three()
		{
			 if(!isNavigator)
			 { 
				if(event.keyCode < 48 || event.keyCode > 51)
				{ 
					alert("Please enter the numbers between 0 and 3");
					event.returnValue = false;
				}
		
			 }
			 else
			 {
				if(event.which < 48 || event.which > 51) 
				alert("Please enter the numbers between 0 and 3");
				return false;
			 }
		}

/*This code is to accept the numbers only*/ 
function fncnumbersonly()
{
		 if(!isNavigator)
			 { 
				if(event.keyCode < 45 || event.keyCode > 57)
				{ 
					alert("Please enter the numbers only");
					event.returnValue = false;
				}
		
			 }
			 else
			 {
				if(event.which < 45 || event.which > 57) 
				alert("Please enter the numbers only");
				return false;
			 }

}

/*This code is to accept the year between 2005 and 9999*/
function fncyear(year1)
		{
		if(parseInt(year1.value)<2005 || parseInt(year1.value)>9999) 
			{ 
				alert("Please check whether you have entered the year which is not in the range between 2005 and 9999");
				return false;
			}
		else
			{
				return true;
			}
		}
/****************************************************************************************/	


