﻿/*------------------------------------------------------------------------------
//  Warning : This computer program is protected by copying law and international treaties.
//  unauthorized reproduction program or any portion of it will be prosecuted to the maximum extent possible under law .
//  Forbidding : Redistribution of this code, whole or in part, as source code  or in binary form, alone or 
//  as part of a larger distribution or product, is forbidden for any commercial or for-profit or Non-commercial
//  use without the author's explicit written permission.
//  Author : email:ruihade@hotmail.com , ruihade@gmail.com ,location: taiwan, cellphone:0919910435
//<script language="javascript" src="..\App_Js\masterint.js"></script>
-----------------------------------------------------------------------------*/
// Web Protections : No Mouse Right Click
//history.back()　　 回瀏覽器歷史清單的前一個網址
//history.forward()　至瀏覽器歷史清單的下一個網址 
//history.go(-1)　　回瀏覽器歷史清單的前二個網址
//history.go(-1)　　回瀏覽器歷史清單的前一個網址
//history.go(0) 　　重新載入正在瀏覽的頁面 
//history.go(1) 　　至瀏覽器歷史清單的下一個網址
//history.go(2)　　 至瀏覽器歷史清單的下二個網址 
//location.reload 重新整理 
document.oncontextmenu = function() { return false };
document.onmousedown = function() { return false };
document.onselectstart = function () { return false };
function IsNumeric(strString)
//  check for valid numeric strings	
{
    var strValidChars = "0123456789.-";
    var strChar;
    var blnResult = true;

    if (strString.length == 0) return false;

    //  test strString consists of valid characters listed above
    for (i = 0; i < strString.length && blnResult == true; i++) {
        strChar = strString.charAt(i);
        if (strValidChars.indexOf(strChar) == -1) {
            blnResult = false;
        }
    }
    return blnResult;
}


