if (self != top) top.location.href = window.location.href;

function board_view(url) {
	window.open(url,'','top=100,width=550,height=500,menubar=no,status=no,toolbar=no,scrollbars=yes');
}
function checkLogin() {
	if (document.loginform.id.value.replace(/\s/g,'')=='') {alert('The parameter ID is not allowd to be empty.');document.loginform.id.focus();return false;}
	if (document.loginform.password.value.replace(/\s/g,'')=='') {alert('The parameter PW is not allowd to be empty.');document.loginform.password.focus();return false;}
	return true;
}
function checkkey() {
	if (document.searchform.key.value.replace(/\s/g,'')=='') {alert('The parameter KEY is not allowd to be empty.');document.searchform.key.focus();return false;}
	return true;
}
function setCookie( name, value, expiredays )
 {
	var today = new Date();
	today.setDate( today.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";
}
function LuxNavi() {
	if ( document.loginform.luxmea_navi.checked ) {
		setCookie( "luxmea_navigation", "checked" ,2 );
	}
	else {
		setCookie( "luxmea_navigation", "not_checked" ,2 );
	}
}
function msgposit_()
{
	message_small.style.posLeft = event.x + document.body.scrollLeft
	message_small.style.posTop = event.y + 10 + document.body.scrollTop
}
function msgset_(str,title)
{
	var text;
	text ='<table border=0 width=100 cellspacing=1 cellpadding=0 bgcolor=#818F30>';
	text+='<tr>';
	text+='	<td align=center bgcolor=#FFFFFF>';
	text+='  <table border=0 width=100% cellspacing=1 cellpadding=5>';
	text+='  <tr>';
	text+='		<td bgcolor=#FFFFCC align=center style=\"filter=progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFCC, EndColorStr=#FFFFFF)\" nowrap>'+str+'</td>';
	text+='	</tr>';
	text+='	</table>';
	text+='	</td>';
	text+='</tr>';
	text+='</table>';
	message_small.innerHTML=text
}
function msghide_(){
	message_small.innerHTML=''
}
