/***************************************************************************
 * filename : head.js<br>
 * °øÅëÀ¸·Î »ç¿ëµÇ´Â ÇÔ¼ö¹× ¼Ó¼º<br>
 *
 * @version	: 1.0
 * @author	: free270
****************************************************************************/
if(HEAD_CLASS!=null) {
	alert("[head.js]´Â ÀÌ¹Ì include µÇ¾îÀÖ½À´Ï´Ù!!");
}
var HEAD_CLASS = true;

//BODYÅÂ±×ÀÇ onLoad() ÀÌº¥Æ®¿¡¼­ È£ÃâÇÏ´Â ÇÔ¼ö
function init(){
	//ÇØ´çÆäÀÌÁö³»¿¡¼­ overridingµÇ¾îÁü
}
//function popupEvent(){}
function init_start(){
	// code here ...  init()ÇÔ¼ö°¡ ÇØ´çÆäÀÌÁö³»¿¡¼­ overridingµÇ¾îÁö±â ¶§¹®¿¡ ±× ÀÌÀü¿¡ ½ÇÇàÇÏ°íÀÚ ÇÏ´Â ±â´ÉÀ» ¿©±â¿¡ ³ÖÀ¸½Ã¿À	
	init();

	setTimeout("popupEvent();", 1000);	
}

function find() {
	
	if(document.frm_search.txtsstring.value.replace(/ /ig,"") == "") {
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!');
		document.frm_search.txtsstring.focus();
		return;		
	}
	document.frm_search.submit();
}

function FlashPlay(Url, tWidth, tHeight)
{
   var tmpStr = "";
   tmpStr += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+ tWidth +"' height='"+ tHeight +"'>";
   tmpStr += "<param name='movie' value='"+ Url +"'>";
   tmpStr += "<param name='quality' value='high'>";
   tmpStr += "<param name='wmode' value='transparent'>";
   tmpStr += "<embed src='"+ Url +"' width='"+ tWidth +"' height='"+ tHeight +"' align='right' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent'></embed>";
   tmpStr += "</object>";
   
   document.write (tmpStr);
} 

function resizePopup(w,h) {

  document.body.style.overflow='hidden';

  var clintAgent = navigator.userAgent;

  if ( clintAgent.indexOf("MSIE") != -1 )
  {
    // IE
    window.resizeBy(w-document.body.clientWidth, h-document.body.clientHeight);
  }
  else
  {
    window.resizeBy(w-window.innerWidth, h-window.innerHeight);
  }
}

function edown(cnum,db,upfile) {
	frm_down.cnum.value   = cnum;
	frm_down.db.value     = db;
	frm_down.upfile.value = upfile;
	frm_down.submit();
}


