

	function IsEmpty(inputStr, FormName, ElementName, Label)
	{
		if (Trim(inputStr) == "")
		{ 
			alert(Label + " is required to complete this form!");
			eval("self.parent.document." + FormName+ "." + ElementName + ".focus();")
			eval("self.parent.document." + FormName+ "." + ElementName + ".select();")
			return true;
		}
		          
		return false;
	}

	function formHandler()
	{
		var list = eval("document.cngColor.colorscheme")
		var frmValue = list.options[list.selectedIndex].value
		if (frmValue != "")
		{
			var URL = frmValue
			window.location.href = URL;
		}
	}

	function validateUser()
	{
		var glist = eval("document.validateVisit.groom")
		var grmValue = glist.options[glist.selectedIndex].value
		var blist = eval("document.validateVisit.bride")
		var brdValue = blist.options[blist.selectedIndex].value
		var daylist = eval("document.validateVisit.day")
		var dayValue = daylist.options[daylist.selectedIndex].value
		var monlist = eval("document.validateVisit.month")
		var monValue = monlist.options[monlist.selectedIndex].value
		var yearlist = eval("document.validateVisit.year")
		var yearValue = yearlist.options[yearlist.selectedIndex].value
		if (grmValue != "" && brdValue != "" && dayValue != "" && monValue != "" && yearValue != "" )
		{
			var ename = grmValue + brdValue + monValue + "-" + dayValue + "-" + yearValue

			//ADD FILENAMES TO ARRAY BELOW
			var vname = new Array()
			vname['HandyJones1-1-2000'] = 'Y';
			vname['JohnsonMiller1-2-2000'] = 'Y';

			//alert("Invalid Name")
			var lcName = new String(ename);
			lcName.toLowerCase();

			if( vname[lcName] ) 
			{
				alert("Validation successful. " + grmValue + "/" + brdValue + " wedding photos found. Click OK to go to photos.")
				var URL = "http://www.devdude.net/" + ename
				window.location.href = URL;
				return true;
			}
			else
			{
				alert("Invalid Name"); return false;
			}

		}
		else
		{
			alert("All drop downs must be selected!")
		}
	}