var tagFlag = false ;
function setTagKey( flag )
{
	tagFlag = flag ;
}
function printTag( tag )
{
	if( tagFlag )
	{
		document.write( tag ) ;
	}	
}
//<script>ImgView("{$signdate:dateformat,Y/m/d}")</script>

function ImgView( getDate ){	
	nows = new Date() ;
	nowTime = parseInt(nows.getTime() / 1000);
	dates = new Date( getDate );
	dateTime = parseInt( ( dates.getTime() )/1000 + 60*60*24*10);

	if(dateTime > nowTime ){
			document.write('<img src="../head/image/bbs_new.gif" width="23" height="9">');
	}
}


function imgRollOver( obj , srcPath ){
	obj.src = srcPath ;
}

function displaySpan( obj ){
	obj.display = obj.display == '' ? 'none' : '' ;
}


function displayBoardSpan( objName , strGroupObjName ){

	objGroup = strGroupObjName.split("|") ;
		forNum = objGroup.length
		for(	i = 0 ; i < forNum ; i++ ){
			document.getElementById(objGroup[i]).style.display='none';
		}
		document.getElementById(objName).style.display='';
}



function objectMake( tags ){
	document.write( tags ) ;
}
function iconMake( category ){	
	str = "" ;
	switch( category ){
		case "ÃÊ±Þ" : str = '<img src="../image/main/center_icon01.gif" width="21" height="12">'; break ;
		case "Áß±Þ" : str = '<img src="../image/main/center_icon02.gif" width="21" height="12">'; break ;
		case "°í±Þ" : str = '<img src="../image/main/center_icon03.gif" width="21" height="12">'; break ;
		default : str = '['+category+']' ; break ;
	}
	document.write( str ) ;
}


function juminCheck( juminStr ) 
{
	  // ÁÖ¹Î¹øÈ£ÀÇ ÇüÅÂ¿Í 7¹øÂ° ÀÚ¸®(¼ºº°) À¯È¿¼º °Ë»ç
	  fmt = /^\d{6}-[1234]\d{6}$/;
	  if(!fmt.test(juminStr)){  return false;}

	  // ³¯Â¥ À¯È¿¼º °Ë»ç
	  birthYear  = (juminStr.charAt(7) <= "2") ? "19" : "20";
	  birthYear += juminStr.substr(0, 2);
	  birthMonth = juminStr.substr(2, 2) - 1;
	  birthDate  = juminStr.substr(4, 2);
	  birth      = new Date(birthYear, birthMonth, birthDate);


	  if(birth.getYear() % 100 != juminStr.substr(0, 2) || birth.getMonth() != birthMonth || birth.getDate() != birthDate) return false;

	  // Check Sum ÄÚµåÀÇ À¯È¿¼º °Ë»ç
	  buf = new Array(13);
	  for (i = 0; i < 6; i++) buf[i] = parseInt(juminStr.charAt(i));
	  for (i = 6; i < 13; i++) buf[i] = parseInt(juminStr.charAt(i + 1));

	  multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
	  for (i = 0, sum = 0; i < 12; i++) sum += (buf[i] *= multipliers[i]);

	  if((11 - (sum % 11)) % 10 != buf[12]) return false;

	  return true;
}

function swfTag( path, width, height , para )
{
		str = '	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  ' ;
		str += '		codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ' ;
		str += ' 			width="'+width+'" height="'+height+'"> ' ;
        str += ' 	      <param name="movie" value="'+path+'"> ' ;

		paraString = para == "" ? "quality=high" : para ;
		_para = paraString.split(',') ;
		paraLen = _para.length ;

		for( i = 0 ; i < paraLen ; i++ )
		{
			_paraElement = _para[i].split('=') ;

			str += '       <param name="'+_paraElement[0]+'" value="'+_paraElement[1]+'">	 ' ;
		}        
         str +='     <embed src="'+path+'" pluginspage="http://www.macromedia.com/go/getflashplayer"  ' ;
		 str +='  type="application/x-shockwave-flash" width="481" height="564"></embed></object> ' ;

		 document.write( str ) ;

}

/*
//¸µÅ© ÁÖº¯ Á¡¼± ¾ø¾Ö±â
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("blur()");
	} 
}

allblur();
*/