////////////////////////////////////////////////////////////////////////////////////////
// µµ¿ò¸» ÅÇ°ü·Ã ÇÔ¼ö
var help_flag = 0;

// ÀÚµ¿À¸·Î µµ¿ò¸» Ç¥½Ã ÇÁ·¹ÀÓÀ» È®ÀåÇØÁØ´Ù.
function ExtendHelpFrame(Height)
{
	document.all.HelpFrame.style.height = eval(Height);
}

// ±âº»ÆäÀÌÁö º¸±â
function ClickBasic()
{
	document.all["basic"].style.display = "";
	document.all["help"].style.display = "none";

    document.all["img_basic"].src="../img/Tab/tab_base_on.gif";
    document.all["img_help"].src="../img/Tab/tab_help_off.gif";
}

// µµ¿ò¸» ÆäÀÌÁö º¸±â
function ClickHelp(no)
{
	document.all["basic"].style.display = "none";
	document.all["help"].style.display = "";

    document.all["img_basic"].src="../img/Tab/tab_base_off.gif";
    document.all["img_help"].src="../img/Tab/tab_help_on.gif";

	var url = document.location.href;
	var info = url.split("/");
	var len = info.length - 1;
	var fname = info[len];
	HelpFrame.document.location.href = "../Help/view_manual.php?key=" + fname;
	help_flag = 1;
}

//°Ë»öÃ¢ ¿­±â
function OpenSearchPart()
{
	value = document.all["search_part"].style.display;
	if (value == "none") 
	{
		document.all["search_part"].style.display = "";
		if (document.all["search_part_open"]) document.all["search_part_open"].style.display = "none";
		if (document.all["search_part_close"]) document.all["search_part_close"].style.display = "";
		if (document.all["search_part_close2"]) document.all["search_part_close"].style.display = "";
	}
	else 
	{
		document.all["search_part"].style.display = "none";
		if (document.all["search_part_open"]) document.all["search_part_open"].style.display = "";
		if (document.all["search_part_close"]) document.all["search_part_close"].style.display = "none";		
		if (document.all["search_part_close2"]) document.all["search_part_close"].style.display = "none";	
	}
}

//Ã¼Å©¹Ú½º ¼±ÅÃ
function ClickCheckBox2(name1, name2, name3)
{
	if (document.all[name1].checked) 
	{
		var edit = document.all[name3].getElementsByTagName("INPUT");
		SetCheckBox(edit, name2, 1);
	}
	else 
	{
		var edit = document.all[name3].getElementsByTagName("INPUT");
		SetCheckBox(edit, name2, 2);
	}
}

////////////////////////////////////////////////////////////////////////////////////////

function ChangePage(ptype, src1, src2)
{
	if (ptype == 1)
	{
		top.LeftFrame.document.location.href = src1;
	}
	else if (ptype == 2)
	{
		top.MainFrame.document.location.href = src1;
	}
	else if (ptype == 3)
	{
		top.TopFrame.document.location.href = src1;
	}
	else if (ptype == 4)
	{
		top.LeftFrame.document.location.href = src1;
		if (src2 != null) top.MainFrame.document.location.href = src2;
	}
	else if (ptype == 5)
	{
		top.document.location.href = src1;
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Mail(name, id, email) {  
	surl = '../Member/mail.php?info=' + name + "_" + id + "_" + email;
	return window.open(surl,'mail','width=370,height=410,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function Memo(URL,WD,HT) { 
return window.open('../Member/memo.php','memo','width=350,height=390,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function MemoView(URL,WD,HT) { 
window.open('../Member/memo_view.php','memo','width=350,height=390,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function ImageUpload(URL,WD,HT) { 
window.open('../Include/image_upload.php','memo','width=350,height=250,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function MailSubmit(URL,WD,HT) { 
window.open('../Include/mail_submit.php','memo','width=350,height=250,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function skin_view(URL,name1,src1) { 
window.open('../Design/skin_view.php?src=' + src1,'skin','width=400,height=410,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 

function searchID(URL,WD,HT) { 
window.open('Include/searchid.php','searchid','width=400,height=220,scrollbars=no,resizable=0,status=no,menubar=0'); 
} 


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v4.0
var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
if (app.indexOf('Netscape') != -1) {
if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
} else if (app.indexOf('Microsoft') != -1) {
if (version >= IEvers || verStr.indexOf(IEvers) != -1)
{if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
} else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}