﻿function viewpic(nm,src,x,y,cap) {
	sb=0;
		if ((x>1000)||(y>718)) {
		if (x>1000){x=1000;}else{x+=22;}
		if (y>718){y=718;}else{y+=22;}
		sb=1;
		}
	// if (wh) {try{wh.close();}catch(n){;}};
      yy = y + 18;
	w=window.open("","","width="+x+",height="+yy+",scrollbars="+sb+",resizable=1,top=0,left=0");
	d=w.document;
	d.open();
	d.writeln("<title>"+nm+"&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;Eszem-Iszom</title>");
	d.writeln("<body bgcolor=#f86503 style=font-family:arial;font-size=12;color=black marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 onkeypress='if(event.keyCode==27)window.close();' onload='window.focus();'><center>");
	d.writeln("<img src='"+src+"' onclick='window.close()'>");
	d.writeln(cap);
	d.writeln("</body>");
	d.close();
	wh=w;
	}

function leapTo (link)
   {
   var new_url=link;
   if (  (new_url != "")  &&  (new_url != null)  )
      window.location=new_url;
   else
      alert("\nYou must make a selection.");
   }

function l1(obj) {
this.css=eval('document.all.'+obj+'.style')                                                    
this.css.top = 5;
}

function jobscrol()
{scrollxpos = scrollxpos + 2; scrollTo(scrollxpos,0);
if (scrollxpos<148) setTimeout("jobscrol()",1);}
function balscrol()
{scrollxpos = scrollxpos - 2; scroll(scrollxpos,0);
if (scrollxpos>0) setTimeout("balscrol()",1);}
function jobbraugras()
{ scrollxpos = 0; jobscrol();}
function balraugras()
{balscrol();}

function megyenev(megye){
var s;
if (megye=="bud") {s="Budapest"}
if (megye=="bar") {s="Baranya"}
if (megye=="bkk") {s="Bács-Kiskun"}
if (megye=="bek") {s="Békés"}
if (megye=="baz") {s="Borsod"}
if (megye=="cso") {s="Csongrád"}
if (megye=="fej") {s="Fejér"}
if (megye=="gys") {s="Győr-Sopron"}
if (megye=="haj") {s="Hajdú"}
if (megye=="hev") {s="Heves"}
if (megye=="kom") {s="Komárom"}
if (megye=="nog") {s="Nógrád"}
if (megye=="pes") {s="Pest"}
if (megye=="som") {s="Somogy"}
if (megye=="sza") {s="Szabolcs"}
if (megye=="szo") {s="Szolnok"}
if (megye=="tol") {s="Tolna"}
if (megye=="vas") {s="Vas"}
if (megye=="ves") {s="Veszprém"}
if (megye=="zal") {s="Zala"}
return s
}

function vx(range) {
	w=window.open("","enc"+range,"width=400,height=100,scrollbars=0,resizable=1,status=no,titlebar=no,menubar=no");
	w.location = "wencik.asp?R="+range;
	
}
function etterem_open(range) {
	w=window.open("","ett"+range,"top=0,left=0,width=790,height=screen.height-30,resizable=1,scrollbars=1,status=no,titlebar=no,menubar=no");
	w.location = "m.asp?D=EE&R="+range;
	
	}
function terkep_open(range,x,y) {
	t=window.open("","map"+range,"top=100,left=200,width=350,height=300,scrollbars=0,status=no,titlebar=no,menubar=no");
	t.location = "kisterkep.asp?R="+range+"&amp;x="+x+"&amp;y="+y
	}

function keresesi_szint_string(m) {
	s="<table cellpadding=1><tr><td>Keresés szintje: "+m+"</td></tr></table>"
	return s}
	
function teszt() {
	var elem=document.getElementById("jobb");
	elem.style.bgColor="#FFFFFF";
	/*alert(elem.style.bgColor);*/
	/*elem.innerHTML="asdasdasd"*/
	}

	