<!--
function YY_CalculateForm() { //v3.01

//copyright (c)1999-2000 Yaromat.com

  var args=YY_CalculateForm.arguments;

  var myResult=""; var myField="0";

  if (document.all){eval("args[0]=args[0].replace(/.layers/gi, '.all');");}

  for (var i=3; i<args.length; i++){

    if(args[i].charAt(0)!="#"){

      myResult=myResult+args[i];

    }else{

      myField=eval(args[0]+'.'+ args[i].substring(1)+'.value'); if(myField=="")myField="0";

      myResult=myResult+myField;

    }

  }

  with (Math) {

    var myExpo = pow(10, args[2]);

    var myStr = round(myExpo*eval(myResult))/myExpo;

  }

  eval(args[0]+'.'+args[1]+'.value='+myStr);

}
function checkRequired(myform) {

	var Imie=document.myform.imie1.value;
	var Miejscowosc=document.myform.miejscowosc1.value;
	var KodPocztowy=document.myform.kod1.value;
  	var Ulica=document.myform.ulica1.value;
  	var Mail=document.myform.mail1.value;
	var NIP=document.myform.nip1.value;
	var dataRight=true;

	if (Imie=="") {

	 document.getElementById('imie1').style.color="red";

	 	dataRight=false;

	 }
	 if (Miejscowosc=="") {
     
	 document.getElementById('miejscowosc1').style.color="red";
	 
	 	dataRight=false;

	}
	if (KodPocztowy=="") {
     
	 document.getElementById('kod1').style.color="red";
	 
	 dataRight=false;

	}
	if (Ulica=="") {
     
	 document.getElementById('ulica1').style.color="red";
	 
	 dataRight=false;

	}
	if (Mail=="") {
     
	 document.getElementById('mail1').style.color="red";
	 
	 dataRight=false;
	 

	}
	if (NIP=="") {
     
	 document.getElementById('nip1').style.color="red";
	 
	 dataRight=false;
	 

	}

	 


	if (dataRight==false) 

		window.alert("Wymagane jest wypełnienie wszystkich pól oznaczonych gwiazdką *");

	

	return dataRight;



}

