function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function winClose()
{    
  if(viewWindow != null) viewWindow.close() 
}

function CheckCertifiers(list1,list2) {
	if ((list1.options[list1.selectedIndex].value == "0") || (list2.options[list2.selectedIndex].value == "0"))
	{
		alert("Please choose a certifier to compare from each dropdown!");
		return false;
	}
	else if (list1.options[list1.selectedIndex].value == list2.options[list2.selectedIndex].value)
	{
		alert ("You cannot compare the same certifier. Please choose two different certifiers to compare.");
		return false;
	}
	else {
		return true;
	}
}
