/* 
	MSH Quickfind Javascript
	based on regular PaperThin elements with some alterations
	compilation by Nina Breygin 04/015/08
*/
		
// for list of projects
	function formHandler1()
	{
		var url1 = "index.cfm";
		var strSelectName1 = "list_projects";
		if (document.all)		// IE
		{
			if (window.document.all(strSelectName1).selectedIndex == -1)
				alert ("Please select a value from the list");
			else
				{
					url1 = window.document.all(strSelectName1).value;
					window.location.href = url1;
				}
		}
		else
		{
			var strFormName1= "Quick_project";
			var refForm1 = eval("document."+strFormName1);
			var refItem1 = eval("refForm1."+strSelectName1);
			var iSelection1 = refItem1.selectedIndex;
			if (iSelection1 == -1)
				alert ("Please select a value from the list");
			else
			{
				url1 = refItem1.options[iSelection1].value;
				window.location.href = url1;
			}
		}
	}
// for list of expertise	
	function formHandler2()
	{
		var url2 = "index.cfm";
		var strSelectName2 = "list_expertise";
		if (document.all)		// IE
		{
			if (window.document.all(strSelectName2).selectedIndex == -1)
				alert ("Please select a value from the list");
			else
				{
					url2 = window.document.all(strSelectName2).value;
					window.location.href = url2;
				}
		}
		else
		{
			var strFormName2= "Quick_expertise";
			var refForm2 = eval("document."+strFormName2);
			var refItem2 = eval("refForm2."+strSelectName2);
			var iSelection2 = refItem2.selectedIndex;
			if (iSelection2 == -1)
				alert ("Please select a value from the list");
			else
			{
				url2 = refItem2.options[iSelection2].value;
				window.location.href = url2;
			}
		}
	}
