﻿var xmlHttp
var xmlHttp1
var xmlHttp2


<!----------TrangChu------------------------------------------------------------------->
function showCustomer1(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChanged1)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChanged1() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
	document.getElementById("WEB1").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
	document.getElementById("WEB1").innerHTML=xmlHttp.responseText 
	window.status="Đã tải xong dữ liệu !";
}  
}


function showCustomer2(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChanged2)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChanged2() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
	document.getElementById("WEB2").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
	document.getElementById("WEB2").innerHTML=xmlHttp.responseText 
	window.status="Đã tải xong dữ liệu !";
}  
}

						

<!----------Choi Nhac------------------------------------------------------------------>
function showduan1(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedPLAY)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedPLAY() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("duan1").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("duan1").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}

function showduan2(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedPLAY)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedPLAY() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("duan2").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("duan2").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}


function showduan3(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedPLAY)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedPLAY() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("duan3").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("duan3").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}
<!----------Admin------------------------------------------------------------------>



function showCustomer3(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChanged3)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChanged3() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("DangTIn").innerHTML='<center><br><br>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("DangTIn").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}



function showCustomer4(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedINFO)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedINFO() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("Thu2").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("Thu2").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}
//Ham day du lieu trong phan gian hang
function showCustomerSEARCH(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedSEARCH)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedSEARCH() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("ajaxtabcontainer").innerHTML='<center><br><br>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tìm kiếm ...</center>';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("ajaxtabcontainer").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}

<!----------VD2J-SEARCH------------------------------------------------------------------->

<!----------VD2J-QSEARCH------------------------------------------------------------------->
function showCustomerQSEARCH(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedQSEARCH)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedQSEARCH() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("VD2JQSEARCH").innerHTML='<center><br><br>24H Music Online <br><br><img src="loading.gif" boder=0 ><br><br>Đang tìm kiếm ...</center>';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("VD2JQSEARCH").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}

<!----------VD2J-QSEARCH------------------------------------------------------------------->

<!----------VD2J-SINGER------------------------------------------------------------------->
function showCustomerSINGER(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedSINGER)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedSINGER() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("HT_QuanHuyen").innerHTML='<center><br><br>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tìm kiếm ...</center>';

} 

  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("HT_QuanHuyen").innerHTML=xmlHttp.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}
<!----------Show Quang Cao ben trai------------------------------------------------------------------->
function showCustomerQC_Left(file)
{ 
var url=""+file+"";
xmlHttp1=GetXmlHttpObject(stateChangedQC_Left)
xmlHttp1.open("GET", url , true)
xmlHttp1.send(null)
} 

function stateChangedQC_Left() 
{ 
if (xmlHttp1.readyState==1 || xmlHttp1.readyState==2)
{ 
document.getElementById("QC_Left").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="200")
{ 
document.getElementById("QC_Left").innerHTML=xmlHttp1.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}
<!----------Show Quang Cao ben phai------------------------------------------------------------------->
function showCustomerQC_Right(file)
{ 
var url=""+file+"";
xmlHttp2=GetXmlHttpObject(stateChangedQC_Right)
xmlHttp2.open("GET", url , true)
xmlHttp2.send(null)
} 

function stateChangedQC_Right() 
{ 
if (xmlHttp2.readyState==1 || xmlHttp2.readyState==2)
{ 
document.getElementById("QC_Right").innerHTML='<center>MinhQuangLand <br><br><img src="loading.gif" boder=0 ><br><br>Đang tải dữ liệu ...</center>   ';

} 

  else  if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="200")
{ 
document.getElementById("QC_Right").innerHTML=xmlHttp2.responseText 
window.status="Đã tải xong dữ liệu !";
}  
}



<!----------VD2J-SINGER------------------------------------------------------------------->

function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
	objXmlHttp=new ActiveXObject(strName)
	objXmlHttp.onreadystatechange=handler 
	return objXmlHttp
} 
catch(e)
{ 
	alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
}
