var contentObj;   // refer  the  content of  <div>

function getAjaxFile1(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged1
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}
function stateChanged1(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		 
		//init_dw_ScrollSub();
	 } 
}

function stateChanged2(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		 
		ChangeColors();
	 } 
}

function getAjaxFile(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}

function getAjaxFile4(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged4
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}

function getAjaxFile5(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged5
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}

function getAjaxFile6(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged6;
	xmlHttp.open("GET",urlPage,true);
	xmlHttp.send(null);
}
function getAjaxFile7(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged7;
	xmlHttp.open("GET",urlPage,true);
	xmlHttp.send(null);
}

function getAjaxFile8(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged8
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}



function getAjaxFile3(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged3
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}


function getAjaxFile2(urlPage) {
	xmlHttp=CreateHttpObject()
	if (xmlHttp==null) {
		alert ("Browser does not support HTTP Request")
		return
	} 
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",urlPage,true)
	xmlHttp.send(null)
}

function stateChanged(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText 
	 } 
} 

function stateChanged3(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		//changeDescription();
	 } 
}

function stateChanged4(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		changeRightTitle();
	 } 
}
function stateChanged6(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		Statusweek();
	 } 
}
function stateChanged8(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		StatusMouda();
	 } 
}
function stateChanged7(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		StatusNewLaha();
	 } 
}

function stateChanged5(CatId) { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
	    contentObj.innerHTML=xmlHttp.responseText;
		StatusLife();
	 } 
}

function CreateHttpObject() {
	var objXMLHttp=null
	if(window.XMLHttpRequest){//case for ie7+ and opera,ff,chrome,safari
               objXMLHttp = new XMLHttpRequest();
       }
       else if(window.ActiveXObject){//case ie5 and 6
               objXMLHttp = ActiveXObject("Microsoft.XMLHTTP");
       }
       else{
               alert("Your Browser Does Not Support XMLHTTP");
               return null; //return null in case no browser support
       }
return objXMLHttp
}




function stateChangedPost15() 
{
    if (xmlHttpPost15.readyState == 4 || xmlHttpPost15.readyState == "complete") 
	{
        contentObj15.innerHTML = xmlHttpPost15.responseText;
		changeValues();
		loadgalleries();
    }
}

function postAjaxFile15(urlPage, parameters) {
    xmlHttpPost15 = CreateHttpObject()
    if (xmlHttpPost15 == null) 
    {
        alert("Browser does not support HTTP Request")
        return
    }
    xmlHttpPost15.onreadystatechange = stateChangedPost15
    xmlHttpPost15.open("POST", urlPage, true);
    xmlHttpPost15.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xmlHttpPost15.setRequestHeader("Content-length", parameters.length);
    xmlHttpPost15.setRequestHeader("Connection", "close");
    xmlHttpPost15.send(parameters);
}



