<!--
function changeImg(chimg) {
	var srcElement = event.srcElement;
	var newImage = new Image();
	newImage.src = "/img/" + chimg;
	srcElement.src = newImage.src;
}

function findZip() {
	var url = "/findzip/findzip.asp";
	var width = 445;
	var height = 330;
	var option = "scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,left=0,top=0,resizable=yes,width=" + width + ",height=" + height;

	window.open (url, "findzip", option);
}

function findUserid() {
	var f = document.frm;
	var url = "/membership/finduserid.asp?userid=" + f.userid.value;
	var width = 445;
	var height = 170;
	var option = "scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,left=0,top=0,resizable=yes,width=" + width + ",height=" + height;

	window.open (url, "finduserid", option);
}

function viewBigImg(imgname) {
	var url = "/reneevon_star/viewbigimg.asp?imgname=" + imgname;
	var width = 361;
	var height = 404;
	var option = "scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,left=200,top=20,resizable=yes,width=" + width + ",height=" + height;

	var bigImage = window.open (url, "bigImage", option);
	bigImage.focus();
}

function index_page(url) {

	var winreswidth=window.screen.availWidth;
	var winresheight=window.screen.availHeight;
	var wind;

	wind = window.open( url, 'RENEEVON', 'top=0,left=0,width=' + winreswidth +
		',height=' + winresheight + ',toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=yes' );
	wind.moveTo(0, 0);
	wind.resizeTo(winreswidth, winresheight);
	wind.focus();
/*
	if (!document.layers&&!document.all&&!document.getElementById) {
		paramstp="height=580,width=796,top=0,left=0,scrollbars=yes,location=no" + ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
		var gwa=window.open(url,'_blank',paramstp);
		if (gwa.focus) {
			gwa.focus();
		}
		return;
	}
	var movespeed=200;
	var resizespeed=100;
	var winreswidth=window.screen.availWidth;
	var winresheight=window.screen.availHeight;
	var leftspeed=winreswidth/movespeed;
	var topspeed=winresheight/movespeed;
	var movewidth=winreswidth;
	var moveheight=winresheight;
	var widthspeed=winreswidth/resizespeed;
	var heightspeed=winresheight/resizespeed;
	var sizewidth=0;
	var sizeheight=0;
	var gwa=open(url,"","left="+winreswidth+",top="+winresheight+",width=100,height=100,toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=yes");
	for (move=0;move<movespeed;move++) {
		gwa.moveTo(movewidth,moveheight);
		movewidth-=leftspeed;
		moveheight-=topspeed;
	}
	gwa.moveTo(0,0);
	for (size=0;size<resizespeed;size++) {
		gwa.resizeTo(sizewidth,sizeheight);
		sizewidth+=widthspeed;
		sizeheight+=heightspeed;
	}
	gwa.resizeTo(winreswidth,winresheight);
	if (gwa.focus) {
		gwa.focus();
	}
*/
}

function index_page3(url) {

	var winreswidth=window.screen.availWidth;
	var winresheight=window.screen.availHeight;
	var wind;

	wind = window.open( url, 'f_site', 'top=0,left=0,width=' + winreswidth +
		',height=' + winresheight + ',toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=yes' );
	wind.moveTo(0, 0);
	wind.resizeTo(winreswidth, winresheight);
	wind.focus();
}

//season splash¿¡¼­ »ç¿ë
function showMovie(url,width,height)
{
	var x = (screen.width - width) >> 1;
	var y = (screen.height - height) >> 1;
	var option = "scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,resizable=yes,top=" + y + ",left=" + x + ",width=" + width + ",height=" + height;

	window.open( url, '', option);
}

function showMovie_full(url)
{
	var option = "fullscreen=yes,scrollbars=no";

	window.open( url, 'accessories', option);
}

function popupWindow()
{
	var url = "/popup/popup.html";
	var width = 422;
	var height = 380;
	var option = "scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,left=0,top=0,resizable=yes,width=" + width + ",height=" + height;

	window.open (url, "popup", option);
}

function goMonthly(obj)
{
	var thisYear = obj.options[obj.selectedIndex].value.substr(0,4) ;
	var thisMonth = obj.options[obj.selectedIndex].value.substr(5,2) ;

	document.location.href = "/princess_diary/diary/monthly.asp?thisYear=" + thisYear + "&thisMonth=" + thisMonth + "&thisDay=01" ;
}

function goWeekly(obj)
{
	var thisYear = obj.options[obj.selectedIndex].value.substr(0,4) ;
	var thisMonth = obj.options[obj.selectedIndex].value.substr(5,2) ;
	var thisDay = obj.options[obj.selectedIndex].value.substr(8,2) ;

	document.location.href = "/princess_diary/diary/weekly.asp?thisYear=" + thisYear + "&thisMonth=" + thisMonth + "&thisDay=" + thisDay ;
}

function changeMagazine(dirName)
{
	if (dirName != "")
	{
		document.location.href = "/magazine_cut/main.asp?dirName=" + dirName;
		document.all.magazine.options[0].selected = true;
	}
}

function changeMagazine2(url) {
	window.location.href = url ;
}

function changeMagazine3(magazine) {
	window.location.href = "main.asp?magazine="+magazine ;
}



function SelectDiv( tabName ) {
	var tabOn = eval(tabName);

	var divs = document.all.tags('DIV');

  for (var d = 0; d < divs.length; d++) {
		if (divs[d] == tabOn) {
			divs[d].style.display = 'block';
		}
		else {
			divs[d].style.display = 'none';
		}
  }
}

function index_page2(url) {
	if (!document.layers&&!document.all&&!document.getElementById) {
		paramstp="height=580,width=796,top=0,left=0,scrollbars=yes,location=no" + ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
		var gwa=window.open(url,"",paramstp);
		if (gwa.focus) {
			gwa.focus();
		}
		return;
	}
	var movespeed=200;
	var resizespeed=100;
	var winreswidth=window.screen.availWidth;
	var winresheight=window.screen.availHeight;
	var leftspeed=winreswidth/movespeed;
	var topspeed=winresheight/movespeed;
	var movewidth=winreswidth;
	var moveheight=winresheight;
	var widthspeed=winreswidth/resizespeed;
	var heightspeed=winresheight/resizespeed;
	var sizewidth=0;
	var sizeheight=0;
	var gwa=open(url,"","left="+winreswidth+",top="+winresheight+",width=100,height=100,toolbar=no,menubar=no,location=no,status=no,scrollbars=no,resizable=yes");
	for (move=0;move<movespeed;move++) {
		gwa.moveTo(movewidth,moveheight);
		movewidth-=leftspeed;
		moveheight-=topspeed;
	}
	gwa.moveTo(0,0);
	for (size=0;size<resizespeed;size++) {
		gwa.resizeTo(sizewidth,sizeheight);
		sizewidth+=widthspeed;
		sizeheight+=heightspeed;
	}
	gwa.resizeTo(winreswidth,winresheight);
	if (gwa.focus) {
		gwa.focus();
	}
}

//-->
