function giveMeTheDOM() {
if (document.getElementById || document.all || document.layers)
	{
	if (document.getElementById) {
		// Level 1 DOM code for all 5+ browsers
		//alert("Level 1 DOM code")
		var URL = document.form.site.options[document.form.site.selectedIndex].value;
		window.location.href = URL;
	   }
	   else if (document.all) {
		// Microsoft DOM code for IE 4
		//alert("Microsoft DOM code")
		var URL = document.all.selectForm.site.options.value;
		window.location.href = URL;
	   }
	   else if (document.layers) {
		// Netscape DOM code for NN 4
		//alert("Netscape DOM code")
		var URL = window.document.content.document.form.site.options[window.document.content.document.form.site.selectedIndex].value;
		window.location.href = URL;
	   }
	}
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function windowManage(url, name, args) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name,args);
} else {
if (!popupWin.closed){ 
popupWin.location.href = url;
} else {
popupWin = window.open(url, name,args);
}
}
popupWin.focus();
}

function choosePic() {
	// code for NN 4
	if (document.layers) {
	// Find out if the browser uses Netscape DOM code for NN 4
	// create and set file path variable
	var myFilePath = "publicImgs/random/ns/"
	// create picture array by file name. In this scenario, you can only use images of a standard size.
	myPix = new Array ("ns_AnnaYuan_01.jpg",
	"ns_AnnaYuan_02.jpg",
	"ns_AnnaYuan_03.jpg",
	"ns_AnnaYuan_04.jpg",
	"ns_AnnaYuan_05.jpg",
	"ns_ArmanYanson_01.jpg",
	"ns_ArmanYanson_02.jpg",
	"ns_ArmanYanson_03.jpg",
	"ns_KateDick_01.jpg",
	"ns_KateDick_02.jpg",
	"ns_MichaelBarry_01.jpg",
	"ns_MichaelBarry_02.jpg",
	"ns_MichaelBarry_03.jpg",
	"ns_QuangNhutTran_01.jpg",
	"ns_QuangNhutTran_02.jpg",
	"ns_RodneyZandbergs_01.jpg",
	"ns_RuthFleishman_01.jpg",
	"ns_RyanWard_01.jpg",
	"ns_SarahDrechsler_01.jpg",
	"ns_SarahDrechsler_02.jpg",
	"ns_SarahDrechsler_03.jpg",
	"ns_ThangLe_01.jpg",
	"ns_ThangLe_02.jpg")
	// random image chooser
	imgNum = myPix.length

	if (document.images){
		/*randomNum=Math.floor((Math.random()*10))%7*/
		ranNum1=Math.floor(Math.random() * imgNum)
		document.pic1.src=myFilePath+myPix[ranNum1]
	
		ranNum2=Math.floor(Math.random() * imgNum)
			if (ranNum2 == ranNum1){
			ranNum2 = parseInt(ranNum2 + 1);
				if (ranNum2 == imgNum){
				ranNum2 = 0;
				}
			}
			document.pic2.src=myFilePath+myPix[ranNum2]
		}
	}
	//for any browser post NN 4.7 ...
	else {
	// create and set file path variable
	var myFilePath = "publicImgs/random/"
	// Create new 3D Array using file name string and image height as integer
	arrMyPix = new Array (),
	arrMyPix[0] = new Array("annaYuan_01.jpg",215);
	arrMyPix[1] = new Array("annaYuan_02.jpg",167);
	arrMyPix[2] = new Array("annaYuan_03.jpg",167);
	arrMyPix[3] = new Array("annaYuan_04.jpg",215);
	arrMyPix[4] = new Array("annaYuan_05.jpg",208);
	arrMyPix[5] = new Array("annaYuan_06.jpg",215);
	arrMyPix[6] = new Array("annaYuan_07.jpg",215);
	arrMyPix[7] = new Array("annaYuan_08.jpg",215);
	arrMyPix[8] = new Array("annaYuan_09.jpg",215);
	arrMyPix[9] = new Array("armanYanson_01.jpg",209);
	arrMyPix[10] = new Array("armanYanson_02.jpg",167);
	arrMyPix[11] = new Array("armanYanson_03.jpg",192);
	arrMyPix[12] = new Array("devenMarriner_01.jpg",189);
	arrMyPix[13] = new Array("dylan_phayer_01.jpg",217);
	arrMyPix[14] = new Array("emmaByrnes_01.jpg",156);
	arrMyPix[15] = new Array("KateDick_01.jpg",115);
	arrMyPix[16] = new Array("KateDick_02.jpg",115);
	arrMyPix[17] = new Array("KateDick_03.jpg",148);
	arrMyPix[18] = new Array("KateDick_04.jpg",193);
	arrMyPix[19] = new Array("KateDick_05.jpg",149);
	arrMyPix[20] = new Array("KateMattTamara_01.jpg",215);
	arrMyPix[21] = new Array("michaelBarry_01.jpg",167);
	arrMyPix[22] = new Array("michaelBarry_02.jpg",167);
	arrMyPix[23] = new Array("michaelBarry_03.jpg",167);
	arrMyPix[24] = new Array("michaelBarry_04.jpg",192);
	arrMyPix[25] = new Array("michaelBarry_05.jpg",192);
	arrMyPix[26] = new Array("michaelBarry_06.jpg",192);
	arrMyPix[27] = new Array("quangNhutTran_01.jpg",185);
	arrMyPix[28] = new Array("quangNhutTran_02.jpg",185);
	arrMyPix[29] = new Array("quangNhutTran_03.jpg",167);
	arrMyPix[30] = new Array("quangNhutTran_04.jpg",167);
	arrMyPix[31] = new Array("rodneyZandbergs_01.jpg",184);
	arrMyPix[32] = new Array("ruthFleishman_01.jpg",216);
	arrMyPix[33] = new Array("ruthFleishman_02.jpg",216);
	arrMyPix[34] = new Array("ruthFleishman_03.jpg",216);
	arrMyPix[35] = new Array("RyanWard_01.jpg",149);
	arrMyPix[36] = new Array("sarahDrechsler_01.jpg",180);
	arrMyPix[37] = new Array("sarahDrechsler_02.jpg",180);
	arrMyPix[38] = new Array("sarahDrechsler_03.jpg",167);
	arrMyPix[39] = new Array("sarahDrechsler_04.jpg",167);
	arrMyPix[40] = new Array("thangLe_01.jpg",230);
	arrMyPix[41] = new Array("toddWarnock_01.jpg",216);
	arrMyPix[42] = new Array("tomDrozd_01.jpg",178);	
	imgNum = arrMyPix.length
	if (document.images){
		//randomNum=Math.floor((Math.random()*10))%7*/
		ranNum1=Math.floor(Math.random() * imgNum)
		//set image name
		document.pic1.src=myFilePath+arrMyPix[ranNum1][0]
		//set image height
		document.pic1.height=parseInt(arrMyPix[ranNum1][1])
	
		
		}
	}
}
