var xmlHttp;

function fnQTime(ElementID,Ref)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)	{
	  alert ("Your browser does not support this feature.");
	  return;
	}        
	var url="asyncQTime.asp";
	url=url+"?sid="+Math.random();
	xmlHttp.onreadystatechange=function()	{
		if (xmlHttp.readyState==4)	{
		  document.getElementById(ElementID).value=xmlHttp.responseText;
		  if (Ref=='Quotations')  {
			check('frmQuotations');
		  }
		  if (Ref=='BookingsQte')  {
			check('frmBookings','Q');
		  }
		  if (Ref=='BookingsQteSub')  {
			check('frmBookings','Q','S');
		  }
		  if (Ref=='Bookings')  {
			check('frmBookings','B');
		  }
		}
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}
