// JavaScript Document

function mailfriend_submit(id)
{
	
	
		//var id = document.frmdetail.id.value;
	var url = "detailmailfriend.php" + "?id=" + escape(id) ;
	//+ "&name2=" + escape(name2) + "&email2=" + escape(email2) + "&msg=" + escape(msg) + "&clink=" + escape(clink) + "&sid=" + escape(sid);
	
	
	http.open("GET",url,true);
	http.onreadystatechange = handleHttpResponse_mailfriend;
	http.send(null);
	return false;
}
function order_submit(id)
{
	//alert(id);
	var url = "detailorder.php" + "?id=" + escape(id) ;
	http.open("GET",url,true);
	http.onreadystatechange = handleHttpResponse_mailfriend;
	http.send(null);
	return false;
}
function rent_submit(id)
{
	//alert(id);
	var url = "detailrent.php" + "?id=" + escape(id) ;
	http.open("GET",url,true);
	http.onreadystatechange = handleHttpResponse_mailfriend;
	http.send(null);
	return false;
}
function summary_submit(id)
{
	
	var url = "detailsummary.php" + "?id=" + escape(id) ;
	http.open("GET",url,true);
	http.onreadystatechange = handleHttpResponse_mailfriend;
	http.send(null);
	return false;
}
function loancalc_submit(id)
{
	
	var url = "detailloancalc.php" + "?id=" + escape(id) ;
	http.open("GET",url,true);
	http.onreadystatechange = handleHttpResponse_mailfriend;
	http.send(null);
	return false;
}
function handleHttpResponse_mailfriend()
{
	if(http.readyState == 4)
	{
		results = http.responseText;
		//alert(results);
		document.getElementById("tblcontents").innerHTML = results;
		return false;
	}
}
function getHTTPObjectmailfriend() 
{
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObjectmailfriend(); // We create the HTTP Object	

