			 
		function ValidateForm()
		{	var dt_SD=TrimString(document.frmBulletinDisplay.postDateStart.value)
			var dt_ED=TrimString(document.frmBulletinDisplay.postDateEnd.value)
			
			if(dt_SD!=null && dt_ED!=null)
			{  if(dt_SD!='')
			  {
				if (isDate(dt_SD)==false){
					document.frmBulletinDisplay.postDateStart.focus()
					return false
				}
			  }
			   if(dt_ED!='')
			  {
				if (isDate(dt_ED)==false){
					document.frmBulletinDisplay.postDateEnd.focus()
					return false
				}
			  }	
			}
			
		    return true
		 }

		 function checkDates()
		 {
		    //alert('In check Dates');
		   var dt_SD=TrimString(document.frmBulletinDisplay.postDateStart.value)
		   var dt_ED=TrimString(document.frmBulletinDisplay.postDateEnd.value)
		   if(dt_SD!='' )
		    { if(dt_ED==null || dt_ED=='')
		      {
		        //alert('Enter a valid date range for Post Date');
				alert(ALERT_INVALID_DATERANGE);
		        document.frmBulletinDisplay.postDateEnd.focus()
				return false
		      }
		    }
		    if( dt_ED!='')
		    { if(dt_SD==null || dt_SD=='')
		      {
		        //alert('Enter a valid date range for Post Date');
				alert(ALERT_INVALID_DATERANGE);
		        document.frmBulletinDisplay.postDateStart.focus()
				return false
		      }
		    }
		    return true;
		 }

		function compareDates()
		{   
			//alert('In compare dates')
			
		    var dtFrom=TrimString(document.frmBulletinDisplay.postDateStart.value)
			var dtTo=TrimString(document.frmBulletinDisplay.postDateEnd.value)
		    
			var pos1=dtFrom.indexOf(dtCh)
			var pos2=dtFrom.indexOf(dtCh,pos1+1)
			
			var strMonthFrom=dtFrom.substring(0,pos1)
			var strDayFrom=dtFrom.substring(pos1+1,pos2)
			var strYearFrom=dtFrom.substring(pos2+1)
			
			var strMonthTo=dtTo.substring(0,pos1)
			var strDayTo=dtTo.substring(pos1+1,pos2)
			var strYearTo=dtTo.substring(pos2+1)
			
			if(dtFrom!=null && dtFrom!='' && dtTo!=null && dtTo!='')
			{
				if(strYearTo<strYearFrom)
				{
					//alert('To date cannot be greater than from date.Enter date in a valid format')
					alert(ALERT_INVALID_DATERANGE)
					document.frmBulletinDisplay.postDateEnd.focus()
					return false

				}
				else if(strYearTo==strYearFrom)
				{
					if(strMonthTo<strMonthFrom)
					{
						//alert('To date cannot be greater than from date.Enter date in a valid format')
						alert(ALERT_INVALID_DATERANGE)
						document.frmBulletinDisplay.postDateEnd.focus()
						return false
					}
					else if(strMonthTo==strMonthFrom)
					{
						if(strDayTo<strDayFrom)
						{
							//alert('To date cannot be greater than from date.Enter date in a valid format')
							alert(ALERT_INVALID_DATERANGE)
							document.frmBulletinDisplay.postDateEnd.focus()
							return false
						}
					}
				}
				
				
				
			}

			return true
		}
