function viewPPT(theFile,theTitle) { var pptWindow = window.open("gis_ppt.php?ppt="+theFile+"&title="+theTitle,"ppt","width=400,height=300,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes,location=yes") pptWindow.focus() // this line just brings the window to the front if it's already been opened // Google Analytics to track this download // _gaq.push(["_trackEvent", "Downloads", "PPT", theTitle]); } function linkWindow(theURL) { var theWindow = window.open("http://" + theURL,"otherSite","width=400,height=300,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes,location=yes") theWindow.focus() // this line just brings the window to the front if it's already been opened // Google Analytics to track this download // _gaq.push(["_trackEvent", "Downloads", "PPT", theTitle]); } function jumpPage(newLoc) { newPage = newLoc.options[newLoc.selectedIndex].value if (newPage != "") { window.location.href = newPage } } function display_content_popup(pid) { var win = window.open("popup.php?pid="+pid,"popup_content","width=720,height=740,location=no,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=no") win.focus() // this line just brings the window to the front if it's already been opened } function pdf_download_popup(pdf,title) { var win = window.open("pdf_download.php?pdf="+pdf+"&title="+title,"popup_content","width=720,height=740,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no") win.focus() // this line just brings the window to the front if it's already been opened // Google Analytics to track this download // file_extentions = pdf.match(/\.[a-z]*$/i // returns an array // _gaq.push(["_trackEvent", "Downloads", file_extentions[0].toUpperCase(), pdf + ' (' + title + ')']); } // use this from the embedded plugins, because it gets the values needed to pass to the generic pdf_download_popup function function download_pdf(whichField,form_type_for_logfile) { select_list = document.getElementById(whichField) for (var i=0; i