// common.js used exclusively for common functions used throughout // function popUp(page, name, w, h, scroll) { // pop up window name = "foo"; page = page.split(" ").join("%20"); var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; //var resizable = false; winprop = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes'; win = window.open(page, name, winprop); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function showHide(layerName){ // shows and hides a given layer if (document.getElementById){ //alert('ns7'); var fred = document.getElementById(layerName); var display = fred.style.display ? '' : 'none'; fred.style.display = display; return; } } function rolloverTo(picName,imgName) { // mouseover image document[picName].src = eval(imgName + ".src"); } // Preload (not in this JS file) --> image_off1= new Image; image_off1.src="/media/Assets/Images/ZpicturesOff.gif"; // Call by --> function makeButton(URL,btnText,btnColor) { imgColor=(btnColor!="red")?'g':'r'; bgColor=(btnColor!="red")?'#999999':'#ff0000'; topColor=(btnColor!="red")?'#C4C4C4':'#fb533c'; btmColor=(btnColor!="red")?'#6c6c6c':'#822a15'; document.write('
'+btnText+'
'); } function printThis() { var ua = navigator.userAgent.toLowerCase(); var is_mac = ua.indexOf('mac') > 0; if (is_mac) { alert('To print:\n\nUse Command + P. on your keyboard\n') } else { print(); } }