// JavaScript Document
<!-- 
var ALLAPOT_UNINITIALIZED = 0;
var ALLAPOT_LOADING = 1;
var ALLAPOT_LOADED = 2;
var ALLAPOT_INTERACTIVE = 3;
var ALLAPOT_COMPLETE = 4;
var http_s = false;
var  loading = '<div align="center"><img src="/pic/loader.gif" /></div>';

// konstruktor

function AJAX_konstruktor() {
try {
	req = new XMLHttpRequest();
	} catch(err1) {
  	try {
	  req = new ActiveXObject("Msxml2.XMLHTTP");
	  } catch (err2) {
    	try {
	    req = new ActiveXObject("Microsoft.XMLHTTP");
    	} catch (err3) {
      req = false;
	    }
	  }
	}
return req;
}




// hirek belöltése és frissítése

function betolt(oldal,hova,p1) {
	var http_s = false;
	var http_s = AJAX_konstruktor();

	var myRand=parseInt(Math.random()*99999999);
 	var oldal_par = oldal+'?k='+p1+'&rand='+myRand;
	http_s.onreadystatechange = function() {
		if(http_s.readyState != ALLAPOT_COMPLETE) {
    	 	document.getElementById(hova).innerHTML = loading;
	    }
    	if ((http_s.readyState == ALLAPOT_COMPLETE) && (http_s.status == 200)) {
			document.getElementById(hova).innerHTML = http_s.responseText;
    	}
   }
	   http_s.open("GET",oldal_par,true);
	   http_s.send(null);
}

function betolt2(oldal,hova,p1,p2) {
	var http_s = false;
	var http_s = AJAX_konstruktor();

	var myRand=parseInt(Math.random()*99999999);
	var p11='n';
	if (document.getElementById(p1).checked) {
		var p11='i';
	}
 	var oldal_par = oldal+'?k='+p11+'&k2='+p2+'&rand='+myRand;
	http_s.onreadystatechange = function() {
		if(http_s.readyState != ALLAPOT_COMPLETE) {
    	 	document.getElementById(hova).innerHTML = loading;
	    }
    	if ((http_s.readyState == ALLAPOT_COMPLETE) && (http_s.status == 200)) {
			document.getElementById(hova).innerHTML = http_s.responseText;
    	}
   }
	   http_s.open("GET",oldal_par,true);
	   http_s.send(null);
}

function betolt3(oldal,hova,p1,p2) {
	var http_s = false;
	var http_s = AJAX_konstruktor();

	var myRand=parseInt(Math.random()*99999999);
	var p11=document.getElementById(p1).value;
	var oldal_par = oldal+'?k='+p11+'&k2='+p2+'&rand='+myRand;
	http_s.onreadystatechange = function() {
		if(http_s.readyState != ALLAPOT_COMPLETE) {
    	 	document.getElementById(hova).innerHTML = loading;
	    }
    	if ((http_s.readyState == ALLAPOT_COMPLETE) && (http_s.status == 200)) {
			document.getElementById(hova).innerHTML = http_s.responseText;
    	}
   }
	   http_s.open("GET",oldal_par,true);
	   http_s.send(null);
}




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->

function bezaras(sz){
	if (sz !='') {	
		alert(sz);
		top.close();
	}
	if (sz =='') {	
		var v=false;
		var v=confirm('Biztosan kilép a programból ?');
		if (v == false) {
			top.location='index_.php';
			return;
		}
		if (v == true) {
			top.close();
		}
	}
}	

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function kepcsere(a){
	var w=document.getElementById(a).width;
	var h=document.getElementById(a).height;
	var w_uj = w*1.1;
	var h_uj = h*1
    document.getElementById(a).width= w_uj;
    document.getElementById(a).height= h_uj;
 // document.getElementById(a).style.borderWidth  = '2px';
 // document.getElementById(a).style.borderStyle = 'dotted';
  //document.getElementById(a).style.filter='Gray';
} 

function kepcsere_v(a){
	var w=document.getElementById(a).width;
	var h=document.getElementById(a).height;
	var w_uj = w/1.1;
	var h_uj = h/1;
    document.getElementById(a).width= w_uj;
    document.getElementById(a).height= h_uj;
} 

function zeneki(a){
	cel=document.getElementById(a).src;
	if (cel=='http://szallas.vintiamo.hu/Image/ZENE.gif') {
		document.getElementById(a).src= 'Image/ZENE_ki.gif';
	} else {
		document.getElementById(a).src= 'Image/ZENE.gif';
	}
} 

function naptar_(e,h) {
	var http_s = false;
	var http_s = AJAX_konstruktor();

	var myRand=parseInt(Math.random()*99999999);
	var hova = 'naptar_tabla';
 	var oldal_par = 'naptar.php?ev='+e+'&ho='+h+'&rand='+myRand;
 	document.getElementById(hova).style.visibility='visible';

	http_s.onreadystatechange = function() {
		if(http_s.readyState != ALLAPOT_COMPLETE) {
    	 	document.getElementById(hova).innerHTML = loading;
	    }
    	if ((http_s.readyState == ALLAPOT_COMPLETE) && (http_s.status == 200)) {
			document.getElementById(hova).innerHTML = http_s.responseText;
    	}
   }
	   http_s.open("GET",oldal_par,true);
	   http_s.send(null);
}

function naptar_2(e,h) {
	var http_s = false;
	var http_s = AJAX_konstruktor();

	var myRand=parseInt(Math.random()*99999999);
	var hova = 'naptar_tabla';
 	var oldal_par = 'naptar.php?ev='+document.getElementById(e).value+'&ho='+document.getElementById(h).value+'&rand='+myRand;
 	document.getElementById(hova).style.visibility='visible';

	http_s.onreadystatechange = function() {
		if(http_s.readyState != ALLAPOT_COMPLETE) {
    	 	document.getElementById(hova).innerHTML = loading;
	    }
    	if ((http_s.readyState == ALLAPOT_COMPLETE) && (http_s.status == 200)) {
			document.getElementById(hova).innerHTML = http_s.responseText;
    	}
   }
	   http_s.open("GET",oldal_par,true);
	   http_s.send(null);
}

function eltuntet(m) {
	document.getElementById(m).style.visibility='hidden';
}

function kezdes(e,h,n) {
	if (e!='' && h!='' && n!='') {
		if (h.length ==1) {
			var h="0"+h;
		}
	if (n.length ==1) {
			var n="0"+n;
	}
		document.getElementById('from_ev').value=e;
		document.getElementById('from_ho').value=h;
		document.getElementById('from_nap').value=n;
		eltuntet('naptar_tabla');
	}
	return;
}



<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Vintiamo Apartmanok";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
// --> 
