function send_friend_a_link()
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null){
alert ("Browser does not support HTTP Request")
return
}
sender_name = document.getElementById("sender_name").value
sender_email = document.getElementById("sender_email").value
friend_email = document.getElementById("friend_email").value

special_message = document.getElementById("special_message").value


id = document.getElementById("id").value
recaptcha_response_field = document.getElementById("recaptcha_response_field").value
recaptcha_challenge_field = document.getElementById("recaptcha_challenge_field").value
message = document.getElementById("message").value

document.getElementById("test").style.display="block";

var url="../js/send_friend_a_link.php"
url=url+"?sender_name="+sender_name+"&sender_email="+sender_email+"&message="+message+"&friend_email="+friend_email+"&recaptcha_challenge_field="+recaptcha_challenge_field+"&recaptcha_response_field="+recaptcha_response_field+"&id="+id+"&special_message="+special_message
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedsend_friend_a_link
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChangedsend_friend_a_link(){ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("test").style.display="none";
 document.getElementById("email_box").innerHTML=xmlHttp.responseText 
 } 
}
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;
}