// JavaScript Document


function changeTopMenuOver(img, iIndex)
{
	img.src = arrTopMenuOver[iIndex].src;
}



function changeTopMenuOut(img, iIndex)
{
	img.src = arrTopMenuOut[iIndex].src;
}



function changeOtherImageOver(img, iIndex)
{
	img.src = arrOtherImageOver[iIndex].src;
}



function changeOtherImageOut(img, iIndex)
{
	img.src = arrOtherImageOut[iIndex].src;
}




function redirectSelectUrl(obj)
{
	var sNewUrl = obj.options[obj.selectedIndex].value;

	if (sNewUrl.length > 0)
		top.location.href = sNewUrl;
}

 function openApplyWindow() {
        var ApplyWindow = window.open("/apply/sjc_apply_now_sos_redirect.html", "ApplyWindow", "directories=no,location=no,menubar=no,status=no,toolbar=no,resizable=no,scrollbars=no,width=740,height=540");
    }

function openCalendarWindow(obj)
{
	var sNewUrl = obj.options[obj.selectedIndex].value;

	if (sNewUrl.length > 0)
		calendarWindow = window.open(sNewUrl, "calendarWindow", "directories=no,location=no,menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes,status=yes,width=800");
}



function calendarRedirect(sPageURL, sCalendar, sCategory, sDate)
{
	var sNewUrl = sPageURL + "?" + sCalendar + "&" + sCategory + "&" + sDate;
	self.top.location.href = sNewUrl;
}



function altCreditTermSearch (sSubjCode, sCrseNumb)
{
	var sSvrName = "http://www.sanjac.edu/cf/";
	var sCfmName = "sjc_capp_alt_terms.cfm";
	var sQueryStr = "?sTermCode=&iAltTerm=1&cSectionCode=All&cCampCode=All&cSessCode=All";
	var sNewUrl = sSvrName + sCfmName + sQueryStr + "&" + "sSubjCode=" + sSubjCode + "&" + "sCrseNumb=" + sCrseNumb;
	
        var CappWindow = window.open(sNewUrl, "CappWindow", "directories=no,location=no,menubar=no,status=no,toolbar=no,resizable=no,scrollbars=yes,width=600,height=480");
	CappWindow.focus();
}
