function testdata(mujform){
	
	var stav=0;
	var varovani='Free mandatory field';
	regularni1=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/; 
	regularni2=/^[0-9 \+]{6,20}$/; 
	if  (mujform.firstname.value ==''){
		if (stav==0){
			mujform.firstname.focus();
			mujform.firstname.select();
			stav=1;
		}
	}
	if  (mujform.surname.value ==''){
		if (stav==0){
			mujform.surname.focus();
			mujform.surname.select();
			stav=1;
		}
	}

	if  (mujform.company.value ==''){
		if (stav==0){
			mujform.company.focus();
			mujform.company.select();
			stav=1;
		}
	}
	if  (mujform.telephone.value ==''){
		if (stav==0){
			mujform.telephone.focus();
			mujform.telephone.select();
			stav=1;
		}
	}
	else if(stav==0 && !regularni2.test(mujform.telephone.value)){
		varovani='Bad format phone number';
		stav=1;
	}
	if  (mujform.email.value =='@'){
		if (stav==0){
			mujform.email.focus();
			mujform.email.select();
			stav=1;
		}
	}
	else if (stav==0 && !regularni1.test(mujform.email.value)){
		varovani='Bad email format';
		stav=1;
	}
	
	if (mujform.kickoffs.checked == false && mujform.productlaunches.checked == false && mujform.boardlevel.checked == false && mujform.salesincentives.checked == false && mujform.cultural.checked == false && mujform.training.checked == false && mujform.financial.checked == false && mujform.venue.checked == false && mujform.group.checked == false && mujform.online.checked == false && mujform.partner.checked == false && mujform.project.checked == false && mujform.interestOther.value ==''){
		if (stav==0){
			mujform.kickoffs.focus();
			mujform.kickoffs.select();
			stav=1;
		}
	}

	if(stav==1) {
		alert(varovani);
		return false;
	}
	else return true;
}



 $(document).ready(function() {
   // put all your jQuery goodness in here.
/*
      $("#hp-block1, #hp-block2, #hp-block3").fadeTo("fast", 0.79);
      $("#hp-block1, #hp-block2, #hp-block3").hover(function(){
      $(this).fadeTo("fast", 0.90);
         },function(){
      $(this).fadeTo("fast", 0.79);
      });
  
      $(".reference").fadeTo("fast", 0.79);  
      $(".reference").hover(function(){
      $(this).fadeTo("fast", 0.99);
      },function(){
      $(this).fadeTo("fast", 0.79);
      });

*/  


 });







