 //Clears the Inputs and Validation message from Volume fields
 //Function is called when either one of the Year fields is clicked
 function clearVolume(updateLimit){
   //alert(updateLimit);
   eval('document.bulletinsearch.volumes_from.value=""');
   eval('document.bulletinsearch.volumes_to.value=""');
   f3.disable();
   f4.disable();
   f3.enable();
   f4.enable();
   if(updateLimit == 'f1' && document.bulletinsearch.period_from.value != ""){
    //alert(document.bulletinsearch.period_to.value);
   	newlowyear = document.bulletinsearch.period_from.value;
	//alert(newlow);
	f2.remove(Validate.Numericality, {minimum: 1954, tooLowMessage:"There are no issues published before 1954"});
	f2.add(Validate.Numericality, { minimum: newlowyear, tooLowMessage: "You cannot end with a year earlier than " + newlowyear });
   }
   else if(updateLimit == 'f2' && document.bulletinsearch.period_to.value != ""){
   	//alert(document.bulletinsearch.period_to.value);
   	newhighyear = document.bulletinsearch.period_to.value;
	//alert(newhigh);
	f1.remove(Validate.Numericality, {maximum: 2009, tooHighMessage:"There are no issues published passed 2009"});
	f1.add(Validate.Numericality, { maximum: newhighyear, tooHighMessage: "You cannot start with a year passed " + newhighyear });
   }
 }
 
 //Clears the Inputs and Validation message from Year fields
 //Function is called when either one of the Volume fields is clicked
 function clearYear(updateLimit){
   eval('document.bulletinsearch.period_from.value=""');
   eval('document.bulletinsearch.period_to.value=""');
   f1.disable();
   f2.disable();
   f1.enable();
   f2.enable();
   if(updateLimit == 'f3' && document.bulletinsearch.volumes_from.value != ""){
    //alert(document.bulletinsearch.period_to.value);
   	newlowvolume = document.bulletinsearch.volumes_from.value;
	//alert(newlowvolume);
	f4.remove(Validate.Numericality, {minimum: 0, tooLowMessage:"There is no volume lower than 0"});
	f4.add(Validate.Numericality, { minimum: newlowvolume, tooLowMessage: "You cannot end with a volume before " + newlowvolume });
   }
   else if(updateLimit == 'f4' && document.bulletinsearch.volumes_to.value != ""){
   	//alert(document.bulletinsearch.period_to.value);
   	newhighvolume = document.bulletinsearch.volumes_to.value;
	//alert(newhighvolume);
	f3.remove(Validate.Numericality, {maximum: 50, tooHighMessage:"There is no volume higher than 50"});
	f3.add(Validate.Numericality, { maximum: newhighvolume, tooHighMessage: "You cannot start with a volume passed " + newhighvolume });
   }
 }