function showflash(str, width, height) {

	document.write("<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='"+width+"' height='"+height+"'>")
	document.write("<param name='movie' value='"+str+"'>")
	document.write("<param name='wmode' value='transparent'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <embed src='"+str+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>")

}

function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


  function chgTabMenu(no)
{
	for(var i = 1; i <= 3; i++){
		if(i == no){
			document.all["tabmenu" + i].style.display = "block";
		}
		else{
			document.all["tabmenu" + i].style.display = "none";
		}
	}
}

function trim(txt)
{
    return txt.replace(/(^\s*)|(\s*$)/g, '');
}

function showhide(num,total)
{
    if( total > 10 )
    {
        block_total = 10;
    } else {
        block_total = total;
    }

    for( i=1 ; i<=block_total ; i++ )
    {
        menu = eval('document.all.block'+i+'.style');

        if( i == num )
        {
            if( menu.display == 'block' )
            {
                menu.display = 'none' ;
            } else {
                menu.display = 'block' ;
            }
        } else {
            menu.display = 'none' ;
        }
    }
}

function isValidEmail(str) 
{
    var re = new RegExp("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$","gi");
    var matchArray=str.match(re);
    if (matchArray) return true;
    else return false;
}

function isValidPhone(str)
{
    if( str.search(/^(\d+)-(\d+)-(\d+)$/g)!=-1 ) return true;
    else return false;
}

function isKorean(str)
{
    var strLength = str.length;
    var i;
    var Unicode;

    for( i=0 ; i<strLength ; i++ )
    {
        Unicode = str.charCodeAt(i);
        if( !(44032 <= Unicode && Unicode <= 55203) ) return false;
    }
    return true;
}