//bbs Login
function checkform()
{
	var theForm = document.forms[1];
	if(theForm.TextUid.value=="")
	{	alert('ÇëÊäÈëµÇÂ½êÇ³Æ'); return false; }
	if(theForm.TextPwd.value=="")
	{	alert('ÇëÊäÈëµÇÂ½ÃÜÂë'); return false;}
	return true;
}

//Database Navigation
function showMM(num){
	var num="MM"+num;
	document.getElementById(num).style.display="block";
}
function hideMM(num){
	var num="MM"+num;
	document.getElementById(num).style.display="none";
}


//showHotTab
function showHotTab(n1,n2){
	var h=document.getElementById("tab"+n1).getElementsByTagName("h3");
	var d=document.getElementById("tab"+n1).getElementsByTagName("div");
	for(var i=0;i<h.length;i++){
		if(n2-1==i){
			h[i].className+=" up";
			d[i].className+=" block";
		}
		else {
			h[i].className=" ";
			d[i].className=" ";
		}
	}
}
 
 
//KeJet ADPolestar Need
function insertFlash(elm, url, w, h, id) {
	if (!document.getElementById(elm)) return;
	var str = '';
	str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" id='+id+'></embed>';
	document.getElementById(elm).innerHTML = str;
}

function insertFlash1(elm, url, w, h, id) {
	if (!document.getElementById(elm)) return;
	var str = '';
	str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="transparent" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" id='+id+'></embed>';
	document.getElementById(elm).innerHTML = str;
} 

