//·£´ý ÀÌ¹ÌÁö ½ºÅ©¸³Æ®
Ad_List=new Array
(
    new Array("images/title01.gif"),
    new Array("images/title02.gif"),
    new Array("images/title03.gif"),
    new Array("images/title04.gif"),
    new Array("images/title05.gif")
);

ImagesDirectory="./";

function MMB()
{
         this.ad_list=Ad_List;
         this.imgdir=ImagesDirectory;
}

function writeMMB(title)
{
	myBanner=new MMB();
	i=Math.round(Math.random()*(Ad_List.length-1));
	if (title!=null)
	{
	}
	document.write('<img src='+myBanner.imgdir+myBanner.ad_list[i][0]+' width=468 height=90>');


	if (myBanner.ad_list[i][5]!=null)
	{
	document.write(myBanner.ad_list[i][5]);
	}
}

//Á¡ÇÁ¸Þ´º ½ºÅ©¸³Æ®
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//È¸¿ø°¡ÀÔ½ºÅ©¸³Æ®
function ok()
{
        if(document.loginform.sid.value == "") 
        {
                alert("ID¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.!!!")
                document.loginform.sid.focus();
         }
       else if(document.loginform.spasswd.value == "") 
        {
                alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À.!!!")
                document.loginform.spasswd.focus();
         }
       else
        {
                
                document.loginform.submit()
                          
        }

}

//ÁÖ¹®¼­½ºÅ©¸³Æ®
var IsBlur = false;

function openwin(dest, change) {
   StartWin = window.open(dest, 'StartWindow', 'scrollbars=yes,toolbar=no,location=no,directories=no,width=500,height=200,resizable=no,mebar=no,left=250,top=65');
    if (change == 1) {
       if (StartWin) {
          IsBlur = true;
       }
    }
}

function SwitchBlur(name) {
   if (IsBlur) {
       name.blur();
   }
}

function windowOpen(goPageURL,goPageName,goPageWidth,goPageHeight)
{
  window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+', menubar=no, scrollbars=yes, resizable=yes');
}

function show_nt1(shopform) {
   window.open(shopform, 'client', 'width=480,height=330,resizable=yes,status=no,scrollbars=auto,menubar=no');
}

function show_nt2() {
   var sid = eval(document.shopform.dept);
   ref = 'shop/selcard.htm?dept='+sid.value;
   window.open(ref, 'client', 'width=540,height=330, resizable=yes,status=no,scrollbars=yes,menubar=no');
}

function foc()
{
       document.smemberform.sid.focus();
}

var timerID = null;
          var timerRunning = false;
          function time () {
          var now = new Date();
          var yr = now.getYear();
          var mName = now.getMonth() + 1;
          var dName = now.getDay() + 1;
          var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
          var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
          var hours = now.getHours();
          hours = ((hours > 12) ? hours - 12 : hours);
          var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
          var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
          if(dName==1) Day = "Sunday";
          if(dName==2) Day = "Monday";
          if(dName==3) Day = "Tuesday";
          if(dName==4) Day = "Wednesday";
          if(dName==5) Day = "Thursday";
          if(dName==6) Day = "Friday";
          if(dName==7) Day = "Saturday";
          if(mName==1) Month="January";
          if(mName==2) Month="February";
          if(mName==3) Month="March";
          if(mName==4) Month="April";
          if(mName==5) Month="May";
          if(mName==6) Month="June";
          if(mName==7) Month="July";
          if(mName==8) Month="August";
          if(mName==9) Month="September";
          if(mName==10) Month="October";
          if(mName==11) Month="November";
          if(mName==12) Month="December";
          // String to display current date.
          var DayDateTime=(" "
          + Day
          + " "
          + Month
          + " "
          + dayNr
          + ", "
          + yr
          + " "
          + hours
          + minutes
          + seconds
          + " "
          + ampm
          );
          // Displays Day-Date-Time on the staus bar.
          window.status=DayDateTime;
          timerID = setTimeout("time()",1000);
          timerRunning = true;
        }
        
function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}