var xmlHttp2

function delete_all(){

xmlHttp2=GetXmlHttpObject2();
if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 } 
var url="http://www.oldstockcars.com/faces/clearMessages.php"
xmlHttp2.onreadystatechange=stateChanged2; 
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null);
} 

function get_message(num,origin){

xmlHttp2=GetXmlHttpObject2();
if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 } 
var url="http://www.oldstockcars.com/faces/get_message.php"
url=url+"?num="+num
url=url+"&sender="+origin
url=url+"&sid="+Math.random();
xmlHttp2.onreadystatechange=stateChanged2; 
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null);
} 

function get_all_messages(){

xmlHttp2=GetXmlHttpObject2();
if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 } 
var url="http://www.oldstockcars.com/faces/get_all_messages.php"
xmlHttp2.onreadystatechange=stateChanged2; 
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null);
} 

function stateChanged2() 
{ 
 if (xmlHttp2.readyState==4)
 { 
     document.getElementById("message_box_text").innerHTML=xmlHttp2.responseText;
 } 
} 

function GetXmlHttpObject2()
{
var xmlHttp2=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp2=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp2;
}