
	function changeBack(obj, defval) {
		switch(obj.className) {
			case "vf_menu_normal":
				obj.className = "vf_menu_selected";
			break;
			
			case "vf_menu_selected":
				if (defval!="vf_menu_selected")	obj.className = "vf_menu_normal";
			break;
		}
	}
	
	
var NS = (navigator.appName=="Netscape")?true:false;

function ujablak(mit,hova,w,h) {
  ablakneve = window.open(mit, hova, "resizable=1,status=0,menubar=0,scrollbars=yes,location=0,toolbar=0,width="+w+",height="+h+",left=0,top=0");
  ablakneve.moveTo((screen.width/2)-(w/2),(screen.height/2)-(h/2));
}

function teljesablak(mit,hova,kepx,kepy) {
  kepx = parseInt(kepx) + 20;
  kepy = parseInt(kepy) + 25;
  ablakneve = window.open(mit, hova, "menubar=0,width="+kepx+",height="+kepy+",left=0,top=0");
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
  ablakneve.moveTo((screen.width/2)-(kepx/2),(screen.height/2)-(kepy/2));
}

function teljesablak2(mit,hova) {
  ablakneve = window.open(mit, hova, "menubar=0,width=10,height=10,left=0,top=0");
}

function ablakbezar(){
window.close();
}

function ablak_atmeretezes(x,y) {
iWidth = (NS)?window.innerWidth:document.body.clientWidth;
iHeight = (NS)?window.innerHeight:document.body.clientHeight;
iWidth = x - iWidth;
iHeight = y - iHeight;
window.resizeBy(iWidth, iHeight);
self.focus();
}

function okbe(){
document.images["okgomb"].src = "../html/OK_lenyomva.gif";
}

function okki(){
document.images["okgomb"].src = "../html/OK_alap.gif";
}

function foto_feltoltes_submit() {
/*	fotot_tolt=1;
	waitWin=window.open('ip_galeria_nagykep.php?kep=../html_demo/keremvarjon.gif','waitWin','menubar=0,scrollbars=no,left=0,top=0,width=0,height=0');*/
}

function foto_feltoltes_kisablak_tunjonel(){
        /*if (fotot_tolt == 1){
        	waitWin.close()
        }
        fotot_tolt = 0;*/
}


