function checkForm ( theForm )
{
//	alert("hello");
	for(i = 0; i < inputs.length; i++)
	{
		this_input = theForm.elements[(""+inputs[i][0]+"")];
		if(inputs[i][1] == "text")
			var bool_to_check = ( this_input.value == null || this_input.value == "" );
		else if(inputs[i][1] == "select")
			var bool_to_check = ( this_input.selectedIndex == 0 );
		else if(inputs[i][1] == "checkbox")
			var bool_to_check = ( !this_input.checked );
		else if(inputs[i][1] == "radio")
		{
			var tmp_bool = true;
			for(j = 0; j < this_input.length; j++)
			{
				if(this_input[j].checked)
					tmp_bool = false;
			}
			var bool_to_check = tmp_bool;
		}
		if(bool_to_check)
		{
			alert(inputs[i][2]);
			if(inputs[i][1] != "radio")
				this_input.focus();
			return false;
		}
	}
	return true;
}
