////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  2006³â 3¿ù 15ÀÏ 
//  ½Å±ØÃ¢
//
////////////////////////////////////////////////////////////////////////////////////////////////////


/**************************************************************************************************
* °Ô½ÃÆÇ °Ë»ö
**************************************************************************************************/
function searchFunc(form){
	if(!form.key.value){
		alert ("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		form.key.focus();
		return;
	}
	form.action="list.html";
	form.submit();
}


/**************************************************************************************************
* ÆÄÀÏ ´ÙÁßÃ·ºÎ 
**************************************************************************************************/
function addcase(Cnt, plusCnt) {
	if(plusCnt == 1){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}

	if(signform.elements["userfile[]"].length == plusCnt){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}
	var cHtml = ""; 

	var Tbl = document.getElementById('uploadView'); 
	var tRow = Tbl.insertRow(); 

	cHtml +="<input type=file name=userfile[] style='width:400;border:#dadada solid 1px; height:18px' class=op_input>" ; 

	tRow.insertCell().innerHTML += cHtml; 
	return; 
}

function addcase2(Cnt, plusCnt) {
	if(plusCnt == 1){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}

	if(signform.elements["userfile[]"].length == plusCnt){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}
	var cHtml = ""; 

	var Tbl = document.getElementById('uploadView'); 
	var tRow = Tbl.insertRow(); 

	cHtml +="<input type=file name=userfile[] style='width:400' class=op_input>&nbsp;&nbsp;<br><input type=text name=outline[] style='width:400;border:#dadada solid 1px; height:18px' class=op_input> (»çÁøÀÇ °£´ÜÇÑ ¼³¸í)" ; 

	tRow.insertCell().innerHTML += cHtml; 
	return; 
}


function addcase3(Cnt, plusCnt) {
	if(plusCnt == 1){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}

	if(signform.elements["userfile[]"].length == plusCnt){
		alert("ÆÄÀÏÃ·ºÎ´Â "+Cnt+"°³±îÁö °¡´ÉÇÕ´Ï´Ù.");
		return;
	}
	var cHtml = ""; 

	var Tbl = document.getElementById('uploadView'); 
	var tRow = Tbl.insertRow(); 

	cHtml +="<input type=file name=userfile[] style='width:400;border:#dadada solid 1px; height:18px' class=op_input> (»çÀÎ)" ; 

	tRow.insertCell().innerHTML += cHtml; 
	return; 
}

/**************************************************************************************************
* È®´ëÀÌ¹ÌÁö º¸±â
**************************************************************************************************/
function image_open(what,x,y) { 
	var imgwin = window.open("",'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width='+x+',height='+y); 
	imgwin.focus(); 
	imgwin.document.open(); 
	imgwin.document.write("<html>\n"); 
	imgwin.document.write("<head>\n"); 
	imgwin.document.write("<title>»çÁøº¸±â</title>\n"); 

	imgwin.document.write("<sc"+"ript>\n"); 
	imgwin.document.write("function resize() {\n"); 
	imgwin.document.write("pic = document.il;\n"); 
	//imgwin.document.write("alert(eval(pic).height);\n"); 
	imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
	imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 32; myWidth = eval(pic).width + 12;\n"); 
	imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
	imgwin.document.write("  clearTimeout();\n"); 
	imgwin.document.write("  var height = screen.height;\n"); 
	imgwin.document.write("  var width = screen.width;\n"); 
	imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
	imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
	//imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
	imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
	imgwin.document.write("}else setTimeOut(resize(), 10);}\n"); 
	imgwin.document.write("</sc"+"ript>\n"); 

	imgwin.document.write("</head>\n"); 
	imgwin.document.write('<body height="100%" topmargin="0" leftmargin="0" buttommargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 

	imgwin.document.write("<img border=0 src="+what+" xwidth="+x+" xheight="+y+" name=il onclick='window.close();'>\n"); 
	imgwin.document.write("</body>\n"); 
	imgwin.document.close(); 
}


/**************************************************************************************************
* FAQ °ü·Ã
**************************************************************************************************/
var old='';
function menu(name){
		
	submenu=eval('submenu_prodeval'+name+'.style');

	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}
	
	
	
	
/*
function makeWin(url, winname, width, height, scroll)
{
   xposition=0; yposition=0;
   if (parseInt(navigator.appVersion) >= 4){
      xposition = (screen.width - width) / 2;
      yposition = (screen.height - height) / 2 - 20;
   }
   args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1,"
         + "scrollbars=" + scroll + "," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0,"
   + "screenx=" + xposition + ","  //NN Only
   + "screeny=" + yposition + ","  //NN Only
   + "left=" + xposition + ","     //IE Only
   + "top=" + yposition;           //IE Only

   newWin=window.open(url,winname,args)
   newWin.focus();
}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}
*/
 


function view_article(q) {

 var tagName = "";
 var id = "";
 var open = q.style.display;

  for(var obj in document.all) {
    tagName = document.all[obj].tagName;
    id = document.all[obj].id;

    if (tagName == "SPAN") {
	
       document.all[obj].style.display = "none";     
    }
  }

  if (open == "" ) q.style.display = "none";
  else q.style.display ="";

}


 




