// JavaScript Document
var xmlHttp
var xmlHttp2
var xmlHttp3
var rowid_top
var is_userExist=0;
var is_userExist_username="";

var is_emailExist=0;
var is_emailExist_id="";
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 TellToFriend()
{
		
	xmlHttp2=GetXmlHttpObject();
	var url="telltofriend.php";
	url=url+"?code="+document.getElementById("code").value+"&email_id="+document.getElementById("email").value + "&name="+document.getElementById("name").value+"&comment="+document.getElementById("comment").value  
	xmlHttp2.onreadystatechange=ShowResponseTextHomePage;

	xmlHttp2.open("GET",url,true)
	xmlHttp2.send(null)
}

function  ShowResponseTextHomePage()
{ 
	var ResponseText =(xmlHttp2.responseText);
	if (ResponseText!="")
	{
		document.getElementById("TellToFriend").innerHTML="<span class='redtext' ><BR>"+ ResponseText + "</span>";
	}//if 
}// function 