/* These are functions called from the Header Menu selections */ function Register_select () { var currentloc = location.href; var homekeyvalue="hometestkey"; setCookie("hometestkey", homekeyvalue, "", "/", "", false); out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } nextloc = currentloc + "StudentReg?OpenForm"; document.location.href = nextloc; } function Login_select () { var currentloc = location.href; // alert("currentloc=" + currentloc) var homekeyvalue="hometestkey"; setCookie("hometestkey", homekeyvalue, "", "/", "", false); out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; // alert("currentloc2=" + currentloc) } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { // alert("currentloc3=" + currentloc) currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } nextloc = currentloc + "LoginForm?OpenForm"; document.location.href = nextloc; } function Purchase_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to Purchase."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to Purchase."); } else { nextloc = currentloc + "CartOrderRegForm?OpenForm&stdkey=" + laststdkeyvalue + "&email=" + lastemailvalue; document.location.href = nextloc; } } } function SemesterByYear_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewSemesterByYear?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function TranscriptByYear_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewTranscriptByYear?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue + "&stdview=ClassInstanceVw2"; document.location.href = nextloc; } } } function TranscriptByYear3_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewTranscriptByYear?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue + "&stdview=ClassInstanceVw3"; document.location.href = nextloc; } } } function TranscriptByCategory_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewTranscriptByCategory?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function ResumeByCat_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewResumeByCategory?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function ResumeByDate_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewResumeByDate?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function ResumeByEndDate_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewResumeByEndDate?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function StudentMedical_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewStudentMedical?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function ViewAllReg_select () { var laststdkeyvalue=getCookie("topstdkey"); var lastemailvalue=getCookie("topstdemail"); var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("http:") != -1) { nextloc = "https:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } // if the cookie wasn't found, you haven't logged in if (!laststdkeyvalue || !lastemailvalue) { alert("You must Login successfully or Register to view Reports."); } else { if(laststdkeyvalue.length == 0) { alert("You must Login successfully or Register to view Reports."); } else { nextloc = currentloc + "ViewViewAllReg?OpenAgent&stdid=" + laststdkeyvalue + "&stdemail=" + lastemailvalue; document.location.href = nextloc; } } } function Instructions_select () { var currentloc = location.href; // alert("currentloc_instr=" + currentloc) out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if (currentloc.indexOf(".net/transcript.nsf") == -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net/")+5); currentloc = temp + "transcript.nsf/" } nextloc = currentloc + "LeftFrame?OpenPage"; document.location.href = nextloc; } function Terms_select () { var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } nextloc = currentloc + "TermsofService?OpenPage"; document.location.href = nextloc; } function Logout_select () { var currentloc = location.href; // alert("currentloc=" + currentloc) deleteCookie("topstdkey", "/", ""); deleteCookie("topstdemail", "/", ""); out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf("www.academicrecords.net") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf("www.academicrecords.net")); currentloc = temp + currentloc.substr(currentloc.indexOf("www.academicrecords.net")+4); } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("https:") != -1) { nextloc = "http:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } nextloc = currentloc; document.location.href = nextloc; } function Home_select () { var currentloc = location.href; out = "#"; // replace this if (currentloc.indexOf(out) != -1){ temp = "" + currentloc; while (temp.indexOf(out)>-1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + temp.substring((pos + out.length), temp.length)); } currentloc = temp; } if (currentloc.indexOf("www.academicrecords.net") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf("www.academicrecords.net")); currentloc = temp + currentloc.substr(currentloc.indexOf("www.academicrecords.net")+4); } if (currentloc.indexOf(".nsf/") != -1){ currentloc = currentloc.substr(0,currentloc.indexOf(".nsf/")+5); } else { currentloc = currentloc + "/"; } if (currentloc.indexOf(".net//") != -1){ // alert("currentloc4=" + currentloc) temp = "" + currentloc.substr(0,currentloc.indexOf(".net//")+5); currentloc = temp + "transcript.nsf/" } if(currentloc.indexOf("https:") != -1) { nextloc = "http:" + currentloc.substr(currentloc.indexOf(":")+1); currentloc = nextloc; } nextloc = currentloc; document.location.href = nextloc; }