function pup(url) {
    open(url, 'popup', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no,width=720,height=450,top=10,right=10');
}
function open_w(arg,text){
 if (confirm(text) == true){
      open(arg,'_self','scrollbars,resizeable=yes,width=680,height=600')
    }
}

function selectAll(mainbox, boxid)

{
        var elems = mainbox.form.elements;
                var elemnum = elems.length;

        for(i=0; i < elemnum; i++)
                if(elems[i].id == boxid)
                        elems[i].checked = mainbox.checked;
}

function goto(url) {
	top.location = url;
}

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

function aken(url, winwidth, winheight, param)
{
        var date = new Date();
        var name = date.getTime();

        var win = ava_keskaken(name, url, winheight, winwidth, param);
//      window.open(url,name,param);
}

function ava_keskaken(winname, loc, heightt, widthh, params)
{
   naver=navigator.appVersion;
   if(navigator.appName=="Microsoft Internet Explorer"&&
      naver.substring(naver.indexOf("MSIE")+5,naver.lastIndexOf(';'))>'5.0')
   {
        tp=window.screenTop+Math.ceil((document.body.clientHeight-heightt)/2);
        lf=window.screenLeft+Math.ceil((document.body.clientWidth-widthh)/2);
        if (params.length > 0) params = "," + params;
        return window.open(loc,winname,"width="+widthh+",height="+heightt+",top="+tp+",left="+lf+params);
   }
   else if(navigator.appName=="Netscape"&& naver.substring(0,naver.indexOf(' '))>'4.0')
   {
        tp=window.screenY+Math.ceil((window.innerHeight-heightt)/2);
        lf=window.screenX+Math.ceil((window.outerWidth-widthh)/2);
        tp+=window.outerHeight-window.innerHeight;
        if (params.length > 0) params = "," + params;
        return window.open(loc,winname,'width='+widthh+',height='+heightt+',top='+tp+',left='+lf+params);
   }
   else
   {
        return window.open(loc,winname);
   }
}



