/*
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

¹®ÀÚ¿­ °ü·Ã ½ºÅ©¸³Æ®

*/

/*

_StringReplace (	string				= ÀüÃ¼ ¹®ÀÚ¿­,
							startpos			= ½ÃÀÛ À§Ä¡,
							length			= ±æÀÌ,
							targetString		= Ä¡È¯ ¹®ÀÚ¿­
					)

½ÃÀÛÀ§Ä¡¿¡¼­ ±æÀÌ¸¸Å­ÀÇ ¹®ÀÚ¿­À» ¯†³ª ¹®ÀÚ¿­·Î Ä¡È¯ÇÑ´Ù. ´Ü, ÇÑ¹ø¸¸ ¹®ÀÚ¿­À» ¹Ù²Û´Ù.   null °Ë»ç¸¦ ÇÏÁö ¾Ê´Â´Ù.
*/
function _StringReplace ( string, startpos, length, targetString )
{
		return ( string.substring ( 0, startpos ) + targetString+ string.substring ( (startpos+length), string.length ) );
}

/*

StringReplace (	string				= ÀüÃ¼ ¹®ÀÚ¿­,
						sourceString	=  ¹Ù²Ü ¹®ÀÚ¿­,
						targetString		= Ä¡È¯ ¹®ÀÚ¿­
						copyN			= ¹Ù²Ü °¹¼ö			µðÆúÆ®´Â 1
					)

copyN Àº ¹Ù²Þ Çàµ¿À» ¸î¹øÇÏ´Â °¡¸¦ ¸»ÇÏ¸ç,   °ªÀÌ 0 ÀÌ³ª 0º¸´Ù ÀÛÀ»¶§ ÀüºÎ ´Ù ¹Ù²Ù¾î ¹ö¸°´Ù.

*/
function StringReplace ( string, sourceString, targetString, copyN )
{
	if ( string == null || sourceString == null || targetString == null ) return null;
	if ( copyN == null ) copyN = 0;

	var count=0; // º¹»ç °¹¼ö
	var souLen	 = sourceString.length; // ¹Ù²Ü ¹®ÀÚ¿­ÀÇ ±æÀÌ
	var pos = 0;	// À§Ä¡ Á¤º¸
	while ( ( pos = string.indexOf ( sourceString ) ) != -1 )
	{
		string = _StringReplace( string, pos, souLen, targetString );
		count++;
		if ( copyN > 0 && count == copyN ) break;
	}

	return  string;
}


/*

¹®ÀÚ¿­ÀÌ null ÀÌ°Å³ª °ø¹éÀÎÁö¸¦ °Ë»çÇÑ´Ù.

*/
function CheckSpace ( string )
{
	if ( string == null ) return true;

	var length = string.length;
	var count =0;

	for (  var i=0; i<length; i++ )
		if ( string.substr ( i, 1 ) == ' ' ) count++;

	if ( length == count ) return true;
	return false;
}


/*
ÆÄÀÏ ÆÐ½º ¿¡¼­ ÆÄÀÏ¸í¸¸ »Ì¾Æ ³½´Ù.
*/
function GetFilename ( path )
{
	if ( path == null || CheckSpace ( path ) == true ) return null;

	if ( path.indexOf ( '\\' ) )
		path = StringReplace ( path, '\\','/' );

	var pathArray = path.split ('/' );

	return pathArray[ pathArray.length - 1 ];
}

/*
¹®ÀÚ¿­¿¡ È®Àå ¹®ÀÚ°¡ ÀÖ´Â Áö °Ë»çÇÑ´Ù.
*/
function ExistSpecialChar ( string, SpecialChar )
{
	if ( string == null ) return false;
	if ( SpecialChar == null ) SpecialChar = 127;

	for (  var i=0; i<string.length; i++ )
	{
		if ( string.substr ( i, 1 ) >= String.fromCharCode ( SpecialChar )  )  return true;
	}

	return false;
}

function ExistHangul ( string )
{
	return ExistSpecialChar ( string, 127 );
}

function ExitNumber ( string )
{
	if ( string == null ) return 0;

	var _char, exist=0;

	for ( var i=0; i<string.length; i++ )
	{
		_char = string.substr ( i, 1 );

		if ( _char >= '0' && _char <= '9' ) exist++;
	}

	return exist;
}

