var ns4 = document.layers;
var op5 = (navigator.userAgent.indexOf("Opera 5")!=-1)
||(navigator.userAgent.indexOf("Opera/5")!=-1);
var op6 = (navigator.userAgent.indexOf("Opera 6")!=-1)
||(navigator.userAgent.indexOf("Opera/6")!=-1);
var agt=navigator.userAgent.toLowerCase();
var mac = (agt.indexOf("mac")!=-1);
var ie = (agt.indexOf("msie") != -1);
var mac_ie = mac && ie;
function hovermenucell(cell) {
cell.style.backgroundColor="#66CC66";
cell.style.border="2px outset";
}
function unhovermenucell(cell) {
cell.style.backgroundColor="#D1DDEB";
cell.style.border="2px solid #D1DDEB";
}
function hoverfoldertab(id) {
document.getElementById(id).style.textDecoration="underline";
document.getElementById(id).style.color="#00005C";
}
function unhoverfoldertab(id) {
document.getElementById(id).style.textDecoration='';
document.getElementById(id).style.color="#FFFFFF";
}
function navtopage(sPri, sSec, sTer, sArgs) {
var sQStr
sQStr = "";
if (String(sPri).length) {
sQStr += "ppage=" + sPri;
}
if (String(sSec).length) {
if (String(sQStr).length) {
sQStr += "&";
}
sQStr += "spage=" + sSec;
}
if (String(sTer).length) {
if (String(sQStr).length) {
sQStr += "&";
}
sQStr += "tpage=" + sTer;
}
if (String(sArgs).length) {
sQStr += sArgs;
}
if (String(sQStr).length) {
window.location = ("StudentHome.asp?" + sQStr);
}
}
function confirmlogout() {
if (confirm("Are you sure you want to log off?")) {
navtopage("logoff","","","");
}
}
function proctorconfirmlogout() {
if (confirm("Are you sure you want to log off the student AND the proctor?")) {
window.location = "StudentHome/Logout.asp?act=proctorhome";
}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i
0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i