userInsertedDate)
{
	var arg = "date="+userInsertedDate;
	var posTo = "phpScript/validateDate.php";
	if(FN_AjaxRequest(arg,posTo)==1)
	{
		return true;
	}
	else
	{
		return false;
	}
}
var xmlHttp;
function FN_XmlHttpReq()
{
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e)
		{
			xmlHttp = false;
		}
	}
}
FN_XmlHttpReq();
function AjaxReq(arg)
{
	xmlHttp.open("get","phpScript/validateDate.php?"+arg,true);
	xmlHttp.onreadystatechange = ajaxRes;
	xmlHttp.send(null);
}
function ajaxRes()
{
	if(xmlHttp.status == 200 && xmlHttp.readyState==4)
	{
		if(xmlHttp.responseText=="1")
		{
			status =  1;
		}
		else
		{
			status = 0;
		}
	}
}
function FN_AjaxRequest(arg,posTo)
{
	$.ajax
	(
		{
		   type: "POST",
		   url: posTo,
		   data: arg,
		   success: function(msg)
					{
						if(msg=="0")
						{
							status = false;
						}
						if(msg=="1")
						{
							status = true;
						}
					}
		 }
	 );
	return status;
}