﻿

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}


/////////////////////////////////////////////////////////////////////

function Gethits(str,tpy,key)
{

var xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var myrandom=parseInt(Math.random()*99999999);
var url="tmcali.php?date="+str+"&tpy="+tpy+"&key="+key+"&rand="+myrandom; 
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=function(){
if (xmlHttp.readyState==4)
{ 
//document.write(xmlHttp.responseText);
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
xmlHttp.send(null);
} 


////////////////////
function Goface(){
http://www.facebook.com/#!/pages/Desert-View-Eye-Care/179839545390176


var url='http://www.facebook.com/#!/pages/Desert-View-Eye-Care/179839545390176';
window.open(url, '', 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');

}



