// ÀÌ¹ÌÁö º¸±â
function cf_imageView(picname){
	win = jf_openWindowRtn('about:blank', 'imgView', 'yes', 'yes', 700, 700, 1, 1, 0);
	var strData =""	;

	strData += "<html><head><title>Image view</title></head><body leftmargin='0' topmargin='0' onload='resize()'>\n";
	strData += "<script language='javascript'>           		\n";
	strData += "function resize()                           \n";
	strData += "{                                           \n";
	strData += "	var p_height, p_width;                    \n";
	strData += "	p_width = document.img_view.width+40;     \n";
	strData += "	p_height = document.img_view.height+35;   \n";
	strData += "	if (p_width > 1024) p_width = 1024;       \n";
	strData += "	if (p_height > 768) p_height = 768;       \n";
	strData += "	self.resizeTo(p_width, p_height);         \n";
	strData += "}                                           \n";
	strData += "</script>                                   \n";
	strData += "<table border='0' cellspacing='0' cellpadding='0'><tr><td><a href='javascript:window.close();'><img name='img_view' src='" + picname + "' border='0'></a></td></td></table>\n";
	strData += "</body></html>\n";

	win.document.write(strData);
	win.location.reload()
}

function cf_popLink(url)
{	
	
	if (url == "/old/page/main.html")
	{
			
			window.open(url,'Win9','scrollbars=1 resizable=0 left=100 top=100 width=945 height=700');
			return;
	}
	window.open(url);
}

function cf_pop_old()
{
	window.open('/old/page/main.html','Win11','scrollbars=1 resizable=0 left=100 top=100 width=945 height=700');
}


function cf_pop_tour()
{
	window.open('http://www.gangwon.to/popup/apply.asp','Win10','scrollbars=0 resizable=0 left=400 top=150 width=420 height=325');
}

function cf_pop_govenor()
{
	window.open('/governor/page/main.html','Win1','scrollbars=1 resizable=0 left=100 top=100 width=925 height=680');
}

function cf_pop_govenor2()
{
	window.open('/governor/page/sub5/sub5.html','Win2','scrollbars=1 resizable=0 left=100 top=100 width=925 height=680');
}

function cf_Webzine(){
	jf_openWindow("/app/mailing/prc_maling_join_frm.asp", "Mailing", 0, 0, 300, 225, 0, 0, 1);
}

//½Ç±¹ÆË¾÷
function cf_Link(url)
{
	location.href=url
}

function cf_pop_up(url)
{
	window.open(url);
}
// ¿ìÆí¹øÈ£
function cf_zipcode(zip, addr1){
	jf_openWindow('/app/zipcode/zipcode_search.asp?hb_Zipcode=' + zip + "&hb_Addr1="+addr1, 'formmail', 'yes', 'yes', 443	, 300, 1, 1, 1)
}

// ¸ÞÀÏ¸µ
function cf_mailing(){
	jf_openWindow('/app/mailing/prc_maling_join_frm.asp', 'mailing', 'no', 'no', 300, 230, 1, 1, 1);
}

// Æû¸ÞÀÏ º¸³»±â
function cf_formMail(email){
   jf_openWindow('/app/formmail/prc_formail_frm.asp?hb_Email=' + email, 'formmail', 'no', 'no', 575, 410, 1, 1, 1)
}

//¸ÞÀÏ¸µ ¸®½ºÆ® µî·ÏÆû
function cf_NLmailing(){
	jf_openWindow("/app/mailing/prc_maling_join_frm.asp", "Mailing", 0, 0, 300, 225, 0, 0, 1);
}



function cf_gallery(ID){
	if (ID == null)
		ID = "";
	open('/app/board/pop_photo/photo.asp?hb_BoardManager_ID='+ID,"cf_gallery", "width=755,height=800,toolbars=no, menubar=no, status=no, scrollbars=no, resize=no, left1, top=1");
}

// È¸¿ø°¡ÀÔ
function cf_memberJoin(){
	//alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù. È¸¿ø°¡ÀÔÀ» ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
	location.href= '/home/page/sub7/01_01.html';
}

// È¸¿øÁ¤º¸¼öÁ¤
function cf_myinfoModify(){
	location.href= '/home/page/sub7/02_02.html';
}

// ºñ¹Ð¹øÈ£ Ã£±â
function cf_memberPasswdFind(){
	jf_openWindow('/app/member/passwd_find/prc_passwd_frm.asp', 'passwd_find', 'no', 'no', 430, 300, 1, 1, 1);
}

