﻿
   function gogoogle(nt){
    
    var myLocation = location.href;
    var loc = myLocation.split("http://");
    var locID = loc.length;
    var myurl = "http%3A%2F%2F"+loc[locID-1];
    var cururl = myurl.split("&rurl=");
    var weburl = cururl[0]

   if (nt == "en")
   {
    window.document.location.href = unescape(weburl) ;
   }
   else
   {
    window.document.location.href="http://www.google.com/translate_p?hl=en&langpair=en%7C"+nt+"&u="+myurl;
   }
    }

    if (top.location != self.location) {
    top.location.replace(self.location); // pop to top
    }


//-- for access code in front page --
    function checknum(e, n, values) {
        if (!e) {
            e = window.event;
        }

        if (typeof e.which == "number") {
            e = e.which;
        } else if (typeof e.keyCode == "number") {
            e = e.keyCode;
        } else if (typeof e.charCode == "number") {
            e = e.charCode;
        }

        if (e >= 48 && e <= 57 || e == 13 || e == 8 || e == 0 || n == "d" && e == 46) {
            if ((e == 46 && values != "") && document.getElementById(values).value.indexOf(".") > -1) {
                return false;
            } else {
                return true;
            }
        } else {
            return false;
        }

        var i = 1;
    }