function CheckChar ( string, tokenchar )
{
	if ( string == null ) return false;

	var _char;

	for ( var i=0; i<string.length; i++ )
	{
		_char = string.substr ( i, 1 );

		if ( _char < '0' || _char > '9' )
		{
			if ( tokenchar )
			{
				if ( tokenchar != _char ) return true;
			}
			else
			return true;
		}
	}

	return false;
}

function ExistChar ( string, seekchar )
{
	if ( string == null || seekchar == null ) return 0;

	var _char, count=0;

	for ( var i=0; i<string.length; i++ )
	{
		_char = string.substr ( i, 1 );

		if ( _char == seekchar ) count++;
	}

	return count;
}

function DeleteChar ( string, tokenchar )
{
	if ( string == null ) return null;

	var _char, newString = '';

	for ( var i=0; i<string.length; i++ )
	{
		_char = string.substr ( i, 1 );

		if ( _char < '0' || _char > '9' )
		{
			if ( tokenchar )
			{
				if ( tokenchar != _char ) continue;
			}
			else continue;
		}

		newString += _char;
	}

	return newString;
}


function __checkemail ( string )
{
	var ch;

	for ( var i=0; i< string.length; i++ )
	{
		ch = string.substr ( i, 1 ).toLowerCase();

		if ( !
				(
					( ch >= '0' && ch <= '9' )  ||
					( ch >= 'a' && ch <= 'z' ) ||
					ch == '-'
				)
			)
			return false;
	}

	return true;
}

function CheckEmail ( email )
{
	if  ( CheckSpace ( email )  ) return false;

	if ( email.indexOf ( '@' ) == -1 ) return false;

	var estring = email.split ( '@' );

	var j=0;
	var tmp;

	for ( var i=0; i < estring.length; i++ )
	{
		if ( CheckSpace ( estring[i] ) ) return false;

		if ( estring[i].indexOf ( '.' )  != -1 )
		{
			tmp = estring[i].split ( '.' );

			for ( j=0; j<tmp.length; j++ )
			{
				if ( ! __checkemail ( tmp[j] )  ) return false;
			}
		}
		else
		{
			if ( i == 1 ) return false;

			if ( ! __checkemail ( estring[i] ) ) return false;
		}
	}

	return true;
}


/*
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

 Ã¢ °ü·Ã ½ºÅ©¸³Æ®

*/



function OpenWindow(html,frameName,width,height,option)
{

	if ( option == null )
	{
		if(!width)  width=250;
		if(!height)  height=100;
		option = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height;
	}
	else
	{
		if ( width ) option += ',width='+width;
		if ( height ) option += ',height='+height;
	}

	return window.open(html,frameName,option );
}

var winObj = null;

function OpenWin ( html, frameName,width,height,option)
{
    var exist = 1;

	if ( winObj )
	{
		if ( winObj.closed )
			exist = 0;
	}
	else exist = 0;

    if ( exist )
		winObj.close();

	winObj = OpenWindow ( html, frameName, width, height, option );
}

function OpenWinAuto ( html, frameName,width,height,option)
{
    var exist = 1;

    if ( !winObj ) exist = 0;
    else
    if ( winObj.closed ) exist = 0;

    if ( exist )
    {
        if ( winObj.width != width || winObj.height != height ) winObj.resizeTo ( height, width );
        winObj.focus();
	if ( html )
		winObj.location.href=html;
    }
    else
        winObj = OpenWindow ( html, frameName, width, height, option );
}

function HideWindow(html,frameName)
{
	return window.open(html,frameName,'left=500000,top=500000,width=300,height=500');
}





/*
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

 ³¯Â¥ °ü·Ã ½ºÅ©¸³Æ®

*/

function GetMaxDay ( year, month )
{
	var buf = new Date ( year, month -1 );

	while ( buf.getMonth() +1 == month )
	{
		buf.setDate ( buf.getDate() + 1 );
	}

	buf.setDate ( buf.getDate() - 1 );
	return buf.getDate ();
}



