var atmeneti_class_name;

function kerdes_dialog(kerdesstr,gostr)
{
 var where_to= confirm(kerdesstr);
 if (where_to==true)
 {
   window.location=gostr;
 }
}

function trsel(obj,st){
	if (st=="on") {
		atmeneti_class_name=obj.className;
		obj.className='tr_sel';
	} else
	{
		obj.className=atmeneti_class_name;
	}
}

function go(gostr){
	window.location=gostr;
}

function del_id_value(id){
	document.getElementById(id).value="";
}

function hide_id(id){
	document.getElementById(id).style.visibility="hidden";
}

function chg_td_class(obj,new_classname){
		obj.className=new_classname;
}

function chg_sorszam(id,new_sorsz,menu){
	window.location='index.php?act=chg_s&menu='+menu+'&id='+id+'&ns='+new_sorsz;

}


function chg_class(Elem, myClass) {
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	elem.className = myClass;
}

