function M_Mess_Show() {
    parent.frames(1).document.all.M_Part_1.innerText="【 "+document.title+ " 】";
}

function M_Mess_Hide() {
    parent.frames(1).document.all.M_Part_1.innerText="";
}

function R_Mess_Show() {
    var strHTML = "";
    if (document.title!="首頁") { 
       strHTML += "<img src=\"Web-Images/Other/homepage.gif\" alt=\"回到首頁\" border=\"0\" align=\"absmiddle\">\n";
       strHTML += "<a href=\"PageMain.asp\" target=\"main\">回首頁</a>\n";

       // strHTML += "|\n";
       // strHTML += "<img src=\"Web-Images/Other/prepage.gif\" alt=\"返回上頁\" border=\"0\" align=\"absmiddle\">\n";
       // strHTML += "<a href=\"#\" onClick=\"top.window.history.go(-1);\">上一頁</a>\n";
    }
    parent.frames(1).document.all.R_Part_1.innerHTML=strHTML;
}

function R_Mess_Hide() {
    parent.frames(1).document.all.R_Part_1.innerHTML="";
}

function ManageViewPage(strURL) {
    location.replace(strURL);
    location.href=strURL;
    
}

function ManageViewPic(strImg) {
    var strURL="ManageViewPic.asp?ImgURL="+strImg; 
    var strFeatures="left=0,screenX=0,left=0,screenY=0";
    strFeatures += ",height=480,innerHeight=480,width=640,innerWidth=640";
    strFeatures += ",location=no,directories=no,status=no,menubar=no";
    strFeatures += ",scrollbars=yes,resizable=yes,titlebar=yes";
    window.open(strURL,"ManageViewPic",strFeatures)
    //location.replace(strURL);
}


function NoRightClick(evnt) {
    if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)
    {
        if (evnt.which == 3) {alert("抱歉！\n\n版權所有，請勿複製!!");return false;}
    }
      else
        if (event.button==2) alert("抱歉！\n\n版權所有，請勿複製!!");
}

document.onmousedown = NoRightClick;
