function submitCounter(URL,Data)
{
var xmlHttp = null;
var thedate = new Date();
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support XML H!");
      return false;
      }
    }
  }
  /*xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      	 //document.myForm.time.value=xmlHttp.responseText;
      	 //window.open("http://dev.wph.com.sg/reach/testresult.aspx");
      	 //xmlHttp  = null;
      	 //alert ("test");
      }
    }*/
  
  Data = Data + "&thedate=" + thedate.getTime();
  try 
  {
  	xmlHttp.open("GET",URL + Data,false);
  	xmlHttp.send(null);
  }
  catch (e)
  {
  }
}

function showmessage(str)
{
	alert(str);
	return false;
}