
	//Prevent for users to go back in form.
	function NoBack()
	{	
		window.history.forward(0);
	}	
  
	function ValidNumber( sTemp )
	{
		
		var iVal;
		
		if(isNaN(sTemp) == true)
		{
			return false;
		}
		else
		{
			return true;
		}
	}
	
	function ValidString( sTemp )
	{
		
		var iVal;
		
		if(isNaN(sTemp) == true)
		{
			return true;
		}
		else
		{
			return false;
		}
		
	}
	
	function ValidMonth( iMonth )
	{
		return (isNaN(iMonth) == false)?((iMonth < 13)?(iMonth > 0?true:false):false):false;
	}
	function ValidYear( iYear )
	{
		return (isNaN(iYear) == false)?true:false;
	}
	
	function IsLeapYear( iYear )
	{
			
		if( (iYear % 4) == 0 && ( (iYear % 400) == 0 || (iYear % 100) != 0 ))
			return true;
			
		return false;
	}
	
	function HowManyDayInMonth( iMonth, iYear )
	{
	
		switch( (iMonth * 1) )
		{
			case 1:
				return 31;
			case 2:
				if(IsLeapYear( (iYear * 1) ) == true)
					return 29;
				else
					return 28;
				break;
			case 3:
				return 31;
			case 4:
				return 30;
			case 5:
				return 31;
			case 6:
				return 30;
			case 7:
				return 31;
			case 8:
				return 31;
			case 9:
				return 30;
			case 10:
				return 31;
			case 11:
				return 30;
			case 12:
				return 31;
				
		};
	
	}
	
	function ValidDay( iDay, iMonth, iYear )
	{
		// For Debug use only
		//alert(iDay + ' / ' + iMonth + ' / ' + ((iYear * 1)));
		if(iDay == "" || iMonth == "" || iYear == "")
			return false;
	
		if(ValidYear( iYear ) == false)
			return false;
	
		if(ValidMonth(iMonth) == false)
			return false;
			
		if(isNaN(iDay) == true)
			return false;
		
		if(iDay < 1)
			return false;
			
		if( iDay > HowManyDayInMonth( iMonth, iYear ) )
			return false;
		
		return true;
	
	}
	
	function GetTodaysDay()
	{
		var sDate
		
		sDate = new Date();
		
	}
	
	