﻿// JScript File

//sets up the page for those browsers that are running javascript

//hide the checkboxes and turn on the images

document.getElementById('imgChkFullerton').style.display = "block";
document.getElementById('chkFullerton').style.display = "none";

document.getElementById('imgChkUnion').style.display = "block";
document.getElementById('chkUnion').style.display = "none";

document.getElementById('imgChkWC').style.display = "block";
document.getElementById('chkWC').style.display = "none";

document.getElementById('divStatusMessages').style.display = "none";
    
    
     
function getQueryVariable(variable)
{
    //purpose -     Gets the value from a query string variable 
    //variables:    variable = name of the query string variable you want the value for
    
    var query = window.location.search.substring(1);
     
     query = query.toLowerCase();
     query = query.replace("full=", "full-");
     query = query.replace("&amp;", "&");
     // alert(query);

    var vars = query.split("&");
    var strValue = '';
               
    for (var i=0; i < vars.length; i++)
     {
       var pair = vars[i].split("=");
       if (pair[0] == variable) strValue = pair[1];
     }
     
     return strValue;
}
                 
