<!--//
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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//--> 

<!--//

// »õ Ã¢ ¶ç¿ì±â
function NewWin(url, width, height) {                                                                                                                                                                                                                                                                                                                                             
	var Win_Str = 'width=' + width + ',height=' + height + ', top=300,left=300,scrollbars=auto,resizable=no';
	farwindow = window.open('','Sky',Win_Str);                                                                                                                                                                                                                                                                                                                                             
	if (farwindow != null) {                                                                                                                                                                                                                                                                                                                                             
		if (farwindow.opener == null) {                                                                                                                                                                                                                                                                                                                                             
			farwindow.opener = self;                                                                                                                                                                                                                                                                                                                                             
		}                                                                                                                                                                                                                                                                                                                                             
		farwindow.location.href = url;                                                                                                                                                                                                                                                                                                                                             
	}                                                                                                                                                                                                                                                                                                                                             
}                        

function NewWinScroll(url, width, height) {
var Win_Str = 'width=' + width + ',height=' + height + ', top=300,left=300,toolbar=0,scrollbars=1,resizable=no' 
    farwindow = window.open('','Sky',Win_Str);                                                                                                                                                                                                                                                                                                                                             
	if (farwindow != null) {                                                                                                                                                                                                                                                                                                                                             
		if (farwindow.opener == null) {                                                                                                                                                                                                                                                                                                                                             
			farwindow.opener = self;                                                                                                                                                                                                                                                                                                                                             
		}                                                                                                                                                                                                                                                                                                                                             
		farwindow.location.href = url;                                                                                                                                                                                                                                                                                                                                             
	}                                                                                                                                                                                                                                                                                                                                             
}                                                

// Ä«Å×°í¸® °Ë»ö
function changeCategory(form)
{	
	form.submit();
}

// ºí·Î±×Çü/°Ô½ÃÆÇÇü ¼±ÅÃ
function changeViewType(form,type)
{	
	form.ViewType.value = type;
	form.submit();
}                                                                                                                                                                                                                                                                                                                           

// »õ Ã¢ ¶ç¿ì±â
function New_Window(url, width, height) {                                                                                                                                                                                                                                                                                                                                             
	var Win_Str = "width=" + width + ",height=" + height + ", top=300,left=300,toolbar=0,scrollbars=auto,history=no,resizable=no,status=yes,menubar=no" 
//	window.open(url,"Sky",Win_Str);
	farwindow = window.open("","SkyNew",Win_Str);                                                                                                                                                                                                                                                                                                                                             
	if (farwindow != null) {                                                                                                                                                                                                                                                                                                                                             
		if (farwindow.opener == null) {                                                                                                                                                                                                                                                                                                                                             
			farwindow.opener = self;                                                                                                                                                                                                                                                                                                                                             
		}                                                                                                                                                                                                                                                                                                                                             
		farwindow.location.href = url;                                                                                                                                                                                                                                                                                                                                             
	}                                                                                                                                                                                                                                                                                                                                             
}         
                                                                                                                                                                                                                                                                                                                                           
//-->

<!--//

// Ä«Å×°í¸® °Ë»ö
function changeCategory(form)
{	
	form.submit();
}

// ºí·Î±×Çü/°Ô½ÃÆÇÇü ¼±ÅÃ
function changeViewType(form,type)
{	
	form.ViewType.value = type;
	form.submit();
}
//-->

// ³ªµµ ÇÑ¸¶µð ÅõÇ¥/°á°ú
function Vote(form)
{
	var flag = 1;
	
	for(var i=0; i<form.AnswNo.length; i++) {
		if(form.AnswNo[i].checked) { 
		
			var url = "/new_inc/PollVote.asp?BORD_Num=" + form.BORD_Num.value + "&QUST_Num=" + form.QUST_Num.value + "&AnswNo=" + form.AnswNo[i].value;
			var width = "510";
			var height = "350";
			NewWin(url, width, height);
			
			flag = 0;
		}
	}
	if(flag) {
		alert("Ç×¸ñÀ» ¼±ÅÃ ÇÏ½ÃÁö ¾Ê¾Ò½À´Ï´Ù");
	}
}

function View(form)
{
	var url = "/new_inc/PollView.asp?QUST_Num=" + form.QUST_Num.value;
	var width = "510";
	var height = "350";
	NewWin(url, width, height);
}

//³ªµµ ÇÑ¸¶µð Comment
function tSend(form)
{
	if(form.tNote.value == ""){
		alert("\nÀÇ°ßÀ» ÀÛ¼ºÇÏ¿© ÁÖ½Ê½Ã¿À.");
		form.tNote.focus();
		return;
	}

	form.submit();
}

function len_chk(form){

	if(form.tNote.value.length > 3000){
		alert("\nÀÇ°ßÀº 3000ÀÚ ÀÌ³»·Î ÀÛ¼ºÇÏ¿© ÁÖ½Ê½Ã¿À.");
		form.tNote.focus();
		return;
	}
}

//ÇÁ¸°Æ®
function print_Win(url){
	window.open(url,"bd_print","menubar=0,toolbar=0,location=0,directory=0,scrollbars=1,resizable=0,width=680,height=600,top=50, left=150");
}
//±â»çº¸³»±â
function mail_Win(url){
	window.open(url,"mail_recommend","menubar=0,toolbar=0,location=0,directory=0,scrollbars=0,resizable=0,width=485,height=538,top=150, left=200");
}
//½ºÅ©·¦
function scrap_Win(url){
	window.open(url,"bd_scrap","menubar=0,toolbar=0,location=0,directory=0,scrollbars=0,resizable=0,width=400,height=250,top=50, left=150");
}

//±â¾÷¹Ì´ÏÈ¨ÇÇ
function mini_main(a){
	url = "/insight/mini/main.asp?sid=" + a;
	window.open(url,"MINIHOMEPI","toolbar=no,menubar=no, scrollbars=no,resizable=no,width=880,height=527, left=300, top=200")	
}