function CheckDate ( year, month, day )
{
	year = parseInt(year);
	month = parseInt(month);
	day = parseInt(day);

	// ¼ýÀÚ°¡ ¾Æ´ÑÁö¸¦ °Ë»ç...
	if ( isNaN(year) || isNaN(month) || isNaN(day) ) return false;
	if ( year <= 0 || month <= 0 || day <= 0 ) return false;

	if ( GetMaxDay( year, month ) >= day ) return true;
	return false;
}

function CmpDate ( syear, smonth, sday, tyear, tmonth, tday )
{
	if ( !CheckDate ( syear, smonth, sday ) || !CheckDate ( tyear, tmonth, tday ) ) return -2;

	var source = new Date ( syear, smonth -1, sday );
	var target = new Date ( tyear, tmonth -1, tday );

	if ( source > target ) return -1;
	else
	if ( source < target ) return 1;

	return 0;
}


/*

	±âÅ¸ ÇÔ¼ö

*/


/* BODY ÅÂ±×ÀÇ onLoad ¸Þ¼­µå¿¡ ³»¿ëÀ» Ãß°¡ÇÏ´Â ÇÔ¼ö..
*/

function AppendBODYONLOAD(str)
{
	var buf = document.body.onload.toString();

	var si = buf.indexOf('{');
	var ei = buf.indexOf('}');

	var func = buf.substring ( si+1, ei ) + str;

	var funcs = func.split(',');

	if ( funcs.length )
	{
		for ( var i=0; i<funcs.length; i++ )
		{
			func = funcs[i];
			document.body.onload = eval(func);
		}
	}
	else
		document.body.onload = eval(funcs);
}

// et ´Â ÀÌº¥Æ® ¾²·¹µåÀÔ´Ï´Ù..
function appendEvent ( et, command )
{
	if ( et )
	{
		var etbuf = et.toString();

		var tmp = etbuf.split ( "{" );
		var buf = tmp[1].split ( "}" );

		return buf[0]+command;
	}

	return command;
}

/*
¾ð¾îÆÑ ÅÂ±× Á¦°Å ÇÔ¼ö...
*/

var __LanguagePack_StartTag = '<!--*!-->';
var __LanguagePack_EndTag = '<!---*/-->';

__LanguagePack_StartTag = StringReplace ( __LanguagePack_StartTag, "*", "" );
__LanguagePack_EndTag = StringReplace ( __LanguagePack_EndTag, "*", "" );

function DeletePack ( string )
{
	var str = StringReplace ( string, __LanguagePack_StartTag, '' );
	str = StringReplace ( str, __LanguagePack_EndTag, '' );

	return str;
}

function openNewWindow(filePath,winName,winWidth,winHeight) {
	window.open(filePath,winName,"toolbar=no,status=no,scrollbars=yes,width="+ winWidth +",height="+ winHeight +",resizable=no");
}

function zipCodeWindow( zipcode1, zipcode2, address ) {
	window.zipcode1 = zipcode1;
	window.zipcode2 = zipcode2;
	window.address = address;
	myWin=window.open( rootUrl + "/modules/zipcode_check.jsp", "zipCodeWindow", "menubar=no,status=no,toolbar=no,resizable=yes,width=440,height=280,titlebar=no,scrollbars=yes,alwaysRaised=yes");
}

// ÇØ´ç¸Þ´º¿¡¼­ °ü¸®ÀÚ(¼Ó¼º,±ÇÇÑ°ü¸®)Ã¢ ¶ç¿ò
function adminWindow( url ) {
	window.open(url, "MenuAdminWin", "width=410,height=550,scrollbars=yes,status=no,resizable=no,top=50,left=150");
}

function showswf( id, swf, w, h ) {
document.write( '<Object id="' + id + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + w + '" height="' + h + '">' );
document.write( '	<param name=movie value="' + swf + '">' );
document.write( '	<param name=quality value=\"high\">' );
document.write( '	<param name=wmode value=\"transparent\">' );
document.write( '	<embed name="' + id + '" src="' + swf +'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"></embed> ' );
document.write( '</object>' );
}

function showMovie( id, f, w, h ) {
document.write( '<object id="' + id + '" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="' + w + '" height="' + h + '">' );
document.write( '    <param name="URL" value="' + f + '" />' );
//document.write( '	<object id="' + id + '" type="video/x-ms-asf-plugin" data="' + f + '" width="'+ w +'" height="'+ h +'"></object>' );
document.write( '</object>' );
}

