function redall()
{
if (document.contact.fullname.value=="") document.contact.fullname.style.backgroundColor ="#FFCCCC"; else  document.contact.fullname.style.backgroundColor ="#FFFFFF";
if (document.contact.mail.value=="") document.contact.mail.style.backgroundColor ="#FFCCCC"; else document.contact.mail.style.backgroundColor ="#FFFFFF";
if (document.contact.subject.value=="") document.contact.subject.style.backgroundColor ="#FFCCCC"; else document.contact.subject.style.backgroundColor ="#FFFFFF";
if (document.contact.comment.value=="") document.contact.comment.style.backgroundColor ="#FFCCCC"; else document.contact.comment.style.backgroundColor ="#FFFFFF";
if (document.contact.val.value=="") document.contact.val.style.backgroundColor ="#FFCCCC"; else document.contact.val.style.backgroundColor ="#FFFFFF";
 if(document.contact.feedbt[0].checked==false && document.contact.feedbt[1].checked==false && document.contact.feedbt[2].checked==false && document.contact.feedbt[3].checked==false) document.getElementById('rcttype').style.backgroundColor ="#FFCCCC"; else document.getElementById('rcttype').style.backgroundColor ="";
 if(document.contact.feedbt[3].checked==true && document.contact.feedbtext.value=="")
 {
   document.getElementById('other').style.display='';
   document.contact.feedbtext.style.backgroundColor ="#FFCCCC";
 }
 else {
 document.getElementById('rcttype').style.backgroundColor ="";
document.getElementById('other').style.display='none'; }
}

function verif_contact()
{
if (document.contact.fullname.value=="")
{
alert("<?php echo $form_fullnC1; ?>");
redall();
document.contact.fullname.focus();
return false;
}
else if (document.contact.mail.value=="")
{
alert("<?php echo $form_mlC1; ?>");
redall();
document.contact.mail.focus();
return false;
}
else if(document.contact.mail.value!="")
	{
		var isok=false;
		 for (var j=1 ; j<(document.contact.mail.value.length) ; j++)
		  {
			if (document.contact.mail.value.charAt(j)=='@')
			{
			  if (j<(document.contact.mail.value.length-4))
			  {
				for (var k=j ; k<(document.contact.mail.value.length-2) ; k++)
				{
				  if (document.contact.mail.value.charAt(k)=='.') isok=true;

				  }
				}
			  }
			}

	  if (isok==false)
				  {
					alert('Invalid e-mail. Try again');
		   			document.contact.mail.focus();
		   			return false;

                   }
	 }
else if(document.contact.feedbt[0].checked==false && document.contact.feedbt[1].checked==false && document.contact.feedbt[2].checked==false && document.contact.feedbt[3].checked==false)
 	{
	alert("<?php echo $from_reactC1; ?>");
	redall();
   	document.contact.feedbt[0].focus();
   	return false;
	}
else if(document.contact.feedbt[3].checked==true && document.contact.feedbtext.value=="")
 	{
	alert("<?php echo $from_reactC1; ?>");
	redall();
   	document.contact.feedbt[3].focus();
   	return false;
	}
else if (document.contact.subject.value=="")
{
alert("<?php echo $form_subjC1; ?>");
redall();
document.contact.subject.focus();
return false;
}
else if (document.contact.comment.value=="")
{
alert("<?php echo $form_commentC; ?>");
redall();
document.contact.comment.focus();
return false;
}else if (document.contact.val.value=="")
{
alert("<?php echo $form_valt; ?>");
redall();
document.contact.val.focus();
return false;
}
else return true;

}
