
function newcheckform(inner,myform,fields,toreturn,compulsory,one_of,oneofs,thehighlight,thebase,onehightlight)
{
for (var i=0; i<fields.length; i++)
			{
				document.getElementById(fields[i]).style.background= thebase;
			}

			if (oneofs>0 && one_of.length==oneofs)
			{
				for (var i=0; i<one_of.length; i++)
				{
					document.getElementById(one_of[i]).style.background= onehightlight;
				}
				toreturn = false;
				document.getElementById("formfeedback").style.display='block';
			}


			if (compulsory.length>0)
			{
				for (var i=0; i<compulsory.length; i++)
				{
					document.getElementById(compulsory[i]).style.background= thehighlight;
				}
				toreturn = false;
				document.getElementById("formfeedback2").style.display='block';
			}
			return toreturn;
		}