function writeString( str ) {
	document.write( str );
}

String.prototype.trim = function() {
	return this.LTrim().RTrim();
}

// Removes leading whitespaces
String.prototype.LTrim = function() {
	var newStr = this;
	var re = /\s*((\S+\s*)*)/;
	return newStr.replace(re, "$1");
}

// Removes ending whitespaces
String.prototype.RTrim = function() {
	var newStr = this;
	var re = /((\s*\S+)*)\s*/;
	return newStr.replace(re, "$1");

}


function checkSize( name, size ) {
	tempString = new String( name.value );
    tempLength = tempString.length;

	if ( tempLength > size ) {
		alert("³»¿ëÀ» "+size+"ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		return false;
	}

	return true;
}

function getFlashMovieObject(movieName)
{
	if (window.document[movieName])
	{
			return window.document[movieName];
	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1)
	{
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName];
	}
	return document.getElementById(movieName);
}

function goMenu( url ) {
	document.location.href = url;
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function resizeIfr(obj, minHeight) {
	minHeight = minHeight || 10;

	try {
		var getHeightByElement = function(body) {
			var last = body.lastChild;
			try {
				while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
				return last.offsetTop+last.offsetHeight;
			} catch(e) {
				return 0;
			}
			
		}
				
		var doc = obj.contentDocument || obj.contentWindow.document;
		if (doc.location.href == 'about:blank') {
			obj.style.height = minHeight+'px';
			return;
		}
		
		//var h = Math.max(doc.body.scrollHeight,getHeightByElement(doc.body));
		//var h = doc.body.scrollHeight;
		if (/MSIE/.test(navigator.userAgent)) {
			var h = doc.body.scrollHeight;
		} else {
			var s = doc.body.appendChild(document.createElement('div'))
			s.style.clear = 'both';

			var h = s.offsetTop;
			s.parentNode.removeChild(s);
		}
		
		//if (/MSIE/.test(navigator.userAgent)) h += doc.body.offsetHeight - doc.body.clientHeight;
		if (h < minHeight) h = minHeight;
	
		obj.style.height = (h+0) + 'px';
		if (typeof resizeIfr.check == 'undefined') resizeIfr.check = 0;
		if (typeof obj._check == 'undefined') obj._check = 0;

//		if (obj._check < 5) {
//			obj._check++;
			setTimeout(function(){ resizeIfr(obj,minHeight) }, 200); // check 5 times for IE bug
//		} else {
			//obj._check = 0;
//		}	
	} catch (e) { 
		//alert(e);
	}	
}

function resizeIfr2(obj, minWidth, minHeight, maxWidth, maxHeight ) {
	minHeight = minHeight || 10;

	try {
		var getHeightByElement = function(body) {
			var last = body.lastChild;
			try {
				while (last && last.nodeType != 1 || !last.offsetTop) last = last.previousSibling;
				return last.offsetTop+last.offsetHeight;
			} catch(e) {
				return 0;
			}
		}
		
		var getWidthByElement = function(body) {
			var last = body.lastChild;
			try {
				while (last && last.nodeType != 1 || !last.offsetLeft) last = last.previousSibling;
				return last.offsetLeft+last.offsetWidth;
			} catch(e) {
				return 0;
			}
		}
				
		var doc = obj.contentDocument || obj.contentWindow.document;
		if (doc.location.href == 'about:blank') {
			obj.style.height = minHeight+'px';
			obj.style.width = minWidth + 'px';
			return;
		}
		
		if (/MSIE/.test(navigator.userAgent)) {
			var h = doc.body.scrollHeight;
			var w = doc.body.scrollWidth;
		} else {
			var s = doc.body.appendChild(document.createElement('DIV'))
			s.style.clear = 'both';

			var h = s.offsetTop;
			//var w = s.offsetWidth;
			var w = doc.body.scrollWidth;
			
			//var w = doc.body.scrollWidth + (doc.body.offsetWidth - doc.body.clientWidth);
			
			//alert( doc.body.scrollWidth + "-" + doc.body.offsetWidth + "-" + doc.body.clientWidth );
			
			//var w = s.offsetWidth;
			s.parentNode.removeChild(s);
		}
		
		//alert( w );
		
		if ( w < minWidth ) w = minWidth;
		if (h < minHeight) h = minHeight;
		
		if ( w > maxWidth ) w = maxWidth;
		if (h > maxHeight) h = maxHeight;
		
		
		obj.style.height = h + 'px';
		obj.style.width = w + 'px';
	} catch (e) { 
		//alert(e);
	}	
}

function imgWindow( fname ) {	
	var url = rootUrl+"/modules/imageViewer.jsp?i_fname=" + fname;
	window.open(url,"imgWindow","width=300,height=200,scrollbars=yes,status=no,resizable=yes,top=0,left=0");
}

function hrlink( img ){
	img.className = "target_resize";
/*
      if ( img.parentNode.nodeName.toUpperCase() != "A" ) {
        var anchor = document.createElement("a");
        anchor.setAttribute("href", img.getAttribute("src"));
        anchor.setAttribute("rel", "lightbox");
        anchor.appendChild(img.cloneNode(true));
        img.parentNode.replaceChild(anchor, img);
      }//if
      */
}

function hrlink2( img ){
	img.style.cssText += ";cursor:hand";
	img.onclick = function() {
		imgWindow( img.getAttribute("src") );
	}
	/*
	if ( img.parentNode.nodeName.toUpperCase() != "A" ) {
		var anchor = document.createElement("a");
		anchor.setAttribute("href", "javascript:imgWindow('" + img.getAttribute("src") + "')");
		anchor.appendChild(img.cloneNode(true));
		img.parentNode.replaceChild(anchor, img);
	}
	*/
}

function changeImgSize2( obj, w, h ){	
	if ( obj != undefined ) {
	    var imgs = obj.getElementsByTagName("img");
		if ( imgs != undefined ) {
			if ( imgs.length != undefined ) {
				for(i=0;i<imgs.length;i++){						
					if ( w > 0 ) {
						if ( imgs[i].width > w ) { imgs[i].width = w;hrlink(imgs[i]); }
					}
					if ( h > 0 ) {
						if ( imgs[i].height > h ) { imgs[i].height = h;hrlink(imgs[i]); }
					}
				}
			} else {
				if ( w > 0 ) {
					if ( imgs.width > w ) { imgs.width = w;hrlink(imgs[i]); }
				}
				if ( h > 0 ) {
					if ( imgs.height > h ) { imgs.height = h;hrlink(imgs[i]); }
				}
			}
		}
	}
}

function cafeChangeImgSize( obj, w, h ){	
	if ( obj != undefined ) {
	    var imgs = obj.getElementsByTagName("img");
		if ( imgs != undefined ) {
			if ( imgs.length != undefined ) {
				for(i=0;i<imgs.length;i++){						
					if ( w > 0 ) {
						if ( imgs[i].width > w ) { imgs[i].width = w;hrlink2(imgs[i]); }
					}
					if ( h > 0 ) {
						if ( imgs[i].height > h ) { imgs[i].height = h;hrlink2(imgs[i]); }
					}
				}
			} else {
				if ( w > 0 ) {
					if ( imgs.width > w ) { imgs.width = w;hrlink2(imgs[i]); }
				}
				if ( h > 0 ) {
					if ( imgs.height > h ) { imgs.height = h;hrlink2(imgs[i]); }
				}
			}
		}
	}
}

function changeImgSize( imgs, w, h ){	
	var obj = document.getElementById("s_menuHeader");
	changeImgSize2( obj, 610, h );
	
	obj = document.getElementById("s_menuContent");
	changeImgSize2( obj, w, h );	
	
	obj = document.getElementById("board-area");
	cafeChangeImgSize( obj, w, h );
}

var tickerEl = new Array();
function initTicker(tickerContainer, tickerContent, delay)
{
	var speed = 50;		// milisecond
	
	tickerEl[tickerEl.length] = tickerContainer;
	tickerContainer.moveOffset = tickerContainer.offsetHeight;
	tickerContainer.count = 0;
	tickerContainer.delay = delay / speed;

	tickerContainer.cont = tickerContent;
	tickerContainer.cont.currentHeight = 0;
	//tickerContainer.cont.innerHTML += tickerContainer.cont.innerHTML;

	tickerContainer.move = setInterval("tickerRoll()", speed);
}

function tickerRoll()
{	
	for (i=0; i<tickerEl.length; i++) {
		if (tickerEl[i].cont.currentHeight % tickerEl[i].moveOffset == 0 && tickerEl[i].count < tickerEl[i].delay) {
			tickerEl[i].count++;
		} else {
			tickerEl[i].count = 0;
			tickerEl[i].cont.currentHeight--;
			tickerEl[i].cont.style.top = tickerEl[i].cont.currentHeight + "px";
			//if (tickerEl[i].cont.currentHeight % (tickerEl[i].cont.offsetHeight / 2) == 0) {
			if (tickerEl[i].cont.currentHeight % (tickerEl[i].cont.offsetHeight) == 0) {
				tickerEl[i].cont.currentHeight = 0;
			}
		}
	}
}

function bOpen(url,wname,w_w,h_h) {
    myWin2=window.open(url,wname,'width=' + w_w + ',height=' + h_h + ',scrollbars=1,resizable=1');
}

function openMenu(url){	
	if (url != "")	{ 
		if ( url.indexOf( "http://" ) == -1 ) {
			location.href = url;
		} else {
			window.open(url, "_blank");
		}
	}
 }
 
// ÄíÅ°°ü·Ã
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 Found = false 
	var start, end 
	var i = 0
	 
	while(i <= document.cookie.length) { 
		start = i 
		end = start + name.length 
 
		if(document.cookie.substring(start, end) == name) { 
			Found = true 
			break 
		} 
		i++ 
	} 
 
	if(Found == true) { 
		start = end + 1 
		end = document.cookie.indexOf(";", start) 
		if(end < start) 
			end = document.cookie.length 
		return document.cookie.substring(start, end) 
	} 
	return "" 
}

