// * note about ROLLOVERS // Because of Netscape 4...the image arrays must be included within each HTML file. // The image arrays cannot be used in a SRC file because NS4 errors out, even if root is correct. // MOUSEOVER functions ----------------------------- function imageLoader(a) { if (document.images) { if (!document.p) document.p=new Array(); var i, j=document.p.length; for (i=0; iThe answer submitted is not a valid option. Try again."; } if (z == "x") { msg = "
You must submit an answer. Please go back and try again.
"; } return msg; } // end quiz functions // New and Better popup // usage: popuplink(['js-only url',] this[, w[, h[, scroll[, extras]]]]) // basic usage: new pop // advanced usage: new pop // site-wide defaults: popup_w = 600; popup_h = 450; popup_scroll = true; popup_extras = 'location=0,status=0,menubar=0,resizable=0'; // POPUP_FANCY = 'location=yes,toolbar=yes,menubar=yes,directories=yes,status=yes,resizable=yes'; // NS4 placement: screenX and screenY // IE placement: left and top function popuplink() { var undef, i=0, args=popuplink.arguments; var url = (typeof(args[i])=='string') ? args[i++] : args[i].getAttribute('href'); var target = args[i++].getAttribute('target') || '_blank'; var w = args[i++]; var h = args[i++]; var s = (args[i]===undef) ? popup_scroll : args[i++]; // centering: determine screen center var scrw=(screen.width/2)-((w || popup_w)/2); var scrh=(screen.height/2)-((h || popup_w)/2); if (scrh > 100) { scrh = scrh - 40; } // bump vertical pos. just above center, but only if it fits var features = 'width=' + (w || popup_w) + ',height=' + (h || popup_h) + ',scrollbars=' + (s ? 'yes,' : 'no,') + (args[i] || popup_extras) + ',left='+scrw+',top='+scrh+',screenX='+scrw+',screenY='+scrh; // positioning for IE and NS var win = window.open(url, target, features); win.focus(); return false; } // END POP UP