


function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="mlsfaculty" && password=="ccmls1719") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="sbebout" && password=="sbb$519") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="kcarlson" && password=="kcl#101") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="mcastillo" && password=="mcs%131") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="lcaver" && password=="lcv&105") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="cdefelice" && password=="cdf@181") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="mdonlevy" && password=="mdl$555") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="cdragon" && password=="cdr#429") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="sgranum" && password=="sgm%427") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="bhemming" && password=="bgh&183") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="phogue" && password=="phg@146") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="showard" && password=="sth$805") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="ako" && password=="ank#342") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="cmyers" && password=="chm%104") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="bpayton-rader" && password=="bpr&100") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="eslayton" && password=="ems@133") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="twangler" && password=="trw$190") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="tweiderspon" && password=="tws#692") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }
if (username=="hwhite" && password=="haw%691") { MM_openBrWindow('studentCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }

if (username=="mlsadmit" && password=="ccmlsadmit") { MM_openBrWindow('admittedCenterSecure.htm','topw1','scrollbars=yes,resizable=yes,width=800,height=600'); done=1; }

//Add line here for additional users, passwords and redirects

if (done==0) { alert("Invalid log-on!"); }
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




/* 
Usage: The link is written as follows: 
onclick="newWindow(this.href, 'popup', 600, 500, 1, 1, 0, 0, 0, 1, 0);

Usage Description:
"this.href" refers to the URL given in the "a" tag; "'popup'" is the name of the popup window;
600 is the width of the popup window; 500 is the height of the popup window; the numbers that
follow designate whether a property is turned on ("1") or off ("0"), in this order:
scrollbars, resizable, menubar, toolbar, addressbar, statusbar, fullscreen
*/

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
