
			function HowManyDayInMonth( iMonth, iYear )
			{
	
				switch( iMonth )
				{
					case "1":
						return 31;
					case "2":
						if(IsLeapYear( iYear ) == 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 Trim(sText)
			{
				var iCount;
				var iLeft;
				var iRight;
				var sTemp;
					
				if(sText.length == 1)
				{
					if(sText== ' ')
						return "";
					else
						return sText;
				}
				for(iCount=0; iCount < sText.length;iCount++)
				{
					if(sText.charAt(iCount) != ' ')
					{
						iLeft = iCount;
						break;
					}
				}
				
				for(iCount=(sText.length - 1); iCount > 0;iCount--)
				{
					if(sText.charAt(iCount) != ' ')
					{
						iRight = iCount;
						break;
					}
				}
				
				if(iLeft == null)
					iLeft = 0;
				
				if(iRight == null)
					iRight = 0;
				
				sTemp = sText.substring(iLeft,iRight + 1);
				
				return sTemp;
			}