// General JavaScripts routines
//
// Created: 24.04.2008
// Updated: 20.05.2008 
// Function pop_print_parameters added for PLZ Finder
//
// Version 1.0.0

function fncCheckForm(objForm) {
  if (document.objForm.recipient.value == "") {
    alert("Please enter the recipient of the form");
    document.objForm.recipient.focus();
    return false;
  }
  return true;
}

function fncReset(objForm) {
    // this allows images to be used as reset "buttons"
	objForm.reset();
	return false;
}

function pop_print_parameters(f,file,w,h,titleofpage,lang)
	{
		self.name = "opener";
		if (f=="")
		{
			zip ='';
		}
		else
		{
			zip = f.zip.value;
		}
		titleofpage = escape(titleofpage);
		addedurl = "/php/frameset.php?src="+file+"&lang="+lang+"&zip="+zip+"&title="+titleofpage;
		ref = window.open(addedurl, Math.round(Math.random()*50000), "status=no,scrollbars=no,scrolling=0,resizable=no,width="+w+",height="+h+",top=10,left=10,locationbar=no");
	}
