	function str_today(mode) {
		var today=new Date();
		if (!mode) {mode=1;}
		if (mode==1) {var isnMonths = new Array("jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec.");}
		if (mode==2) {var isnMonths = new Array("január ","február ","március ","április ","május ","június ","július ","augusztus ","szeptember ","október ","november ","december ");}
		var isnDays   = new Array("vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat");
		return today.getFullYear()+". "+isnMonths[today.getMonth()]+today.getDate()+"., "+isnDays[today.getDay()];
	}

	function ajaxUpdateCalendar(elemid, url, options) {
		var params = options.params || "";
		var meth = options.meth || "post";
		var async = options.async || true;
		var startfunc = options.startfunc || "";
		var endfunc = options.endfunc || "";
		var errorfunc = options.errorfunc || "";
		var req = false;
		if( window.XMLHttpRequest ) req = new XMLHttpRequest();
		else if( window.ActiveXObject ) req = new ActiveXObject( "Microsoft.XMLHTTP" );
		else {
		 alert( "Az ön böngészője nem támogatja az AJAX kéréseket! Kérjük frissítse böngészőjét!");
		 return false;
		}
		if( startfunc != "" ) eval( startfunc );
		req.open( meth, url+( params != "" ? "?"+params : "" ), async );
		req.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
		req.onreadystatechange = function() {
			if ( req.readyState == 4 ){
				if ( req.status == 200 ){
					document.getElementById(elemid).innerHTML = req.responseText;
					if( endfunc != "" )
					eval( endfunc );
					return true;
				}
				else {
					if(endfunc != "") eval( endfunc );
					if( errorfunc != "" ) eval( errorfunc );
					return false;
				}
			}
		};
		req.send(null);
	}

	function calendar(month, path){
	 ajaxUpdateCalendar( "calendar", path, {params:"module=events&action=calendar" + "&month=" + month});
	}

	function adjust_kattancs() {
		var myWidth = 0, myHeight = 0;
		if(typeof( window.innerWidth ) == 'number'){
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		document.getElementById("kattancs").style.left=((myWidth-291)/2)-122+"px";
	}

	function set_search(obj){
		if(obj.value=='kereső') obj.value='';
	}

function eugy(){
   window.open("https://www.e-budaors.hu/login/start.aspx","budaors","width=800,height=600,status=yes,resizable=no,scrollbars=yes,top=0,left=0");
}

function OpenLap(theurl)
{
  windowprops = "width=800,height=800,resizable=yes,scrollbars=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no";
  window.open(theurl,"Appoint",windowprops);
  return (true);
}

function make_appoint( ibasproduct )
{
    windowprops = "width=500,height=600,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no";
    theurl = "http://213.253.198.244/appoint?appoint_product="+ ibasproduct;
    window.open(theurl, "Appoint", windowprops);
    return (true);
}


