// JavaScript Document
var xmlHttp; 
function createXMLHttpRequest() { 
if (window.ActiveXObject) { 
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
} 
else if (window.XMLHttpRequest) { 
xmlHttp = new XMLHttpRequest(); 
} 
} 
function startRequest_cost() { 
createXMLHttpRequest(); 
xmlHttp.onreadystatechange = handleStateChange; 
//xmlHttp.open("post", "bb.html", true); 
xmlHttp.open("POST", 'costmessage_ajax.asp', true); 
//xmlHttp.open("POST", "bbb.asp", true); 
xmlHttp.send(null); 
} 
function startRequest_news() { 
createXMLHttpRequest(); 
xmlHttp.onreadystatechange = handleStateChange; 
//xmlHttp.open("post", "bb.html", true); 
xmlHttp.open("POST", 'news_ajax.asp', true); 
//xmlHttp.open("POST", "bbb.asp", true); 
xmlHttp.send(null); 
} 
function startRequest_sjms() { 
createXMLHttpRequest(); 
xmlHttp.onreadystatechange = handleStateChange; 
//xmlHttp.open("post", "bb.html", true); 
xmlHttp.open("POST", 'sjms_ajax.asp', true); 
//xmlHttp.open("POST", "bbb.asp", true); 
xmlHttp.send(null); 
} 
function handleStateChange() { 
if(xmlHttp.readyState == 4) { 
if(xmlHttp.status == 200) { 
document.getElementById("bd01_l2_l2_content").innerHTML = xmlHttp.responseText; 
}}} 
function selectLayer3(i)
{
 switch(i)
 {
 case 1:
 document.getElementById("tt1").className='n1';
 document.getElementById("tt2").className='n2';
 document.getElementById("tt3").className='n2';
 document.getElementById("sL1").style.display='block';
 document.getElementById("sL2").style.display='none';
 document.getElementById("sL3").style.display='none';
 break;
 case 2:
 document.getElementById("tt1").className='n2';
 document.getElementById("tt2").className='n1';
 document.getElementById("tt3").className='n2';
 document.getElementById("sL1").style.display='none';
 document.getElementById("sL2").style.display='block';
 document.getElementById("sL3").style.display='none';
 break;
 case 3:
 document.getElementById("tt1").className='n2';
 document.getElementById("tt2").className='n2';
 document.getElementById("tt3").className='n1';
 document.getElementById("sL1").style.display='none';
 document.getElementById("sL2").style.display='none';
 document.getElementById("sL3").style.display='block';
 break;
 }}
function select_PB(sid){
var obj1="pb_show";
var obj2="pb_sc";
var y=7;
for(var x=1;x<=y;x++){
if(x==sid){
	document.getElementById(obj1+sid).className="s_show";
	document.getElementById(obj2+sid).style.display="block";}
else{
	document.getElementById(obj1+x).className="ns_show";
	document.getElementById(obj2+x).style.display="none";
	
	}}}
