
function JS_viewObj(objhtml) { 
    document.write(objhtml); 
} 

function pop(url){
    win =  "width=660,height=720,toolbars=0,location=0,directories=0,top=0,left=0,menubar=0,scrollbars=1,resizable=0";
    popWindow=window.open(url,"pop1",win);
}	

function pop_resize(url,iw,ih){
    win =  "width="+iw+",height="+ih+",toolbars=0,location=0,directories=0,top="+(screen.availHeight-ih)/2+",left="+(screen.availWidth-iw)/2+",menubar=0,scrollbars=1,resizable=1";
    window.open(url,"pop2",win);
}	

function pop_noresize(url,iw,ih){
    win =  "width="+iw+",height="+ih+",toolbars=0,location=0,directories=0,top="+(screen.availHeight-ih)/2+",left="+(screen.availWidth-iw)/2+",menubar=0,scrollbars=0,resizable=0";
    popWindow=window.open(url,"pop3",win);
}	

function pop_center(url,iw,ih){
	var resizeHeight

	if(ih>screen.availHeight-100) {
		resizeHeight=screen.availHeight-100
	}
	else {
		resizeHeight=ih
	}

    var x = ( screen.availWidth - iw)/2;
    var y = ( screen.availHeight-100 - resizeHeight)/2;

    win =  "width="+iw+",height="+resizeHeight+",left="+x+",top="+y+",toolbars=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=0";
    popWindow=window.open(url,"pop",win);
}	

var ifrContentsTimer; 

function resizeRetry() { //ÀÌ¹ÌÁö°°ÀÌ ·Îµù½Ã°£ÀÌ °É¸®´Â °ÍµéÀÌ ·ÎµùµÈÈÄ ´Ù½Ã ÇÑ¹ø ¸®»çÀÌÁî
	if(document.body.readyState == "complete") { 
		clearInterval(ifrContentsTimer); 
	}else { 
		resizeFrame(); 
	} 
} 

function resizeFrame(){ //ÆäÀÌÁö°¡ ·ÎµùµÇ¸é ¹Ù·Î ¸®»çÀÌÁî..
	self.resizeTo(document.body.scrollWidth + (document.body.offsetWidth-document.body.clientWidth), parseInt(document.body.scrollHeight)+10); 
} 

function get_mBoard(obj){
	var vArea = obj[obj.selectedIndex].value;
	//alert(vArea);
	if(vArea == "" || vArea == 0 || vArea == 55){
	}else{
		document.goBoard.vArea.value = vArea;
		document.goBoard.method = "get";
		document.goBoard.target = "_top";
		document.goBoard.action = "/primadonna/memberboard.php";
		document.goBoard.submit();

	}
}



//########################################
function getCookie(Name) {
  var search = Name + "="
  if (document.cookie.length > 0) { // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset)
      // ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
      if (end == -1)
        end = document.cookie.length
      return unescape(document.cookie.substring(offset, end))
    }
  }
  return "";
}

function setCookie (name, value, expires) {
  document.cookie = name + "=" + escape (value) +
    "; path=/; expires=" + expires.toGMTString() + ";"; 
}
//########################################