var release = false; var myRoot = "http://dqi.org.uk/Schools/dqionline/"; var myWin; function popURL(dest, nWidth, nHeight, bFullScreen, scrolling, resize, wName) { popURLEx(dest, nWidth, nHeight, bFullScreen, scrolling, resize, wName, -1, -1); } function popURLEx(dest, nWidth, nHeight, bFullScreen, scrolling, resize, wName, nTop, nLeft) { var h, w, fs; //Launch IE with the selected URL (nHeight != null) ? h = nHeight : h = (screen.availHeight - 150); (nWidth != null) ? w = nWidth : w = (screen.availWidth -150); (bFullScreen != null) ? fs = bFullScreen : fs = 0; var mFeatures = "height=" + h; mFeatures += ",width=" + w; if (nTop != -1 && nLeft != -1) { mFeatures += ",top=" + nTop + ",left=" + nLeft + ""; } else { mFeatures += ",top=50,left=50"; } mFeatures += ",directories=0,location=0,menubar=0,resizable="; mFeatures += (resize ? "1":"0") + ", scrollbars="; mFeatures += (scrolling?"1":"0") + ",status=0,toolbar=0"; if (myWin!=null){ //myWin.close(); } myWin=window.open (dest, wName, mFeatures); myWin.focus(); } function popPDF (pname) { popURL (myRoot + "../common/" + pname, 800, 500, false, true, true, "util"); } function popProjectPhotos() { popURL(myRoot + "/resource/ProjectPhotos.aspx", 620, 540, false, false, false, "projectphotos"); } function popHelp (pagename, chapter) { popURLEx(myRoot + "helpfiles/" + pagename + "#" + chapter, 350, 400, false, true, true,"helpwin", 430, 160); } function popFAVESets(FAVESetIDs) { popURL(myRoot + "leader/project/briefing/FAVESetRepresentationPopup.aspx?FAVESetIDs=" + FAVESetIDs, 800, 650, false, true, false, "favesets"); } function popFAVEPeaks(FAVESetIDs, ProjectID) { popURL(myRoot + "leader/project/briefing/FAVESetPeaksPopup.aspx?projectID=" + ProjectID + "&favesetids=" + FAVESetIDs, 650, 600, false, true, false, "favesetpeaks"); } function PrivacyP() { popURL (myRoot + "resource/utilwin.aspx?p=privacy.aspx&t=Privacy%20Policy",640, 400,false,true,true,"util"); } function TandC() { popURL (myRoot + "resource/utilwin.aspx?p=terms.aspx&t=Terms%20and%20Conditions",640, 400,false,true,true,"util"); } function ContactUs() { popURL (myRoot + "resource/utilwin.aspx?p=contact.aspx&t=Contact Us",640, 400,false,true,true,"util"); } function DoMiscTip(tipno, bigtip) { var nTop, nLeft, w, h, url; if (bigtip) { url = myRoot + "misctip/misctipbig.aspx?t=" + tipno; w = 650; h = 450; } else { url = myRoot + "misctip/misctip.aspx?t=" + tipno; w = 300; h = 200; } nLeft = Math.round((screen.availWidth - w) / 2); nTop = Math.round((screen.availHeight - h) / 3); popURLEx(url, w, h, false, false, false, "wTip", nTop, nLeft); }