function denyFileExt( obj ) {
	if ( obj != undefined ) {
		if ( obj.length > 1 ) {
			for ( i=0; i<obj.length; i++) {
				if(obj[i].value != "") {
					var strFile = obj[i].value;				
					var strExt  = strFile.substring( strFile.lastIndexOf( "." )+1 );					
					
					if ((strExt.toLowerCase() == "php") ||
						(strExt.toLowerCase() == "php3") || 
						(strExt.toLowerCase() == "asp") || 
						(strExt.toLowerCase() == "jsp") || 
						(strExt.toLowerCase() == "cgi") || 
						(strExt.toLowerCase() == "inc") || 
						(strExt.toLowerCase() == "pl")) {
							alert( "["+strExt+"] Çü½ÄÀº ¾÷·Îµå°¡ Çã¿ëµÇÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù");
							return false;
					}
				}
			}
		} else {		
			if(obj.value != "") {
				var strFile = obj.value;
				var strExt  = strFile.substring( strFile.lastIndexOf( "." )+1 );				
				
				if ((strExt.toLowerCase() == "php") ||
					(strExt.toLowerCase() == "php3") || 
					(strExt.toLowerCase() == "asp") || 
					(strExt.toLowerCase() == "jsp") || 
					(strExt.toLowerCase() == "cgi") || 
					(strExt.toLowerCase() == "inc") || 
					(strExt.toLowerCase() == "pl")) {
						alert( "["+strExt+"] Çü½ÄÀº ¾÷·Îµå°¡ Çã¿ëµÇÁö ¾Ê´Â ÆÄÀÏÇü½ÄÀÔ´Ï´Ù");
						return false;
				}
			}
		}
	}
	
	return true;
}

function commonWindow(u,name,option) {
	return window.open(u,name,option );
}

function blankWin(u) {
	return window.open(u,"_blank","" )
}

function setPng24(obj) {
    obj.width=obj.height=1;
    obj.style.filter =
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src=''; 
    return '';
}

function bannerWindow(html,frameName)
{
	return window.open(html,frameName,"toolbar=no,status=no,scrollbars=yes,width=540,height=400,resizable=no");
}

function openCalendar( name ) {
	window.dateField = name;
	calendar = window.open(rootUrl +'/common/calendar.jsp','cal','width=210,height=252');
}