//´°¿Ú
function dgsopenwindow(nm,ht,wd,scll,srcn){document.write("<iframe id="+nm+" name="+nm+" style='HEIGHT:"+ht+";VISIBILITY:inherit;WIDTH:"+wd+";Z-INDEX:1' scrolling="+scll+" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 frameborder=0 src="+srcn+"></iframe>");}

//
function dgs(theURL) {
window.open(theURL, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=0,height=0,left=0,screenX=0,top=0,screenY=0');
}

////menu
function Shownewsmenu(count,id,title,aspurl)
{
document.write("<tr><td></td></tr><tr><td height=50 width=180 background=/img/leftmenu"+count+".jpg class=Shownewsmenu><a href="+aspurl+""+id+">"+title+"</a></td></tr>");
//document.write("<tr><td><hr size=1 color=#ff9c00></td></tr>")
}

function Showmenuen(count,id,title,aspurl)
{
document.write("<tr><td></td></tr><tr><td height=50 width=180 background=/img/leftmenu"+count+".jpg>&nbsp;&nbsp;<img src=/images/menuico.gif width=18 height=9><b><a href="+aspurl+""+id+">"+title+"</a></b></td></tr>");
//document.write("<tr><td><hr size=1></td></tr>")
}

function loadThreadnews(id,ver){
document.frames["hiddenframe"].location.replace("/loading.asp?class="+id+"&ver="+ver+"");
}
document.write("<iframe height=0 width=0 name=hiddenframe></iframe>")

function viewPage(ipage){
        document.frm_page.me_page.value=ipage;
        document.frm_page.submit();        
}



function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}
function clickTxt(){
	if(getObject('keyword').value == 'Search'){
		getObject('keyword').value = ""
		getObject('keyword').style.color = "#000000"
	}
}
function changeTxt(){
	if(getObject('keyword').value == ''){
		getObject('keyword').value = "Search"
		getObject('keyword').style.color = "#999999"
	}
}