// JavaScript Document
var req2=null;
var The_ID2=null;
function getobjbyid(id){
    var obj = null;
    if(document.getElementById){
        obj = document.getElementById(id);
    }else if(document.all){
        obj = document.all[id];
    }
    return obj;
}
function sR2(url,params,HttpMethod,anyID){

	if (!HttpMethod)
	{
		HttpMethod="POST";
	}
	req2=initXMLHTTPRequest();
	The_ID2=anyID;
		if (req2){
			req2.open(HttpMethod,url,true);
			req2.onreadystatechange=onReadyState2;
			req2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			req2.send(params);
		}
}

function initXMLHTTPRequest(){
	var xRequest=null;
	if (window.XMLHttpRequest)xRequest=new XMLHttpRequest();
	else if (window.ActiveXObject)xRequest=new ActiveXObject("Microsoft.XMLHTTP");
	else {	}
	return xRequest;
}
function onReadyState2(){
	if (req2) {
		var ready=req2.readyState;
		var data2=null;	
		if (ready==4) {	
			pass_ID2=The_ID2;
			data2=req2.responseText;
			The_ID2=null;
			req2=null;			
			toConsole2(data2,pass_ID2);
		}		
		else {
		
		}
	}	
}
function toConsole2(data2,pass_ID2)
{
	if (data2!=null) 
	{
			if(getobjbyid(pass_ID2))getobjbyid(pass_ID2).innerHTML=data2;
	}
}