campuszips103632 = Array('430','431','432','433','434','435','436','437','438','439','440','441','442','443','444','445','446','447','448','449','450','451','452','453','454','455','456','457','458','459','460','461','462','463','464','465','466','467','468','469','470','471','472','473','474','475','476','477','478','479','480','481','482','483','484','485','486','487','488','489','490','491','492','493','494','495','496','497','498','499','500','501','502','503','504','505','506','507','508','509','510','511','512','513','514','515','516','520','521','522','523','524','525','526','527','528','530','531','532','534','535','537','538','539','540','541','542','543','544','545','546','547','548','549','550','551','553','554','555','556','557','558','559','560','561','562','563','564','565','566','567','600','601','602','603','604','605','606','607','608','609','610','611','612','613','614','615','616','617','618','619','620','622','623','624','625','626','627','628','629'); var agt=navigator.userAgent.toLowerCase(); var is_major = parseInt(navigator.appVersion); var is_minor = parseFloat(navigator.appVersion); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie3 = (is_ie && (is_major < 4)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) ); var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5") !=-1)); var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) ); var is_ie7 = (is_ie && (is_major == 4) && (agt.indexOf("msie 7.")!=-1) ); ie_ver = 6; if(is_ie) ie_ver = 1; if(is_ie3) ie_ver = 3; if(is_ie4) ie_ver = 4; if(is_ie5) ie_ver = 5; if(is_ie6) ie_ver = 6; if(is_ie7) ie_ver = 7; grouping = ''; function getCampus(){ pos = document.forms[0].campus_key.length; if(typeof(pos) == "undefined"){ AddCampus("Milwaukee","Milwaukee"); }else{ for(i = document.forms[0].campus_key.length-1; i >= 0;i--){ document.forms[0].campus_key.options[i] = null; } AddCampus("Select One:",""); AddCampus("Milwaukee","Milwaukee"); } } function setCampus(){ pos = document.forms[0].campus_key.length; if(typeof(pos) != "undefined"){ if(document.forms[0].campus_key.length == 2){ document.forms[0].campus_key.selectedIndex = 1; }else{ document.forms[0].campus_key.value = GetQueryVariable("campus_key"); } } } function getProgram(){ pos = document.forms[0].program_key.length; if(typeof(pos) == "undefined"){ }else{ for(i = document.forms[0].program_key.childNodes.length-1; i >= 0;i--){ document.forms[0].program_key.removeChild(document.forms[0].program_key.childNodes.item(i)); } for(i = document.forms[0].program_key.length-1; i >= 0;i--){ document.forms[0].program_key.options[i] = null; } } validateCampus(); pos = document.forms[0].campus_key.length; if(typeof(pos) == "undefined"){ var the_selected = document.forms[0].campus_key.value; }else{ var the_index = document.forms[0].campus_key.selectedIndex; var the_selected = document.forms[0].campus_key.options[the_index].value; } grouping = ''; switch (the_selected){ case "": AddProgram("Please choose a campus","",""); break; case "Milwaukee": AddProgram("Select One:","",""); AddProgram("Architectural Engineering & Building Construction","Architectural Engineering & Building Construction","Academic Departments"); AddProgram("Electrical Engineering & Computer Science","Electrical Engineering & Computer Science","Academic Departments"); AddProgram("General Studies","General Studies","Academic Departments"); AddProgram("Mathematics","Mathematics","Academic Departments"); AddProgram("Mechanical Engineering","Mechanical Engineering","Academic Departments"); AddProgram("Mechanical Engineering","Mechanical Engineering","Academic Departments"); AddProgram("Physics & Chemistry","Physics & Chemistry","Academic Departments"); AddProgram("Rader School of Business","Rader School of Business","Academic Departments"); AddProgram("School of Nursing","School of Nursing","Academic Departments"); AddProgram("Business Excellence Consortium (Lean, Six Sigma, Executive Leadership)","Business Excellence Consortium (Lean, Six Sigma, Executive Leadership)","Certificates, Seminars and Short Courses"); AddProgram("C++ Certificate","C++ Certificate","Certificates, Seminars and Short Courses"); AddProgram("CompTIA A+ Computer Certificate","CompTIA A+ Computer Certificate","Certificates, Seminars and Short Courses"); AddProgram("CompTIA Network+ Certification","CompTIA Network+ Certification","Certificates, Seminars and Short Courses"); AddProgram("Development seminars from the Applied Technology Center","Development seminars from the Applied Technology Center","Certificates, Seminars and Short Courses"); AddProgram("Fundamentals of Engineering (FE Review)","Fundamentals of Engineering (FE Review)","Certificates, Seminars and Short Courses"); AddProgram("Microsoft Certification","Microsoft Certification","Certificates, Seminars and Short Courses"); AddProgram("Novell Certification","Novell Certification","Certificates, Seminars and Short Courses"); AddProgram("Professional Education and Research","Professional Education and Research","Certificates, Seminars and Short Courses"); AddProgram("Project Management Certificate","Project Management Certificate","Certificates, Seminars and Short Courses"); AddProgram("Technical Communication Certificate","Technical Communication Certificate","Certificates, Seminars and Short Courses"); AddProgram("Web Development Certificate: Java Server Pages","Web Development Certificate: Java Server Pages","Certificates, Seminars and Short Courses"); AddProgram("Web Development Certificate: Web Site Design","Web Development Certificate: Web Site Design","Certificates, Seminars and Short Courses"); AddProgram("Engineering","Engineering","Graduate (M.S.) Degree Programs"); AddProgram("Engineering Management (original and accelerated)","Engineering Management (original and accelerated)","Graduate (M.S.) Degree Programs"); AddProgram("Environmental Engineering","Environmental Engineering","Graduate (M.S.) Degree Programs"); AddProgram("Marketing and Export Management","Marketing and Export Management","Graduate (M.S.) Degree Programs"); AddProgram("Medical Informatics","Medical Informatics","Graduate (M.S.) Degree Programs"); AddProgram("New Product Management","New Product Management","Graduate (M.S.) Degree Programs"); AddProgram("Perfusion","Perfusion","Graduate (M.S.) Degree Programs"); AddProgram("Structural Engineering","Structural Engineering","Graduate (M.S.) Degree Programs"); AddProgram("Architectural Engineering","Architectural Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Biomedical Engineering","Biomedical Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("BioMolecular Engineering","BioMolecular Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Business Management","Business Management","Undergraduate (B.S.) Degree Programs"); AddProgram("Computer Engineering","Computer Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Construction Management","Construction Management","Undergraduate (B.S.) Degree Programs"); AddProgram("Electrical Engineering","Electrical Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Industrial Engineering","Industrial Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("International Business","International Business","Undergraduate (B.S.) Degree Programs"); AddProgram("Management Information","Management Information","Undergraduate (B.S.) Degree Programs"); AddProgram("Mechanical Engineering","Mechanical Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Nursing","Nursing","Undergraduate (B.S.) Degree Programs"); AddProgram("Software Engineering","Software Engineering","Undergraduate (B.S.) Degree Programs"); AddProgram("Technical Communication    (B.S. or B.A.)","Technical Communication    (B.S. or B.A.)","Undergraduate (B.S.) Degree Programs"); break; } setProgram(); } function setProgram(){ if(document.forms[0].program_key.length == 2){ document.forms[0].program_key.selectedIndex = 1; }else{ $program_key_tmp = GetQueryVariable("program_key"); if( $program_key_tmp != '' ) { document.forms[0].program_key.value = $program_key_tmp; } } } function AddCampus(name,value){ pos = document.forms[0].campus_key.length; if(typeof(pos) == "undefined"){ document.forms[0].campus_key.value = value; }else{ document.forms[0].campus_key.options[pos] = new Option(name,value,false,false); } } function AddProgram(name,value,group){ if(typeof(ie_ver) === null) var ie_ver = 7; pos = document.forms[0].program_key.length; if(typeof(pos) == "undefined"){ document.forms[0].program_key.value = value; }else{ if(ie_ver <= 5){ document.forms[0].program_key.options[document.forms[0].program_key.length] = new Option(name, value, false, false) }else{ var objOption = document.createElement("option"); objOption.innerHTML = name; objOption.value = value; if(group == ""){ document.forms[0].program_key.appendChild(objOption); }else{ if(group != grouping){ optGroup = document.createElement('optgroup'); optGroup.label = group; grouping = group; } optGroup.appendChild(objOption); document.forms[0].program_key.appendChild(optGroup); } } } } function GetQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i -1){ rVal += "\n-Milwaukee."; } return rVal; } function USZip(zip){ if(!(zip.substr(0,1) >= '0' && zip.substr(0,1) <= '9')){ return false; } if(!(zip.substr(1,1) >= '0' && zip.substr(1,1) <= '9')){ return false; } if(!(zip.substr(2,1) >= '0' && zip.substr(2,1) <= '9')){ return false; } return true; } function CAZip(zip){ if(!(zip.substr(0,1) >= 'A' && zip.substr(0,1) <= 'Z') && !(zip.substr(0,1) >= 'a' && zip.substr(0,1) <= 'z')){ return false; } if(!(zip.substr(1,1) >= '0' && zip.substr(1,1) <= '9')){ return false; } if(!(zip.substr(2,1) >= 'A' && zip.substr(2,1) <= 'Z') && !(zip.substr(2,1) >= 'a' && zip.substr(2,1) <= 'z')){ return false; } return true; } function BinarySearchCampus(ArrayToSearch, SearchFor){ first = 0; last = ArrayToSearch.length - 1; mid = Math.floor((first + last) / 2); while((first <= last) && (ArrayToSearch[mid]!=SearchFor.toUpperCase())){ if(SearchFor.toUpperCase() < ArrayToSearch[mid]){ last = mid - 1; }else if(SearchFor.toUpperCase() > ArrayToSearch[mid]){ first = mid + 1; } mid = Math.floor((first + last)/2); } if(ArrayToSearch[mid] == SearchFor.toUpperCase()){ return mid; }else{ return -1; } } zipVal = GetQueryVariable('zip'); if(zipVal != '') { document.forms[vFormName].elements['zip'].value = zipVal; } getCampus(); setCampus(); getProgram(); setProgram();