function doNothing() { } function validate() { } var bn=navigator.appName; var vn=navigator.appVersion; // Today=new Date(); function ImageSwap( what, image ) { what.src=image; } function confirmLink(theLink, theMessage) { var confirmMsg = 'Do you really want to '; // Confirmation is not required in the configuration file if (confirmMsg == '') { return true; } var is_confirmed = confirm(confirmMsg + ' :\n' + theMessage); if (is_confirmed) { theLink.href += '&is_js_confirmed=1'; } return is_confirmed; } // end of the 'confirmLink()' function function findPosX( obj ) { var curleft = 0; if ( document.getElementById || document.all ) { while ( obj.offsetParent ) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if ( document.layers ) curleft += obj.x; return curleft; } function findPosY( obj ) { var curtop = 0; if ( document.getElementById || document.all ) { while ( obj.offsetParent ) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if ( document.layers ) curtop += obj.y; return curtop; } var panetiming; var panevis = null; function PopupPaneShow( pane, topmenu, offsetx, offsety ) { PopupPaneHalt(); if ( document.getElementById || document.all ) { document.getElementById( pane ).style.top = findPosY( document.getElementById( topmenu ) ) + offsety; document.getElementById( pane ).style.left = findPosX( document.getElementById( topmenu ) ) + offsetx; document.getElementById( pane ).style.visibility = 'visible'; document.getElementById( pane ).style.display = 'inline'; } if ( panevis != null && panevis != pane ) PopupPaneHide( panevis ); panevis = pane; } function PopupPaneHide( pane ) { if ( document.getElementById || document.all ) document.getElementById( pane ).style.visibility = 'hidden'; } function PopupPaneTimeout() { if ( panetiming ) clearTimeout( TO ); panetiming = true; TO = setTimeout( 'PopupPaneHide( panevis )', 1000 ); } function PopupPaneHalt() { if ( panetiming ) { clearTimeout( TO ); panetiming = false; } } function cgInit() { MM_preloadImages(); } function MM_preloadImages() { //v3.0 var d=document; if(d.images) { if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i255) { alert("Destination IP address is invalid!") return false } } return true } var domainArray=domain.match(domainPat) if (domainArray==null) { alert("The domain name doesn't seem to be valid.") return false } var atomPat=new RegExp(atom,"g") var domArr=domain.match(atomPat) var len=domArr.length if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) { alert("The address must end in a three-letter domain, or two letter country.") return false } if (len<2) { var errStr="This address is missing a hostname!" alert(errStr) return false } // If we've gotten this far, everything's valid! return true; }