
	function popup(theURL,winName,setUp){
		mywindow=window.open(theURL,winName,setUp);
	}


	
	function checkrequired(which) 
	{

		//alert(which.where_found[0].checked);
		
		var pass=true;
		
		// set var radio_choice to false
		var radio_choice = false;
		
		// Loop from zero to the one minus the number of radio button selections
		for (counter = 0; counter < which.where_found.length; counter++)
		{
			// If a radio button has been selected it will return true
			// (If not it will return false)
			if (which.where_found[counter].checked)
			{
				radio_choice = true; 
				
			}
		}
		if (!radio_choice)
		{
			alert('Where did you hear about us?');
			return false;
		}



		if (document.images) 
		{
			for (i=0;i<which.length;i++) 
			{
				var tempobj=which.elements[i];
	
				//if (tempobj.name.substring(0,8)=="required") 




				if (tempobj.required) 
				{
					
	
					if (((tempobj.type=="text"||tempobj.type=="textarea")&&
						tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s" &&
						tempobj.selectedIndex==0)) 
					{
						pass=false;
						break;
					}
				}

			}
		}
		
		if (!pass) 
		{
			//shortFieldName=tempobj.name.substring(8,30).toUpperCase();
			shortFieldName=tempobj.required.toUpperCase();
	
	
			alert("Please make sure the "+shortFieldName+" field was properly completed.");
			return false;
		}
		else
			return true;
	}