// ¸ÞÀÏ¸µ ¸®½ºÆ® °¡ÀÔ
function cf_MailingJoin(email){
   jf_openWindow('/app/mailing/prc_mailing_frm.asp', 'mailing', 'no', 'no', 300, 228, 1, 1, 1)
}

// ºÏ¸¶Å©
function cf_bookmark(strUrl){
   if (strUrl == null)
   	jf_openWindow('/app/member/bookmark/prc_bookmark_process.asp?hb_Mode=listForm', 'contentmail', 'no', 'yes', 446, 330, 1, 1, 1)
   else
   	jf_openWindow('/app/member/bookmark/prc_bookmark_process.asp?hb_Mode=writeForm&hb_Url=' + strUrl, 'contentmail', 'no', 'yes', 446, 330, 1, 1, 1)
}

// ÀÌÄ«µå
function cf_ecard(){
   jf_openWindow('/app/ecard/prc_ecard_process.asp?hb_Manager_PK=EDAA9901', 'ecardForm', 'no', 'yes', 616, 580, 1, 1, 1)
}

// ¸¶ÀÌÆäÀÌÁö
function cf_mypage(){
	location.href= '/home/page/sub7/02_01.html';
}

// ÀÌºÏ
function cf_ebook(code){
	location.href= '/home/html/sub6/sub6_11.html';
}

// ³¯¾¾Á¤º¸
function cf_weather(){
	jf_openWindow('http://w365.com/korea/kor/oneclick/w365_oneclick_fcst_090.html', 'wearther', 'no', 'no', 650, 500, 1, 1, 1)

}

// ·Î±×ÀÎ
function cf_login(url){
	if(url == null)
		url = "";
  location.href= '/app/member/login/prc_login_frm.asp?hb_RtnUrl=' + url;
}

// ·Î±×ÀÎ ¾Æ¿ô
function cf_logout(url){
	if(url == null)
		url = "";
  location.href= '/app/member/login/prc_logout.asp?hb_RtnUrl=' + url;
}


// ½Ç¸íÀÎÁõ ÆË¾÷
function cf_openNameAuth(rurl){
	window.name="main_page_target";
	jf_openWindowRtn('/app/auth/prc_auth_window_frm.asp?hb_RetUrl='+rurl, 'authName', 0, 0, 450, 350, 1, 1, 1);
}

// ÄÁÅÙÃ÷ ÀÌ¸ÞÀÏ º¸³»±â
function cf_email(strUrl) {
	jf_openWindow('/app/contentmail/prc_contentmail_frm.asp?hb_Url=' + strUrl, 'contentmail', 'no', 'no', 560, 380, 1, 1, 1)
}

// E-mail stop
function cf_EmailStop(E_mail){
	if(E_mail == null)
		E_mail = "";
	jf_openWindow('/app/email_stop/prc_email_frm.asp?hb_Email=' + E_mail, 'Email', 0, 0, 300, 185, 1, 1, 1);
}


// Äí±â °ü·Ã ÇÔ¼ö
function delCookie(name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function setCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function getCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}

// var cf_article_fontSize = parseInt(getCookie("cf_article_fontSize"));
var cf_article_fontSize = 9;

function cf_initFont() {
	if ( (cf_article_fontSize < 10) || (cf_article_fontSize > 13) || (isNaN(cf_article_fontSize) == true)) {
		cf_article_fontSize = 9;
	}
	cf_setFont(cf_article_fontSize);
}

function cf_setFont(cf_article_fontSize) {
	if (document.all["contentBody"]==null)
		return;

	var cnt = document.all["contentBody"].length;
	var i;

	if (cnt == null)
		document.all["contentBody"].style.fontSize = cf_article_fontSize+"pt";
	else{
		for(i= 0 ; i < cnt; i++){
			document.all["contentBody"][i].style.fontSize = cf_article_fontSize+"pt";
		}
	}
	cf_setFontCookie(cf_article_fontSize);
}

function cf_setFontCookie(cf_article_fontSize)
{
	var expiry = new Date();
	var path = "/";
	var domain = "";
	var secure = "";
}

function cf_fontPlus() {
	if (cf_article_fontSize < 13) {
		cf_article_fontSize = cf_article_fontSize + 1;
		cf_setFont(cf_article_fontSize);
	}
}

function cf_fontMinus() {
	if (cf_article_fontSize > 8) {
		cf_article_fontSize = cf_article_fontSize - 1;
		cf_setFont(cf_article_fontSize);
	}
}

// ÄÁÅÙÃ÷ ÇÁ¸°Æ®
function cf_print() {
	print();
}



