/*
 * reset Advanced Form to default values
 */
function resetAdvanced(sdate,edate) {
	if (document.getElementById('wildyes')) {
		document.getElementById('wildyes').checked=true;
	}
	if (document.getElementById('defopand')) {
		document.getElementById('defopand').checked=true;
	}
	if (document.suche.co) {
		document.suche.co.selectedIndex=0;
	}
	if (document.suche.plz) {
		document.suche.plz.selectedIndex=0;
	}
	if (document.getElementById('pwa')) {
		document.getElementById('pwa').checked=true;
	}
	if (document.suche.sdate) {
		if (sdate) {
			document.suche.sdate.value=sdate;
		}
	}
	if (document.suche.edate) {
		if (edate) {
		document.suche.edate.value=edate;
		}
	}
}


	
/*
 *  F?r Einkaufsf?hrer
 *  switch zip-select when country-select changes
 */
function checkZip() {
	// de is 1
 if (document.suche.co) {	 
	if (document.suche.co.selectedIndex!=1) {
		// - is 0
		if (document.suche.plz) {
			document.suche.plz.selectedIndex=0;
		}
	}
 }
}

/*
 *  F?r Einkaufsf?hrer
 *  switch country-select when zip-select changes
 */
function checkCountry() {
  if (document.suche.plz) {
	// - is 0
	if (document.suche.plz.selectedIndex!=0) {
		// de is 1
		if (document.suche.co) {
			document.suche.co.selectedIndex=1;
		}
	}
  }
}
