// This is the same as scripts.js except the problematic mouseover image loading has been removed
agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
    {
    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
    }

function img_act(imgName)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "on.src");
          document [imgName].src = imgOn;
        }}
		
		
		
function img_inact(imgName)
        {
        if (browserVer == 1) {
          imgOn = eval(imgName + "off.src");
          document [imgName].src = imgOn;
        }}




function openCourse_change_card(){
	newWindow=window.open("http://www.umass.edu/registrar/fac_staff/course_change_card.htm","form_image",
	"toolbar=0,directories=0,menubar=0,location=0,width=720,height=420,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openMajorChangeCard(){
	newWindow=window.open("http://www.umass.edu/registrar/fac_staff/MajorChangeCard.htm","form_image",
	"toolbar=0,directories=0,menubar=0,location=0,width=720,height=420,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openPDFNote(){
	newWindow=window.open("http://www.umass.edu/registrar/pdf_note.htm","pdf_note",
	"toolbar=0,directories=0,menubar=0,location=0,width=600,height=300,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openExamSchedule(){
	newWindow=window.open("http://www.umass.edu/registrar/Student/exams/index.html","exam_schedule",
	"toolbar=0,directories=0,menubar=0,location=0,width=650,height=500,status=0,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}



function openSchedule(){
	newWindow=window.open("http://www.oit.umass.edu/spire/training/registration.html","schedule",
	"toolbar=1,directories=1,menubar=1,location=1,width=700,height=500,status=1,resizable=1,scrollbars=1");
	if (navigator.appName != "Microsoft Internet Explorer")
		{
		newWindow.focus();
		}
	}
