function goUrl(url){
	if(url)
	{
		if(url.substring(0, url.length - 4) == "html")
			location.href = url.substring(0, url.length - 4) + "aspx";	
		else
			location.href = url;
	}
}

function show_guidepopup() {
	var guidepop;
	guidepop = window.open("../guide/main0.aspx","guide_popup","scrollbars=no,width=900, height=768");
}

function flash(file, width, height)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>  <param name='movie' value='"+file+"'>  <param name='quality' value='high'>  <param name='wmode' value='transparent'><embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></object>");  
}

function loginPopup(url)
{
	win = window.open('../alert/login_popup.aspx?moveUrl='+url, 'login_popup','mebar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,width=390,height=230');
	win.focus();
}


function msgAlert(msg)
{
	win = window.open('../alert/msg.aspx?msg='+escape(msg), 'msg','mebar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,width=390,height=230');
	win.focus();
}

function recoAlert(no, seq, url, page)
{	
	win = window.open('../alert/reco.aspx?no='+no+'&seq='+seq+'&url='+url+'&page='+page+'', 'reco','mebar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,width=390,height=230');
	win.focus();
}

function recoAlert_pro(no, url, page, boardcode){
	win = window.open('../alert/reco_pro.aspx?no='+no+'&url='+url+'&page='+page+'&board='+boardcode+'', 'reco_pro','mebar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,width=390,height=230');
	win.focus()
}


function PersonAuthPopup()
{
	win = window.open('../alert/NotAuth.aspx', 'personauth_popup','mebar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,width=390,height=300');
	win.focus();
}

function OpenEpic5Pro()
{
	w = window.screen.width-8;
	h = window.screen.height-26;
	ep5pro = window.open("../epic5/intro.html", "epic5pro", "width="+w+",height="+h+",left=0,top=0;");
}

