var xmlHttp


function add_new_user(str,email,phone,comments)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url="mail.php"
	url=url+"?name="+str
	url=url+"&email="+email
	url=url+"&phone="+phone
	url=url+"&comments="+comments
	url=url+"&mode=add"
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
	
	document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	mySetStyleDisplay ('contact_table','none');	
    mySetStyleDisplay ('ft_table','none');
    mySetStyleDisplay ('contact_table1','');
	}
}


function mySetStyleDisplay (myDiv, myStyle){
if (document.all){
obj = document.all(myDiv);
obj.style.display = myStyle;
} else if (document.getElementById) {
obj = document.getElementById(myDiv);
obj.style.display = myStyle;
} else {alert (Err_Browser);}
}



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;
}
