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_head.jpg",
	"ns_head2.jpg",
	"ns_head3.jpg",
	"ns_head4.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("head2.jpg",93);
	arrMyPix[1] = new Array("head3.jpg",93);
	arrMyPix[2] = new Array("head4.jpg",93);
	
	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])
	
		
		}
	}
}
