// Közös Javascript rutinok gyűjteménye

function GotoPage(pUrl, pMenuId){
if(window.document.frm_main) {
	window.document.frm_main.menu_param.value=pMenuId;
	window.document.frm_main.action=pUrl;
	window.document.frm_main.submit();
} else
	alert("Hibás hívás!"); 
}

function cmb_OnChg() {
	if(window.document.frm_main) {
		window.document.frm_main.kateg_jelol_proba_change.value='CSÁNGESZ';
		window.document.frm_main.submit();	
	}
}

// Radiobutton onClick eventje hívja meg ezt a függvényt
function RadioToggled(pValue) {
	if(typeof(pValue)!="undefined") { 
		if(window.document.frm_main) {
			window.document.frm_main.submit();
		}

	}
}

function RadioToggled_Example(pValue) {
	if(typeof(pValue)!="undefined") { 
		if(window.document.frm_main) {
			myObj = document.getElementById("hideTr");
			myObj2 = document.getElementById("hideTr2");
			myObj3 = document.getElementById("hideTr3");
			
			if(pValue=="ceges"){
				myObj.style.visibility = "visible";
				myObj2.style.visibility = "visible";
				myObj3.style.visibility = "visible";
			} else {
				myObj.style.visibility = "hidden";
				myObj2.style.visibility = "hidden";
				myObj3.style.visibility = "hidden";
			}

		}

	}
}

// Checkbox onClick eventje hívja meg ezt a függvényt
function CheckboxToggled(pValue) {
	if(typeof(pValue)!="undefined") { 
		if(window.document.frm_main) {
			window.document.frm_main.submit();
		}

	}
}
