function createXMLHttpRequest3() 
{
	if (window.ActiveXObject) {
		xmlHttp3 = new ActiveXObject("Microsoft.XMLHTTP"); 
	}
	else if (window.XMLHttpRequest) { 
		xmlHttp3 = new XMLHttpRequest();
	}
}
//--------------
function getsendfriend(id) 
{
	createXMLHttpRequest3();
	
	//document.getElementById("in1").style.display='none';
	document.getElementById("sub_button").style.display='none';
	document.getElementById("sub_lod").style.display='block';
	
	link=document.getElementById("link_contact").value;
	title=document.getElementById("title").value;
	full_name=document.getElementById("full_name").value;
	email=document.getElementById("email").value;
	phone=document.getElementById("phone").value;
	fax=document.getElementById("fax").value;	
	country=document.getElementById("country").value;
	address=document.getElementById("address").value;
	pobox=document.getElementById("pobox").value;
	company=document.getElementById("company").value;
	job=document.getElementById("job").value;
	comments=document.getElementById("comments").value;
	codigoDigitado=document.getElementById("codigoDigitado").value;
	
	//var texttosend = comments.replace("\n", "ssss");
	//alert(texttosend);
	var url = link+'/'+title+'/'+full_name+'/'+email+'/'+phone+'/'+fax+'/'+country+'/'+address+'/'+pobox+'/'+company+'/'+job+'/'+comments+'/'+codigoDigitado;
	
	xmlHttp3.open("GET", url, true); 
	xmlHttp3.onreadystatechange = send_friend; 
	xmlHttp3.send(null); 
}
//---------------------------------------
function send_friend()
{
	if (xmlHttp3.readyState == 4) 
	{ 
		if (xmlHttp3.status == 200)
		{ 	
			document.getElementById("sub_button").style.display='block';
			document.getElementById("sub_lod").style.display='none';
			document.getElementById("response").innerHTML=xmlHttp3.responseText;
			
			return false;
			
		}
	}
}