	function hover(any) {
		if(false) {
		if(any=='any') {
			document.getElementById('liany').className='lion';
			document.getElementById('liall').className='lioff';
		} else {
			document.getElementById('liany').className='lioff';
			document.getElementById('liall').className='lion';		
		}}
	}

	function reset() {
		var any=document.getElementById('inputany').value;
		if(any=='any') {
			document.getElementById('liany').className='lion';
			document.getElementById('liall').className='lioff';
		} else {
			document.getElementById('liany').className='lioff';
			document.getElementById('liall').className='lion';		
		}
	}

	function setany(any) {
		document.getElementById('inputany').value=any;
		reset();
	}
	
	function set_pcode_ir1() {
		var pcodeIndex = document.forms.pcode.ir1.selectedIndex;
		var pcode = document.forms.pcode.ir1.options[pcodeIndex].value;
		document.forms.pcode.pcode.value = pcode;
		document.location='/index.html?search='+document.forms.pcode.search.value+'&allwords='+document.forms.pcode.allwords.value+'&pcode='+document.forms.pcode.pcode.value;
	}

	function set_pcode_ir2() {
		var pcodeIndex = document.forms.pcode.ir2.selectedIndex;
		var pcode = document.forms.pcode.ir2.options[pcodeIndex].value;
		document.forms.pcode.pcode.value = pcode;
		document.location='/index.html?search='+document.forms.pcode.search.value+'&allwords='+document.forms.pcode.allwords.value+'&pcode='+document.forms.pcode.pcode.value;
	}

	function postit() {
		if(document.wt.search.value!='') {
			if(document.wt.ir1.value!='' || document.wt.ir2.value!='') {
				if(document.wt.ir1.value!='' && document.wt.ir2.value!='') { 
					alert('Kérem, hogy csak egyféle területre szűkítsen');
					return false;
				} else {
					document.wt.action='index_search2.php';
					if(document.wt.ir1.value!='') {
						document.wt.pcode.value=document.wt.ir1.value;
					} else {
						document.wt.pcode.value=document.wt.ir2.value;
					}
					document.wt.submit();
				}
			} else {
				document.wt.submit();
			}
		}
	}
	
	function postit2() {
		if(document.wt.search.value!='') {
			if(document.wt.ir1.value!='' || document.wt.ir2.value!='') {
				if(document.wt.ir1.value!='' && document.wt.ir2.value!='') { 
					alert('Kérem, hogy csak egyféle területre szűkítsen');
					
				} else {
					if(document.wt.ir1.value!='') {
						document.wt.pcode.value=document.wt.ir1.value;
					} else {
						document.wt.pcode.value=document.wt.ir2.value;
					}
					document.location='/index.html?search='+document.wt.search.value+'&allwords='+document.wt.allwords.value+'&pcode='+document.wt.pcode.value;
				}
			} else {
				document.location='/index.html?search='+document.wt.search.value+'&allwords='+document.wt.allwords.value;
			}
		}
		return false;
	}
	
	
	function postit3() {
		if(document.wt.search.value!='') {
    		    document.location='/index.html?search='+document.wt.search.value+'&allwords='+document.wt.allwords.value;
		}
		return false;
	}	