

//HyWeb Interface JS Style / writed by Brad Kuo

//下拉式選單

function menuchang(f){
f.className='forheadover';
};

function menure(f){
f.className='forhead';
};

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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 SMF_CreateWin(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=1,width=600,height=480");
 }

function SMF_CreateWin2(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=0,width=360,height=240");
 }

function SMF_ShowImage(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=0,width=490,height=640");
 }



function SMF_Popup(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","width=740,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=1");
 }


function SMF_450x300(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,scrollbars=0,width=450,height=300");
 }

function SMF_300x450(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,scrollbars=0,width=300,height=450");
 }



function rowovr( obj ){ obj.style.backgroundColor = "#ffffff"; }
function rowout( obj, laColor ){ obj.style.backgroundColor = laColor; }
function rowclick( oLink ){ location.href = oLink; }


function rowovr0( obj ){ obj.style.backgroundColor = "#ffccee"; }
function rowout0( obj, laColor ){ obj.style.backgroundColor = laColor; }
function rowclick0( oLink ){ location.href = oLink; }


function go1(section)
 {
   idx=section.options.selectedIndex;
   top.location.href=section.options[idx].value;
  }

function go2(section)
 {
   idx=section.options.selectedIndex;
   top.main.location.href=section.options[idx].value;
  }

function go3(section)
 {
   idx=section.options.selectedIndex;
   top.contents.location.href=section.options[idx].value;
  }


function load(smf_left,smf_right){
    parent.contents.location.href=smf_left;
    parent.main.location.href=smf_right;
    }


/*
var msg="請尊重智慧財產權，謝謝您的合作！";
function disableIE() {if (document.all) {alert(msg);return false;}
}
function disableNS(e) {
  if (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {alert(msg);return false;}
  }
}
if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
} else {
  document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}
document.oncontextmenu=new Function("alert(msg);return false")

*/
