//¸ÞÀÏ¹ß¼Û - °Ô½ÃÆÇ
function jsEmailPop() {
  open_win_pop('', 'mailPop', 415, 448, 'no');
  document.mailForm.target = "mailPop";
  document.mailForm.action = '/gpms/view/korea/common/email_pop.jsp';
  document.mailForm.method = 'post'; 
  document.mailForm.submit();
}

// Ãâ·ÂÇÏ±â - html ÆäÀÌÁö
function jsPrint()
{
  var width = 740;
  var height = 600;
	var x, y;
	var screen_width  = screen.width;
	var screen_height = screen.height;
	x = (screen_width  / 2) - (width  / 2);
	y = (screen_height / 2) - (height / 2);
	var pop = window.open ( "/js/print/for_print.htm","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
	pop.focus();
	return;
}

//°Ô½ÃÆÇ
function jsPrintBoard()
{
  var width = 740;
  var height = 530;
	var x, y;
	var screen_width  = screen.width;
	var screen_height = screen.height;
	x = (screen_width  / 2) - (width  / 2);
	y = (screen_height / 2) - (height / 2);
	var pop = window.open ( "/js/print/for_print_board.htm","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
	pop.focus();
	return;
}

//ÀÌ¸ÞÀÏ ¹ß¼Û - htmlÆäÀÌÁö
function jsMailling() {
    var width = 645;
    var height = 600;
	var x, y;
	var screen_width  = screen.width;
	var screen_height = screen.height;
	x = (screen_width  / 2) - (width  / 2);
	y = (screen_height / 2) - (height / 2);
	var pop = window.open ( "/template/html/common/user.mail_form.vm","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
	pop.focus();
	return;
}

//ÀÌ¸ÞÀÏ ¹ß¼Û - htmlÆäÀÌÁö
function jsMaillingBoard() {
    var width = 640;
    var height = 600;
	var x, y;
	var screen_width  = screen.width;
	var screen_height = screen.height;
	x = (screen_width  / 2) - (width  / 2);
	y = (screen_height / 2) - (height / 2);
	var pop = window.open ( "/template/html/common/user.mail_form_board.vm","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
	pop.focus();
	return;
}

//½ºÅ©·¦
function jsScrap(sk) {
	var msg = "½ºÅ©·¦ ÇÏ½Ã°Ú½À´Ï±î?";
	if (confirm(msg)) {
	
		var url = scrapForm.scrap_pre.value + "?a=" + scrapForm.scrap_a.value + "&c=" + scrapForm.scrap_c.value+ "&board_id=" + scrapForm.board_id.value ;
		
		scrapForm.target = "iframeScrapHidden";
		scrapForm.url.value = url ;

		scrapForm.skin.value = sk ;
		scrapForm.submit();
		return;
	}
}

//½ºÅ©·¦
function jsScrapEnglish(sk) {
	var msg = "Would you scap?";
	if (confirm(msg)) {
		scrapForm.target = "iframeScrapHidden";
		scrapForm.skin.value = sk ;
		scrapForm.submit();
		return;
	}
}

//ºä¾î´Ù¿î·Îµå
function jsViewDownload() {
    var width = 540;
    var height = 350;
	var x, y;
	var screen_width  = screen.width;
	var screen_height = screen.height;
	x = (screen_width  / 2) - (width  / 2);
	y = (screen_height / 2) - (height / 2);
	var pop = window.open ( "/user.tdf?a=common.HtmlApp&c=1001&page=html/common/user.viewer.vm","viewer","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
	pop.focus();
	return;
}

//º¸ÀÌ½º¾ÆÀÌ ÀÎ¼â
function jsVoice(){
    window.open("", "voiceye_print", "status=no, scrollbars=yes, width=800, height=600, left=0, top=0");	
    voiceForm.target = "voiceye_print";
    voiceForm.action = "/voiceye/voiceye_print.jsp";
    voiceForm.submit();
}
//º¸ÀÌ½º¾ÆÀÌ ÀÎ¼â(¹Î¿ø)
function jsVoice2(){
    window.open("", "voiceye_print", "status=no, scrollbars=yes, width=800, height=600, left=0, top=0");	
    voiceForm2.target = "voiceye_print";
    voiceForm2.action = "/voiceye/voiceye_print.jsp";
    voiceForm2.submit();
}