home *** CD-ROM | disk | FTP | other *** search
-
- var isIE4up
- var isNav4up
-
- //function main()
- // {
- detectBrowserVer();
-
- // }
-
- function detectBrowserVer()
- {
- var agt=navigator.userAgent.toLowerCase();
- isNav4up = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1))) && (parseInt(navigator.appVersion) == 4);
- isIE4up = (agt.indexOf("msie") != -1) && ( parseInt(navigator.appVersion) == 4);
- }
-
- function button_mouseOver(obj)
- {
- if (isIE4up)
- {
- var obj;
- obj = window.event.srcElement;
- obj.abp_inactive_color = obj.style.color;
- obj.style.color = "red";
- }
- return true;
- }
-
- function button_mouseOut(obj)
- {
- if (isIE4up)
- {
- var obj;
- obj = window.event.srcElement;
- obj.style.color = obj.abp_inactive_color;
- }
- return true;
- }
-
- function submit_form_to(method, formName, url, command)
- {
- if (command)
- document.forms[formName].elements["command"].value = command;
-
- if (method != "post" && method != "get")
- method = "post";
- document.forms[formName].method = method;
- document.forms[formName].action = url;
- document.forms[formName].submit();
- }
-