﻿//HCUBIU: 12-10-2007

var xmlHttp

<!-------menutintucsd---------------------------------------------------------------------->
function showmenuTintuc(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedmenuTintuc)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedmenuTintuc() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("menutintucsd").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("menutintucsd").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!-------menutintucsd---------------------------------------------------------------------->

<!----------main-tintuc------------------------------------------------------------------->
function showTintuc(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedTintuc)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedTintuc() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main-tintuc").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main-tintuc").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-tintuc------------------------------------------------------------------->

<!----------main-showboxdong------------------------------------------------------------------->
function showboxdong(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedboxdong)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedboxdong() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("boxdong").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("boxdong").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-showboxdong------------------------------------------------------------------->

<!----------main-show thu vien chi tiet------------------------------------------------------------------->
function showThuvien(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedthuvienchitiet)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedthuvienchitiet() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("Main_thuvien").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("Main_thuvien").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-tintuc------------------------------------------------------------------->


<!----------main-menuthuvien------------------------------------------------------------------->
function showmenuthuvien(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedmenuthuvien)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedmenuthuvien() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("menuthuvienshow").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("menuthuvienshow").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-tintuc------------------------------------------------------------------->

<!----------main-yeuthich------------------------------------------------------------------->
function showYT(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedYT)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedYT() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main-yeuthich").innerHTML='<div style="width:550px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main-yeuthich").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-yeuthic------------------------------------------------------------------->

<!----------body-tintuc------------------------------------------------------------------->
function showBDTintuc(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedBDTintuc)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedBDTintuc() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("body-tintuc").innerHTML='<div style="width:605px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("body-tintuc").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------body-report------------------------------------------------------------------->


<!----------main-report------------------------------------------------------------------->
function showReport(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main-report").innerHTML='<div style="width:560px; height:100px" align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main-report").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------main-report------------------------------------------------------------------->

<!----------start main-hcubiu------------------------------------------------------------------->
function showMainhcubiu(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedhcubiu)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedhcubiu() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_hcubiu").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_hcubiu").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------end main-hcubiu------------------------------------------------------------------->

<!----------start main-intro------------------------------------------------------------------->
function showMainintro(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedintro)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedintro() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_intro").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_intro").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------end main-intro------------------------------------------------------------------->

<!----------start main-product------------------------------------------------------------------->
function showMainSanpham(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedsanpham)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedsanpham() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_product").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_product").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------end main-product------------------------------------------------------------------->

<!----------start main-solution------------------------------------------------------------------->
function showMainGiaiphap(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedgiaiphap)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedgiaiphap() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_solution").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_solution").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------end main-solution------------------------------------------------------------------->

<!----------start main-service------------------------------------------------------------------->
function showMainDichvu(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangedichvu)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangedichvu() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_service").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_service").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------end main-service------------------------------------------------------------------->


 function showhketqua(trang) {

// Open custom Alert Dialog window
   var w = screen.width-10
   var h = screen.height-50
   var x=0;
   var y=0;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=1,resizable=yes"+",left="+x+",top="+y;
   var alertWin = window.open(trang, "alertWin", chrome);
}

//su dung de load picture
function loadPix(txtobj) 
{
   var w = 300
   var h = 200
   var x=(screen.width-w)/2;
   var y=(screen.height-h)/2;

	window.txtval = document.getElementById(txtobj);
	//window.srcval = document.getElementById(imgobj);
	var win = open("ManagerNew/OpenPix.aspx", "gallery", "width=300px, height=300px, scrollbars=yes, resizable=yes,left="+x+"top=50px");
	
}

 function showhcubiu(trang) {

// Open custom Alert Dialog window
   var w = 437
   var h = 200
   var x=(screen.width-w)/2;
   var y=(screen.height-h)/2;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=0,resizable=no"+",left="+x+",top="+y;
   var alertWin = window.open(trang, "alertWin", chrome);
}

function showbangdiem(trang) {

// Open custom Alert Dialog window
   var w = 990
   var h = 650
   var x=(screen.width-w)/2;
   var y=10;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=yes,resizable=no"+",left="+x+",top="+y;
   var alertWin = window.open(trang, "alertWin", chrome);
}

function showVideo(trang) {

// Open custom Alert Dialog window
   var w = 990
   var h = 650
   var x=(screen.width-w)/2;
   var y=10;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=yes,resizable=no"+",left="+x+",top="+y;
   var alertWin = window.open(trang, "alertWin", chrome);
}

function showopentest(trang) {

// Open custom Alert Dialog window
   var w = screen.width;
   var h = screen.height - 70;
   var x=(screen.width-w)/2;
   var y=(screen.height-h)/2;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=1,resizable=yes"+",left="+x+",top=0";
   var alertWin = window.open(trang, "alertWin", chrome);
}

<!---------- start Cau truc mon hoc------------------------------------------------------------------->
function showCautruc(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(statecautrucmonhoc)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function statecautrucmonhoc() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("cautrucmonhoc").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("cautrucmonhoc").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------End cau truc mon hoc------------------------------------------------------------------->


<!----------main-Education------------------------------------------------------------------->
function showEducation(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangededucation)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangededucation() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("main_education").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("main_education").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------End Education------------------------------------------------------------------->

<!----------start main-Mon hoc------------------------------------------------------------------->
function showMonhoc(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateMonhoc)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateMonhoc() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("Main_monhoc").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("Main_monhoc").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------End Mon hoc------------------------------------------------------------------->


<!----------main-Education------------------------------------------------------------------->

function showBodyEducation(file)
{ 
var url=""+file+"";
xmlHttp=GetXmlHttpObject(stateChangededucation)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 

function stateChangededucation() 
{ 
if (xmlHttp.readyState==1 || xmlHttp.readyState==2)
{ 
document.getElementById("body_education").innerHTML='<div align=left><br><img src="images/transfer.gif" boder=0 width="89" height="12"><br><br>Loading....</div>';

} 
  else  if (xmlHttp.readyState==4 || xmlHttp.readyState=="200")
{ 
document.getElementById("body_education").innerHTML=xmlHttp.responseText 
window.status="iTechPro Best Solution";
}  
}
<!----------End Education------------------------------------------------------------------->

<!------------------------Show hide--------------------------------------------------------->
function crossObj(id){
	if (document.getElementById) {
		return document.getElementById(id);
	} else if (document.all) {
		return document.all[id];
	} else if (document.layers) {
		return document.layers[id];
	} else {
		return null;
	}
}

function getO(id) {
	return crossObj(id);
}

function hideO(id) {
	getO(id).style.display = 'none';
}

function showO(id) {
	getO(id).style.display = '';
}

<!------------------------Show hide--------------------------------------------------------->

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
}
}

function showDangkyhoc(trang) {

// Open custom Alert Dialog window
   var w = screen.width;
   var h = screen.height - 30;
   var x=(screen.width-w)/2;
   var y=0;
   var chrome = "width=" + w + ",height=" + h + ",scrollbars=yes,resizable=no"+",left="+x+",top="+y;
  // var chrome = "scrollbars=yes,resizable=no"+",left="+x+",top="+y;
   var alertWin = window.open(trang, "alertWin", chrome);
   //var alertWin = window.open(trang);
}
