<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    locations_over = newImage("images/university/locations-over.gif");
    programs_over = newImage("images/university/programs-over.gif");
    flexnet_over = newImage("images/university/flexnet-over.gif");
    admissions_over = newImage("images/university/admissions-over.gif");
    business_over = newImage("images/university/business-over.gif");
    tech_over = newImage("images/university/tech-over.gif");
    education_over = newImage("images/university/education-over.gif");
    nursing_over = newImage("images/university/nursing-over.gif");
    criminal_over = newImage("images/university/criminal-over.gif");
    human_over = newImage("images/university/human-over.gif");
    preloadFlag = true;
  }
}
//zip form
function checkVal(zipValue) {
	if (document.formZip.zip.value.length < 3) {
		alert("Please enter a valid zip code.");
	} else {
		document.formZip.zip.value = document.formZip.zip.value.replace(/ /gi,'');
		document.formZip.zip.value = document.formZip.zip.value.replace(/\./gi,'');
		document.formZip.zip.value = document.formZip.zip.value.replace(/\</gi,'');
		document.formZip.zip.value = document.formZip.zip.value.replace(/\>/gi,'');
		document.formZip.action = "ZipLookUp.aspx?" + zipValue;
		document.formZip.submit();
	}
}

// Set Defaults
//var StyleSheet = "StyleSheet"
//var OuterTableWidth = "640"

// Get the values back
//var args = getArgs(); //Get the arguments
//if (args.CSSPATH) StyleSheet = (args.CSSPATH);
//if (args.OTBL) OuterTableWidth = (args.OTBL);
// write the path for the style sheet now
//document.write("<link rel='stylesheet' href='http://www.jamesrking.com/_scriptLib/Includes/StyleSheet" + args.CSSPATH + ".css'>");



// Pop-up form on postBack
function loadForm(){
	var n=open("default.aspx?p=map", "MapWin", "width=470,height=525,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=no,status=yes");
	n.focus()
}

//locations form
function getLocation(newlocation) {
		document.frmLocations.action = "location.aspx?p=campusLocations&location=" + newlocation;
		document.frmLocations.method = "POST";
		document.frmLocations.submit();
	}

function openprivacy(){
var n=open("default.aspx?p=privacy","PrivacyWin","width=350,height=350,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=no,status=no");
n.focus();
}
// -->