function OpenWindow(address, width, height, resizable, scrolling, windowName, status, toolbar, location, menubar) {
	if (windowName == "") windowName = "NewWindow";

	if (navigator.appName.indexOf("Microsoft")!=-1 && navigator.appVersion.indexOf("Mac")!=-1) {
		height -= 16;
		width -= 16;
	} else if (navigator.appName.indexOf("Netscape")!=-1 && navigator.appVersion.indexOf("Mac")!=-1) {
		height -= 2;
	}
	
	
	var winleft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;
	
	
		
	//alert(address)
	var externalWindow = window.open(address,windowName,"top=" + winUp + ",left=" + winleft + ",'toolbar=0,location=0,menubar=0,status="+status+",width="+width+",height="+height+",scrollbars="+scrolling+",resizable="+resizable+",toolbar="+toolbar+",location="+location+",menubar="+menubar);
	externalWindow.focus();
}


function Register(sType) {
	//'toolbar=1,location=1,statusbar=1,menubar=0,

	// SYNTAX: OpenWindow(address, width, height, resizable, scrolling, windowName, status, toolbar, location, menubar)
	OpenWindow("register" + sType + ".asp",'960','330','NO','0','register','0','0','0','0');
}


function showDiv(theTable){
	if (document.getElementById(theTable).style.display == 'none'){
	document.getElementById(theTable).style.display = 'block';
	}
}

function hideDiv(theTable){
	if (document.getElementById(theTable).style.display == 'none'){
		document.getElementById(theTable).style.display = 'none';
	}else{
		document.getElementById(theTable).style.display = 'none';
	}
	
}


function Change(TheDiv){
	if (TheDiv == "EN"){
		showDiv("EN")
		hideDiv("KR")
	}else{
		hideDiv("EN")
		showDiv("KR")
	}
}
