// JavaScript Document
function getRequestBody(oForm) {
	var aParams = new Array();
	
	for (var i=0 ; i < oForm.elements.length; i++) {
		if ((oForm.elements[i].type=="checkbox" || oForm.elements[i].type=="radio") && oForm.elements[i].checked==true){
			var sParam = encodeURIComponent(oForm.elements[i].name);
			sParam += "=";
			sParam += encodeURIComponent(oForm.elements[i].value);
			aParams.push(sParam);
		}else if ((oForm.elements[i].type!="checkbox" && oForm.elements[i].type!="radio")){
			var sParam = encodeURIComponent(oForm.elements[i].name);
			sParam += "=";
			sParam += encodeURIComponent(oForm.elements[i].value);
			aParams.push(sParam);
		}
	}
		return aParams.join("&");
}

function callSlideBox(xFunctionCallName, xLayerPartI, xLayerPartII, xParameterSaveEdit){
    var getFunctionInfo;
    
    getFunctionInfo = xFunctionCallName+'("'+xLayerPartI+'","'+xLayerPartII+'","'+ xParameterSaveEdit +'")';
	setTimeout(""+ getFunctionInfo +"", 1000);
}

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;
}