// Scripting Utilities function getCookie (name) { var biscuit = document.cookie; var startpos = biscuit.indexOf(name + "="); if (startpos == -1) return null; startpos = biscuit.indexOf("=", startpos) + 1; // first character var endpos = biscuit.indexOf(";", startpos); if (endpos == -1) endpos = biscuit.length; // last character return unescape(biscuit.substring(startpos, endpos)); } function setCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function openWin(chart, wwidth, wheight) { //alert ("width=" + wwidth); var sWin; var spec = "width=650,height=525,status=no,toolbar=no,menubar=no"; if (wwidth > 0) { spec = "width=" + wwidth + ",height=" + wheight + ",status=no,toolbar=no,menubar=no"; // open a default window (so we actually have an object - then check to see if is the correct size sWin = open("/popup.asp", "SlaveWindow", spec); //will make sure the window exists - ignored if already exists sWin.close(); //will close the win we just created - or it will close a previously existing (unwanted) window } //alert("spec=" + spec); // var sWin = open("/slave.htm", "SlaveWindow", spec); // sWin.document.write("Triples Online (PopUp)
"); // sWin.document.write("

"); // sWin.document.write("

"); //// sWin.document.pic.src = chart; sWin = open("/popup.asp?c=" + chart, "SlaveWindow", spec); sWin.focus(); } function openWindow(HTMLfile, wwidth, wheight, wtitle, wscrollbar) { var hWin; var spec = "width=650,height=525,status=no,toolbar=no,menubar=no,scrollbars=" + wscrollbar; if (wwidth > 0) { spec = "width=" + wwidth + ",height=" + wheight + ",status=no,toolbar=no,menubar=no,scrollbars=" + wscrollbar; // open a default window (so we actually have an object - then check to see if is the correct size hWin = open(HTMLfile, "HTMLWindow", spec); //will make sure the window exists - ignored if already exists hWin.close(); //will close the win we just created - or it will close a previously existing (unwanted) window } hWin = open(HTMLfile, "HTMLWindow", spec); if (wtitle == "") { wtitle = "www.TriplesOnline.com" } hWin.title = wtitle; hWin.focus(); } function openFullWindow(HTMLfile) { var hWin = open(HTMLfile, "HTMLWindow", "width=750,height=550,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes"); // var hWin = open(HTMLfile, "HTMLWindow", "width=750,height=550"); hWin.focus(); }