function MyClick(no) {
for (var i = 1; i < 9; i++) {
var b = document.getElementById("a" + i.toString());
b.style.backgroundImage = "";
}
if (no != 0) {
var a = document.getElementById("a" + no.toString());
a.style.backgroundImage = "url(images/bulewhite.png)";
}
//
// if (0 == no) {
// var ele2 = document.getElementById("leftdiv");
// var btn2 = document.getElementById("hsBtn");
// ele2.style.display = "none";
// btn2.style.display = "none";
// } else {
// var ele3 = document.getElementById("leftdiv");
// var btn3 = document.getElementById("hsBtn");
// ele3.style.display = "block";
// btn3.style.display = "block";
// }
//
var lsrc = "Page/HomePage/NavPage.aspx";
var rsrc = "Page/HomePage/GCEconomicIndicators.aspx";
var img = "url(images/biaoyu_hexie.png)";
switch (no) {
case 0: lsrc = "Page/HomePage/NavPage.aspx"; rsrc = "Page/HomePage/GCEconomicIndicators.aspx"; img = "url(images/biaoyu_hexie.png)"; break;
case 1: lsrc = "Page/Monitor/NavPage.aspx"; rsrc = "Page/Monitor/Default.aspx"; img = "url(images/biaoyu_value.png)"; break;
case 2: lsrc = "Page/EquipmentReliability/NavPage.aspx"; rsrc = "Page/EquipmentReliability/analysis.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 3: lsrc = "Page/TrendAnalysis/NavPage.aspx"; rsrc = "Page/TrendAnalysis/RealTimeData.aspx"; img = "url(images/biaoyu_new.png)"; break;
case 4: lsrc = "Page/StatisticalComparison/NavPage.aspx"; rsrc = "Page/StatisticalComparison/UnitECDifAnalysis.aspx"; img = "url(images/biaoyu_new.png)"; break;
case 5: lsrc = "Page/FaultManagement/NavPage.aspx"; rsrc = "Page/FaultManagement/UnitFaultQuery.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 6: lsrc = "Page/ReportManager/NavPage.aspx"; rsrc = "Page/ReportManager/ConDiff.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 7: lsrc = "Page/ParameterImport/NavPage.aspx"; rsrc = "Page/ParameterImport/ProductionProcessParameter.aspx"; img = "url(images/biaoyu_zixin.png)"; break;
case 8: lsrc = "Page/FileManagement/NavPage.aspx"; rsrc = "Page/FileManagement/Default.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
// case 9: lsrc = "Page/AdvancedApplications/NavPage.aspx"; rsrc = "Page/AdvancedApplications/Default.aspx"; break;
}
document.getElementById("leftframe").src = lsrc;
document.getElementById("rightframe").src = rsrc;
document.getElementById("value").style.backgroundImage = img;
}
for (var i = 1; i < 9; i++) {
var b = document.getElementById("a" + i.toString());
b.style.backgroundImage = "";
}
if (no != 0) {
var a = document.getElementById("a" + no.toString());
a.style.backgroundImage = "url(images/bulewhite.png)";
}
//
// if (0 == no) {
// var ele2 = document.getElementById("leftdiv");
// var btn2 = document.getElementById("hsBtn");
// ele2.style.display = "none";
// btn2.style.display = "none";
// } else {
// var ele3 = document.getElementById("leftdiv");
// var btn3 = document.getElementById("hsBtn");
// ele3.style.display = "block";
// btn3.style.display = "block";
// }
//
var lsrc = "Page/HomePage/NavPage.aspx";
var rsrc = "Page/HomePage/GCEconomicIndicators.aspx";
var img = "url(images/biaoyu_hexie.png)";
switch (no) {
case 0: lsrc = "Page/HomePage/NavPage.aspx"; rsrc = "Page/HomePage/GCEconomicIndicators.aspx"; img = "url(images/biaoyu_hexie.png)"; break;
case 1: lsrc = "Page/Monitor/NavPage.aspx"; rsrc = "Page/Monitor/Default.aspx"; img = "url(images/biaoyu_value.png)"; break;
case 2: lsrc = "Page/EquipmentReliability/NavPage.aspx"; rsrc = "Page/EquipmentReliability/analysis.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 3: lsrc = "Page/TrendAnalysis/NavPage.aspx"; rsrc = "Page/TrendAnalysis/RealTimeData.aspx"; img = "url(images/biaoyu_new.png)"; break;
case 4: lsrc = "Page/StatisticalComparison/NavPage.aspx"; rsrc = "Page/StatisticalComparison/UnitECDifAnalysis.aspx"; img = "url(images/biaoyu_new.png)"; break;
case 5: lsrc = "Page/FaultManagement/NavPage.aspx"; rsrc = "Page/FaultManagement/UnitFaultQuery.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 6: lsrc = "Page/ReportManager/NavPage.aspx"; rsrc = "Page/ReportManager/ConDiff.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 7: lsrc = "Page/ParameterImport/NavPage.aspx"; rsrc = "Page/ParameterImport/ProductionProcessParameter.aspx"; img = "url(images/biaoyu_zixin.png)"; break;
case 8: lsrc = "Page/FileManagement/NavPage.aspx"; rsrc = "Page/FileManagement/Default.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
// case 9: lsrc = "Page/AdvancedApplications/NavPage.aspx"; rsrc = "Page/AdvancedApplications/Default.aspx"; break;
}
document.getElementById("leftframe").src = lsrc;
document.getElementById("rightframe").src = rsrc;
document.getElementById("value").style.backgroundImage = img;
}