var oldval1
var oldval2

////////////////XMl Codes
var xmlHttp

//---------------------------------
function LoadCSubForm(langx,fromx){ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)  {alert ("Your browser does not support AJAX!");return;} 
xmlHttp.onreadystatechange=SubFormApplyAction1;
xmlHttp.open("Get","load_content_by_ajax.asp?action=loadcsf1&langx="+langx+"&fromx="+fromx,true);
xmlHttp.send(null);}

function SubFormApplyAction1() { 
if (xmlHttp.readyState!=4){
window.document.getElementById ("ajax1").style.visibility = "visible"
}
else{
window.document.getElementById ("ajax1").style.visibility = "hidden"
window.document.getElementById("XMLTargeted1").innerHTML = xmlHttp.responseText;}}

//---------------------------------
function LoadCSubForm2(langx,fromx){ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)  {alert ("Your browser does not support AJAX!");return;} 
xmlHttp.onreadystatechange=SubFormApplyAction2;
xmlHttp.open("Get","load_content_by_ajax.asp?action=LoadEBForm&langx="+langx+"&fromx="+fromx,true);
xmlHttp.send(null);}

function SubFormApplyAction2() { 
if (xmlHttp.readyState!=4){
window.document.getElementById ("ajax2").style.visibility = "visible"
}
else{
window.document.getElementById ("ajax2").style.visibility = "hidden"
window.document.getElementById("XMLTargeted2").innerHTML = xmlHttp.responseText;}}

//---------------------------------
function LoadCSubForm3(langx,typex){ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)  {alert ("Your browser does not support AJAX!");return;} 
xmlHttp.onreadystatechange=SubFormApplyAction3;
xmlHttp.open("Get","load_content_by_ajax_02.asp?action=LoadMemberForm&langx="+langx+"&typex="+typex,true);
xmlHttp.send(null);}

function SubFormApplyAction3() { 
if (xmlHttp.readyState!=4){
//window.document.getElementById ("ajax2").style.visibility = "visible"
}
else{
//window.document.getElementById ("ajax2").style.visibility = "hidden"
window.document.getElementById("XMLTargeted3").innerHTML = xmlHttp.responseText;}}
//---------------------------------
function GetXmlHttpObject(){
var xmlHttp=null;
try {xmlHttp=new XMLHttpRequest(); }
catch(e){
try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }}
return xmlHttp;}
////////////////XMl Codes


