var request = null;
var curTarget;
function createRequest()
{
	try {
		
		request = new XMLHttpRequest();
	}catch(trymicrosoft){
		try{
			request = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(othermicrosoft){
			try{
			request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(failed){
				request = null;
			}
		}
	
	}
	if (request==null)
	alert ("Error");

}
function ReplaceContent(divid,text)
{
 //alert(text);
  //document.getElementById('ld').style.display='none';
 document.getElementById(divid).innerHTML=text;
}
function LoadFrame(addr,divid,showprogres)
{
var ldText="<table width='100%' height='483' cellpadding='0' cellspacing='0' border='0' margin-top: 24px;'><tr><td align='right'><div style='margin: 200px 200px ;'><img src='/honda/4/include/images/loading.gif' width='31' height='31' border='0'></div></td></tr></table>";
 curTarget=divid;
 if(showprogres)
 ReplaceContent(divid,ldText);
 createRequest();
 request.onreadystatechange = process;
        request.open("GET", addr, true);
        request.send(null);
 //loadXMLDoc(addr);
}
function process() 
{
    // only if req shows "complete"
    if (request.readyState == 4) {
        // only if "OK"
        if (request.status == 200) {
//        	alert(req.responseText);
			ReplaceContent(curTarget,request.responseText);
        } else {
            alert("There was a problem retrieving the XML data:\n" + request.statusText);
        }
    }
}

function confGo(text,link)
{
 if(confirm(text))
	window.location=link;
}
