// JavaScript Documentfunction CheckDate()	{	if(IsBackDate(document.frm_PlaceOrder.CurrentDate.value,document.frm_PlaceOrder.sel_month.value + "/" + document.frm_PlaceOrder.sel_day.value + "/" + document.frm_PlaceOrder.sel_year.value))		{		alert("You cannot choose backdate");		document.frm_PlaceOrder.sel_month.value=(document.frm_PlaceOrder.CurrentDate.value).split("/")[0];		document.frm_PlaceOrder.sel_day.value=(document.frm_PlaceOrder.CurrentDate.value).split("/")[1];		document.frm_PlaceOrder.sel_year.value=(document.frm_PlaceOrder.CurrentDate.value).split("/")[2];		}	}		function IsBackDate(p,q)	{	var CMonth=parseInt(p.split("/")[0]);	var CDay=parseInt(p.split("/")[1]);	var CYear=parseInt(p.split("/")[2]);	var SMonth=parseInt(q.split("/")[0]);	var SDay=parseInt(q.split("/")[1]);	var SYear=parseInt(q.split("/")[2]);	if(SYear<CYear)		return true;	else if(SYear>CYear)			return false;		else			{			if(SMonth<CMonth)				return true;			else if(SMonth>CMonth)					return false;				else					{					if(SDay<CDay)						return true;					else if(SDay>CDay)							return false;						else							return false;					}			}	}