function home() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 	case 1:window.location ="whystudy.htm";break;
 	case 2:window.location ="apply.htm";break;
 	case 3:window.location ="applystatus.htm";break;
	case 4:window.location ="advising.htm";break;
	case 5:window.location ="courses.htm";break;
	case 6:window.location ="toolbox.htm";break;
	case 7:window.location ="faculty.htm";break;
	case 8:window.location ="alumni.htm";break;
	case 9:window.location ="aiche.htm";break;
	case 10:window.location ="advisory.htm";break;
	case 11:window.location ="research.htm";break;
	case 12:window.location ="seminars.htm";break;
	case 13:window.location ="facilities.htm";break;
	case 14:window.location ="contact.htm";break;
}
}

function whystudy() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 	case 1:window.location ="#MISSION";break;
 	case 2:window.location ="#OBJECTIVES";break;
 	case 3:window.location ="#PROGRAMS";break;
	case 4:window.location ="#PEOPLE";break;
	case 5:window.location ="#LOCATION";break;

}
}

function course() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 	case 1:window.open("http://www.eng.uah.edu/~taconik/");break;
 	case 2:window.open("../courses/che244");break;
 	case 3:window.open("../courses/che294/");break;
	case 4:window.open("http://www.che.uah.edu/courses/che295s01/");break;
	case 5:window.open("../courses/che344");break;
	case 6:window.open("../courses/che440");break;
	case 7:window.open("http://www.che.uah.edu/courses/che443f99/");break;
	case 8:window.open("../courses/che440");break;
	case 9:window.open("../courses/che440");break;
	case 10:window.open("http://bioinfo.uah.edu/bioseparations/");break;
	case 11:window.open("http://www.che.uah.edu/courses/che494/");break;
	case 12:window.open("http://www.che.uah.edu/courses/che443f99/");break;
 	case 13:window.open("http://www.che.uah.edu/courses/che294/");break;
	case 14:window.open("http://www.che.uah.edu/courses/che295s01/");break;
	case 15:window.open("../courses/che448/");break;
	case 16:window.open("http://www.che.uah.edu/courses/che440s03/");break;
	case 17:window.open("http://www.che.uah.edu/courses/che443f99/");break;
	case 18:window.open("../../courseware/che460-Fall2006/");break;
	case 19:window.open("../courses/che461/");break;
	case 20:window.open("http://www.che.uah.edu/courses/che494/");break;
	case 21:window.open("http://www.che.uah.edu/courses/che494/");break;
}
}


function faculty() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 case 1:window.open("http://www.che.uah.edu/faculty/cerro/Cerro.html");break;
 case 2:window.open("http://www.che.uah.edu/faculty/chen/");break;
 case 3:window.open("http://www.che.uah.edu/faculty/chittur/");break;
 case 4:window.open("http://www.che.uah.edu/faculty/smith/");break;
 case 5:window.open("http://www.che.uah.edu/faculty/taconi/");break;
 case 6:window.open("http://chemistry.uah.edu/Faculty/weimer/");break;
}
}

function apply() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
	case 1:window.location ="#apply";break;
 	case 2:window.location ="#status";break;
 	case 3:window.open("http://www.uah.edu/HTML/Admissions/index.html");break;
	case 4:window.open("http://www.uah.edu/HTML/Academics/Grad/index.html");break;
}
}

function alumni() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 	case 1:window.location ="#2001";break;
 	case 2:window.location ="#2000";break;
 	case 3:window.location ="#1999";break;
	case 4:window.location ="#1998";break;
	case 5:window.location ="#1997";break;
	case 6:window.location ="#1996";break;
	case 7:window.location ="#1995";break;
	case 8:window.location ="#1994";break;
	case 9:window.location ="#1993";break;

}
}

function iab() {
var pick = document.forms.form1.links.selectedIndex;
switch (pick)
{
 	case 1:window.open("http://www.che.uah.edu/iab/first.html");break;
 	case 2:window.open("http://www.che.uah.edu/iab/iabapr00.html");break;
	case 3:window.open("http://www.che.uah.edu/iab/iabsep00.html");break;
 	case 4:window.open("http://www.che.uah.edu/iab/iabfeb01.html");break;
 	case 5:window.open("http://www.che.uah.edu/iab/iabsep00.html");break;
 	case 6:window.open("http://www.che.uah.edu/iab/iabmar02.html");break;
	case 7:window.open("http://www.che.uah.edu/iab/iabsep02.html");break;
	case 8:window.open("http://www.che.uah.edu/iab/iabmar03.html");break;

}
}

function Print()
{
	var VBS = false;
	if (window.print) window.print();
	else if (VBS) printIt();
	else alert('This script does not work in your browser');
}


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=700,height=600,left=200,top=25,scrollbars=yes');
return false;
}


function popup1(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=700,height=300,left=200,top=25,scrollbars=yes');
return false;
}

picture1=new Array(
"./images/home1/home1.jpg",
"./images/home1/home2.jpg");
home1=Math.floor(picture1.length*Math.random());
home1='<IMG SRC="./'+ picture1[home1]+ '" BORDER=0>';

picture2=new Array(
"./images/home2/home3.jpg",
"./images/home2/home4.jpg");
home2=Math.floor(picture2.length*Math.random());
home2='<IMG SRC="./'+ picture2[home2]+ '" BORDER=0>';



	
