/* ±âº» º¯¼ö ¼¼ÆÃ */

function bTrans(el)
{
el.filters.blendTrans.stop();
el.filters.blendTrans.Apply();
el.filters.blendTrans.Play();
}

function doTrans(el)  {
	if (el.style.visibility == 'hidden'){
        el.filters.blendTrans.Apply();
		el.style.visibility = '';
        el.filters.blendTrans.Play()
	}
	else {
				el.style.visibility = 'hidden';
	}
}
function writeDO() {
	var url = "do_from_do.php";
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"Modify","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}
function deleteDO(no) {
	var url = "from_do_del.php?no="+no;
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"Modify","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}
function FindIdPassword() {
	var url = "find_password.php";
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"Modify","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}


function UserInfoModify() {
	var url = "mod_info.php";
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"Modify","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}

function memberManager() {
	var url = "member_list.php";
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"MemberList","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}



function UserSignUp() {
	var url = "join.php";
	var x = (screen.availWidth - 575)/2;
	var y = (screen.availHeight - 523)/2;
	var CenterWin = window.open(url,"Join","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}


function openMessageBox()
{
	window.open(gURL_message + '/messageBox.php','mwMessagebox','width=750,height=550')
}

function windowResize(x,y)
{
	tmp_MSIE = window.navigator.userAgent.indexOf("MSIE");
	if(tmp_MSIE && window.navigator.userAgent.indexOf("SV1") > tmp_MSIE) { // SP2
		y = y + 25;
	} else { // Not SP2
	}

	var pos_x = (screen.availWidth - x)/2;
	var pos_y = (screen.availHeight - y)/2;

	window.resizeTo(x,y);
	window.moveTo(pos_x,pos_y);
}


function openCenterWin(url,wwidth,wheight)
{
	var x = (screen.availWidth - wwidth)/2;
	var y = (screen.availHeight - wheight)/2;
	var CenterWin = window.open(url,"","width="+wwidth+",height="+wheight+",top="+y+",left="+x);
}



function openCenterDialog(url,wwidth,wheight)
{
	var x = (screen.availWidth - wwidth)/2;
	var y = (screen.availHeight - wheight)/2;
	var CenterDialog = window.showModelessDialog(url, '', 'help:no; resizeable:no; status:no; statusbar:0; dialogWidth:'+wwidth+'px; dialogHeight:'+wheight+'px; dialogLeft:'+x+';dialogTop:'+y);
}

function find_zipcode(form,prefix) {

		if (!form) {
			form = "";
		}
		if (!prefix) {
			prefix = "";
		}

		var url = "find_zipcode.php?form="+form+"&prefix="+prefix;

		var x = (screen.availWidth - 450)/2;
		var y = (screen.availHeight - 386)/2;
		var CenterWin = window.open(url,"","width="+450+",height="+386+",top="+y+",left="+x+",scrollbars=yes");
}

function imageView(no) {

		var url = "photo_view.php?no="+no;

		var x = (screen.availWidth - 575)/2;
		var y = (screen.availHeight - 523)/2;
		var CenterWin = window.open(url,"VIEW","width="+575+",height="+523+",top="+y+",left="+x+",scrollbars=no");
}



function mail_chk()
{
	if (document.signup.check.checked == true) 	{
	document.signup.mail1.value="-1";
	mail1.style.display='none';
	mail2.style.display='';
	}
	else	{
	document.signup.mail2.value="";
	mail2.style.display='none';
	mail1.style.display='';

	}
}







function InFrameResize() {
var oFrame=parent.document.all("ifmAlbumComment");
oFrame.style.height=document.frames("ifmAlbumComment").document.body.scrollHeight;
}

function InFrmResize() {
var oFrame=parent.document.all("frmMyRoom");
oFrame.style.height=document.frames("frmMyRoom").document.body.scrollHeight;
}





function toggleSaveID()
{
	var el = document.getElementById("save_id_img");

	if (document.loginForm.save_id.value == "0")
	{
		el.src = gURL_img + "common/save_id_o.gif";
		document.loginForm.save_id.value = "1";
	}
	else
	{
		el.src = gURL_img + "common/save_id_x.gif";
		document.loginForm.save_id.value = "0";
	}
}

function dgearOpen() {
	var w_width	= 750;
	var w_height	= 550;

	var x = (screen.availWidth - w_width)/2;
	var y = (screen.availHeight - w_height)/2;
	var url = "shop/index.php";
	var CenterWin = window.open(url,"DGEAR","width="+w_width+",height="+w_height+",top="+y+",left="+x+",scrollbars=yes");
}