	function openwin(pUrl,pName,pScroll,pWidth,pHeight,pLeft,pTop){
		newwin = window.open(pUrl,pName,"width="+pWidth+", height="+pHeight+", left="+pLeft+", top="+pTop+", scrollbars="+pScroll+", toolbars=no, status=no");
		newwin.focus();
	}
	
	// ¾Ë¹ÙÁ¤º¸ ½ºÅ©·¦ÇÏ±â
	function goSave(){
		var gid = '';
		if(document.frm.id.length == undefined){
			if(document.frm.id.checked){
				gid = document.frm.id.value;
			}
		}else{
			for(var i=0;i<document.frm.id.length;i++){
				if(document.frm.id[i].checked){
					gid = gid + document.frm.id[i].value + ',';
				}
			}
		}
		if(gid == ''){
			alert('Ã¤¿ëÁ¤º¸¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}
		else{
			openwin('/Popup/AlbaScrap.asp?id='+gid, 'jobsave', 1, '500', '500', '100', '100');
		}
	}
	
	// ¾Ë¹ÙÁ¤º¸ ºñ±³ÇÏ±â ÇÔ¼ö
	function goCompare(){
		var gid = '';
		var count = 0;
		if(document.frm.id.length == undefined){
			if(document.frm.id.checked){
				gid = document.frm.id.value;
				count = 1;
			}
		}else{
			for(var i=0;i<document.frm.id.length;i++){
				if(document.frm.id[i].checked){
					gid = gid + document.frm.id[i].value + ',';
					count++;
				}
			}
		}
		if(count == 0){
			alert('Ã¤¿ëÁ¤º¸¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}else if(count > 3) {
			alert('ºñ±³ÇÏ±â´Â ÃÖ´ë 3°³ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.');
		}else{
			document.frm.action = "Compare.asp";
			document.frm.submit();
		}
	}
	
	// ¾Ë¹ÙÁ¤º¸ ÀÓ½Ãº¸°üÇÏ±â ÇÔ¼ö
	function goProvisional(pID){
		var gid = '';
		if(document.frm.id.length == undefined){
			if(document.frm.id.checked){
				gid = document.frm.id.value;
			}
		}else{
			for(var i=0;i<document.frm.id.length;i++){
				if(document.frm.id[i].checked){
					gid = gid + document.frm.id[i].value + ',';
				}
			}
		}
		if(gid == ''){
			alert('Ã¤¿ëÁ¤º¸¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}
		else{
			document.frm.action = "Provisional.asp";
			document.frm.submit();
		}
	}
	
	function goRCompare(){
		var rid = '';
		var count = 0;
		if(document.frm.rid.length == undefined){
			if(document.frm.rid.checked){
				rid = document.frm.rid.value;
				count = 1;
			}
		}else{
			for(var i=0;i<document.frm.rid.length;i++){
				if(document.frm.rid[i].checked){
					rid = rid + document.frm.rid[i].value + ',';
					count++;
				}
			}
		}
		if(count == 0){
			alert('ÀÌ·Â¼­¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}else if(count > 3) {
			alert('ºñ±³ÇÏ±â´Â ÃÖ´ë 3°³ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù.');
		}else{
			document.frm.action = "Compare.asp";
			document.frm.submit();
		}
	}
	
	function goRImSave(){
		var rid = '';
		if(document.frm.rid.length == undefined){
			if(document.frm.rid.checked){
				rid = document.frm.rid.value;
			}
		}else{
			for(var i=0;i<document.frm.rid.length;i++){
				if(document.frm.rid[i].checked){
					rid = rid + document.frm.rid[i].value + ',';
				}
			}
		}
		if(rid == ''){
			alert('ÀÌ·Â¼­¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}
		else{
			document.frm.action = "imsave.asp";
			document.frm.submit();
		}
	}
	
	function goRSave(){
		var rid = '';
		if(document.frm.rid.length == undefined){
			if(document.frm.rid.checked){
				rid = document.frm.rid.value;
			}
		}else{
			for(var i=0;i<document.frm.rid.length;i++){
				if(document.frm.rid[i].checked){
					rid = rid + document.frm.rid[i].value + ',';
				}
			}
		}
		if(rid == ''){
			alert('ÀÌ·Â¼­¸¦ ÇÏ³ª ÀÌ»ó ¼±ÅÃÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù');
		}
		else{
			openwin('/Popup/Resumesave.asp?rid='+rid, 'resumesave', 1, '500', '500', '100', '100');
		}
	}
	
	function onCompare(pFrm, pCookie)
	{
		var frm = document.frmjoblist;
		var len = frm.chknum.length;
		var strnum = "";
		if (len != null )
		{
			if (len == 1 )
			{
				if (frm.chknum.checked)	{ strnum = strnum + "," + frm.chknum.value; }
			}
			else
			{
				for (i=0; i<len; i++)
				{
					if (frm.chknum[i].checked)	{strnum = strnum + "," +  frm.chknum[i].value;}
				}
			}
		}
		openwin("http://print.scout.co.kr/hotalba/jobs/jobs_compare.asp?num="+strnum+"&cookie="+pCookie, "jobsCompare","yes","680","500","100","100");
	}
	
	function goWhereSave(pQS, pGubun){
		openwin('/popup/gowheresave.asp?'+pQS+'&g='+pGubun, 'wheresave', 'yes', '500', '400', '100', '100');
	}
	
	function onBGActive(pNum, pFlag)
	{	
		var tdid = eval("tdid"+pNum);	
		var tdidT = eval("tdidT"+pNum);	
		var tdidC = eval("tdidC"+pNum);
		var len = tdid.length;
		var lenT = tdidT.length;
		var lenC = tdidC.length;
		var strBgcolor, strBgcolorT, strBgcolorC;

		if (pFlag == "1")		{
			strBgcolor='#EEF8FF';
			strBgcolorT='#D4ECFD';
			strBgcolorC='#0000ff';
		}	else	{
			strBgcolor='#F9F9F9';
			strBgcolorT='#EEEEEE';
			strBgcolorC='#F9F9F9';
		}
				
		for (i=0;i<len;i++)	{	tdid[i].style.backgroundColor = strBgcolor;	}
		for (i=0;i<lenT;i++)	{	tdidT[i].style.backgroundColor = strBgcolorT;	}
		for (i=0;i<lenC;i++)	{	tdidC[i].style.Color = strBgcolorC;	}
	}
	
	function openmap(addr,name){
		window.open('http://map.scout.co.kr/?addr='+addr+'&cname='+name,'map','width=750,height=600,scrollbars=1,top=10,left=10');
	}
	
	function openwin_directly(pUrl,pName,pScroll,pWidth,pHeight,pLeft,pTop){
		newwin = window.open(pUrl,pName,"width="+pWidth+", height="+pHeight+", left="+pLeft+", top="+pTop+", scrollbars="+pScroll+", toolbars=no, status=no");
		newwin.focus();
	}
	
	function openService(pService_Code){
		window.open("/popup/service_preview.asp?service_code="+pService_Code, "service_preview", "width=410, height=550, scrollbars=0");
	}

var move=1
var click=true

function TextMove() {
    if (click) {
	    move*=-1
	    document.all.txtMove.style.posLeft+=move
	    var timer=setTimeout("TextMove()",120)
    }
    else {
        clearTimeout(timer)
    }
}


/*************************************/
/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.5.13)**/
/** ³»¿ë    : Å¸ÄÏ¿¡ µû¸¥ ¾×¼Ç   **/
/*************************************/
	function Script_TargetUrl(pURL, pTarget) {
	
		switch (pTarget.toLowerCase()) {
			case "_top" :
				top.location.href = pURL;
				break;
			case "_self" :
				self.location.href = pURL;
				break;
			case "_blank" :
				window.open(pURL);
				break;
			case "_new" :
				window.open(pURL);
				break;
			default :
				window.location.href = pURL;
				break;
		}
	}
	
	function setAllCheck(pForm, pItem)
	{
		var vIndex;
		var vIsAllCheck;
		eval("vIndex = " + pForm + "." + pItem + ".length;");
		eval("vIsAllCheck = " + pForm + ".isallcheck.value;");
		if (vIsAllCheck == 0)
		{
			for (i=0; i < vIndex; i++)
			{
				eval(pForm + "." + pItem + "[" + i + "].checked = true;");
			}
			eval(pForm + ".isallcheck.value = 1;");
		}
		else
		{
			for (i=0; i < vIndex; i++)
			{
				eval(pForm + "." + pItem + "[" + i + "].checked = false;");
			}
			eval(pForm + ".isallcheck.value = 0;");
		}
	}
/**************************************/
/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.08.26)		**/
/** ³ëÃâ¿¡ µû¸¥ Å¬¸¯¼ö Ã¼Å© 			**/

	function GetMoveURL(pSection, pSectionID, pContentID, pLink, pTarget)
	{
		if (pTarget == '0')
			{
				document.location.href = "/GetMove/HotalbaMove.asp?Section="+ pSection +"&SectionID="+ pSectionID +"&ContentID="+ pContentID +"&ReUrl=" + escape(pLink);
				
			}				
		else
			{
				window.open("/GetMove/HotalbaMove.asp?Section="+ pSection +"&SectionID="+ pSectionID +"&ContentID="+ pContentID +"&ReUrl=" + escape(pLink))
				}
	}
/*************************************/		




/**************************************/
/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.09.30)		**/
/** ÆûÀÛ¼º½Ã ±ÛÀÚ¼ö Á¦ÇÑÇÏ±â			**/
	function getLength(pStr,pCnt,pMsg,pFrmName, pFrm)
	{
		
		var p;
	  	p = (pStr.length+(escape(pStr)+"%u").match(/%u/g).length-1);	  
		
		if ( p > pCnt)
		{
			
			alert (pMsg+" "+pCnt+ "À¸·Î ¹®ÀÚ¿­ÀÌ Á¦ÇÑµÇ¾î ÀÖ½À´Ï´Ù.");
	            	var tmpValue = eval("document."+ pFrm +"."+pFrmName+".value");
			getStr_Cut(tmpValue,pCnt,pFrmName, pFrm);
			return false;
		}
		
	  
	}

	function getStr_Cut(pQquery,pCnt,pFrmName, pFrm)
	{
	       var tmpStr;
	       var temp=0;
	       var onechar;
	       var tcount;
	       tcount = 0;
	       
	       var endStr;
	       endStr="";
	       
	       tmpStr = new String(pQquery);
	       temp = tmpStr.length;
	
	       for(k=0;k<temp;k++)
	       {
	            onechar = tmpStr.charAt(k);
	
	            if(escape(onechar).length > 4) {
	                 tcount += 2;
	            }
	            else if(onechar!='\r') {
	                 tcount++;
	            }
	            
	            if(tcount>pCnt) {
	//            	alert(tcount);
	//            	alert(endStr);
	                var tmpV = eval("document."+pFrm+"."+pFrmName+"");
	                tmpV.value = endStr;
	                 break;
	            }
	            endStr = endStr + onechar;
	       }
	      
	}
	
	
	/**************************************/
	/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.09.30)		**/
	/** ÆûÀÛ¼º½Ã ±ÛÀÚ¼ö Á¦ÇÑÇÏ±â			**/	
	function CommonConfirm(pTarGetURL, pAlertTxt)
	{
		if(confirm(pAlertTxt))
		{
			document.location.href=pTarGetURL;
			}
		else
		{
			}
	}
	
	
	/**************************************/
	/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.11.08)		**/
	/** ÀÌ¹ÌÁö Å¾¸Þ´º »ç¿ë ON, OFF					**/	
	
	function onImgOver(pSiteURL, pImg)
	{
		document.getElementById(pImg).src = ""+ pSiteURL +"/"+pImg+"_o.gif";
	}
	function onImgOut(pSiteURL, pImg, pChk)
	{
			if (pChk == 0)
			{
				document.getElementById(pImg).src = ""+ pSiteURL +"/"+pImg+".gif";
			}
			else
			{
				document.getElementById(pImg).src = ""+ pSiteURL +"/"+pImg+"_o.gif";
				}
			
	}
	

	/**************************************/
	/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.11.08)		**/
	/** °øÅë ÀÌ¹ÌÁö ON, OFF				**/	
	
	function CommonImgOver(pSiteURL, pImg)
	{
		document.getElementById(pImg).src = ""+ pSiteURL +"/"+pImg+"_o.gif";
	}
	function CommonImgOut(pSiteURL, pImg)
	{
		document.getElementById(pImg).src = ""+ pSiteURL +"/"+pImg+".gif";
	}
	
		
	function alba_editphoto()
	{
		openwin("/Popup/HotAlba_upphoto.asp","photo","no","492", "299","100","100");
	}
	

	/**************************************/
	/** ÀÛ¼ºÀÚ : ±è¼®¿ø (2005.11.08)		**/
	/** Div ON, OFF					**/	
	
	function OnImgOverDiv(pDivID, pImg, pNum, pImgURL) 
	{
	    for(var i = 1; i < pNum; i++) {
	    	
	        Obj = eval("document.getElementById('"+ pDivID +""+ i +"')");
	        Img = eval("document.getElementById('"+ pImg +""+ i +"')");
	        
	        if ( pNum == i ) {
	            Obj.style.display = "block";
	            Img.src = pImgURL + "/images/main/"+ pImg +"_o.gif";
	        } else {
	            Obj.style.display = "none";
	            Img.src = pImgURL + "/images/main/"+ pImg +".gif";
	        }
	    }
	}
	
	function setCookie( name, value, expiredays )
	{
		var todayDate = new Date();
		todayDate.setDate( todayDate.getDate() + expiredays );
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
	}
	function getCookie( name )
	{
		var nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length )
		{
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
			endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
		}
		return "";
	}	
	
	
	/* ¾È³»Ä«ÇÇ ¶ó¿îµå ½ºÅ¸ÀÏÃ³¸®*/	
	function top_round() {
	var top_html;
	top_html="<table cellpadding=0 cellspacing=0 border=0 width=100%>";
	top_html+="<tr height=1><td rowspan=4 width=1></td><td rowspan=3 width=1></td>";
	top_html+="<td rowspan=2 width=1></td><td width=2></td><td class=RT_td></td>";
	top_html+="<td width=2></td><td rowspan=2 width=1></td><td rowspan=3 width=1></td>";
	top_html+="<td rowspan=4 width=1></td></tr><tr height=1><td class=RT_td></td>";
	top_html+="<td class=RT_td></td><td class=RT_td></td></tr>";
	top_html+="<tr height=1><td class=RT_td></td><td colspan=3 class=RT_td></td>";
	top_html+="<td class=RT_td></td></tr><tr height=2><td class=RT_td></td>";
	top_html+="<td colspan=5 class=RT_td></td><td class=RT_td></td></tr></table>";
	document.write(top_html);
	}
	
	function bottom_round() {
	var bottom_html;
	bottom_html="<table cellpadding=0 cellspacing=0 border=0 width=100%>";
	bottom_html+="<tr height=2><td rowspan=4 width=1></td><td width=1 class=RT_td></td><td width=1 class=RT_td></td>";
	bottom_html+="<td width=2 class=RT_td></td><td class=RT_td></td><td width=2 class=RT_td></td>";
	bottom_html+="<td width=1 class=RT_td></td><td width=1 class=RT_td></td><td rowspan=4 width=1></td></tr>";
	bottom_html+="<tr height=1><td rowspan=3></td><td class=RT_td></td><td colspan=3 class=RT_td></td>";
	bottom_html+="<td class=RT_td></td><td rowspan=3></td>  </tr><tr height=1><td rowspan=2></td>";
	bottom_html+="<td class=RT_td></td><td class=RT_td></td><td class=RT_td></td><td rowspan=2></td></tr>";
	bottom_html+="<tr height=1><td></td><td class=RT_td></td><td></td></tr></table>";
	document.write(bottom_html);
	}		
	
	
	function onkeyup_number(parg,pnextname,plen) 
	{  
		if (parg.value.length==plen) {		
			pnextname.focus();
			return;
		}
	}	
	function OnKeyUp_OnlyNum(pName, pVlaue)
	{
		sGetNumStr = "1234567890";
		var NumLen = pVlaue.length;
		
		for(i=0; i<NumLen; i++)
		{
			if (sGetNumStr.indexOf(pVlaue.charAt(i))==-1)
			{
				alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!!");
				return false;
			}
		}
						
	}	
	/*±â¾÷¿ÞÂÊ¸Þ´º ½ºÅ¸ÀÏ ¼³Á¤ÇÏ±â*/
	function ComInfo_StyleColor(pID)
	{
		
		for (var i=0; i < 5; i++)
		{
			
			if (i == pID)
			{
				eval("document.all.R_"+i).className = "D_UnTr01";
				eval("document.all.R_"+ i +"_S").className = "D_UnTr02";
			}
			else
			{
				eval("document.all.R_"+ i).className = "D_Tr01";
				eval("document.all.R_"+ i +"_S").className = "D_Tr02";
			}
		}
	}	
	/*  ÇÃ·¡½¬ È£Ãâ */
	function viewFlash(src, width, height)
	{
		document.write ("<embed src='" + src + "' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>");
	}
	
	/*************************************/
	/** ÀÛ¼ºÀÚ : Á¶¿µ±æ , ¼ÛÇØ¼± (2006.3.30)**/
	/** ³»¿ë    : Ã­Æ®Ãâ·Â  **/
	/*************************************/
	function setEmbed() {
	
	  var obj = new String;
	  var parameter = new String;
	  var embed = new String;
	  var html = new String;
	  var allParameter = new String;
	  var clsid = new String;
	  var codebase = new String;
	  var pluginspace = new String;
	  var embedType = new String;
	  var src = new String;
	  var width = new String;
	  var height = new String;
	
	  this.init = function(getType, s, w, h) {
	
	      if( getType == "flash") {
	        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	        codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
	        pluginspage = "http://www.macromedia.com/go/getflashplayer";
	        embedType = "application/x-shockwave-flash";
	      }
	      parameter += "<param name=\"movie\" value=\""+ s + "\">\n";
	      parameter += "<param name=\"quality\" value=\"high\">\n";
	
	      src = s;
	      width = w;
	      height = h;
	  }
	
	  this.parameter = function(parm, value) {
	      parameter += "<param name=\"" + parm + "\" value=\"" + value + "\">\n";
	      allParameter += " " + parm + "=\"" + value + "\"";
	  }
	  
	  this.show = function() {
	      if( clsid ) {
	        obj = "<object classid=\"clsid:" + clsid + "\" codebase=\"" + codebase + "\" width=\"" + width + "\" height=\"" + height + "\">\n";
	      }
	      embed = "<embed src=\"" + src + "\" pluginspage=\"" + pluginspage + "\" type=\"" + embedType + "\" width=\"" + width + "\" height=\"" + height + "\"" + allParameter + "></embed>\n";
	
	      if ( obj ) {
	        embed += "</object>\n";
	      }
	
	      html = obj + parameter + embed;
	      document.write( html );
	  }
	}	
	
/*************************************/
/** ÀÛ¼ºÀÚ : Á¶¿µ±æ , ¼ÛÇØ¼± (2006.3.30)**/
/** ³»¿ë    : Ã­Æ®Ãâ·Â  **/
/*************************************/
function setEmbed() {

  var obj = new String;
  var parameter = new String;
  var embed = new String;
  var html = new String;
  var allParameter = new String;
  var clsid = new String;
  var codebase = new String;
  var pluginspace = new String;
  var embedType = new String;
  var src = new String;
  var width = new String;
  var height = new String;

  this.init = function(getType, s, w, h) {

      if( getType == "flash") {
        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
        codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
        pluginspage = "http://www.macromedia.com/go/getflashplayer";
        embedType = "application/x-shockwave-flash";
      }
      parameter += "<param name=\"movie\" value=\""+ s + "\">\n";
      parameter += "<param name=\"quality\" value=\"high\">\n";

      src = s;
      width = w;
      height = h;
  }

  this.parameter = function(parm, value) {
      parameter += "<param name=\"" + parm + "\" value=\"" + value + "\">\n";
      allParameter += " " + parm + "=\"" + value + "\"";
  }
  
  this.show = function() {
      if( clsid ) {
        obj = "<object classid=\"clsid:" + clsid + "\" codebase=\"" + codebase + "\" width=\"" + width + "\" height=\"" + height + "\">\n";
      }
      embed = "<embed src=\"" + src + "\" pluginspage=\"" + pluginspage + "\" type=\"" + embedType + "\" width=\"" + width + "\" height=\"" + height + "\"" + allParameter + "></embed>\n";

      if ( obj ) {
        embed += "</object>\n";
      }

      html = obj + parameter + embed;
      document.write( html );
  }
}