function tev_change()
{  
    var st;
    var s="";
    st = new String( window.location.search );    
    var i;
    i=st.search( "tab=" );
    if( i >= 0)
    {
        s = st.substring( i, st.length );
        i = s.search( "&" );
        if( i >= 0 )
        {
            s = s.substring( 0, i );
        }
        s = "&" + s;
    }
    var l_select_tev = document.getElementById( "select_tev" );
    window.open( '?tev=' + l_select_tev.options[l_select_tev.selectedIndex].value + s, "_self" )
}


  
   
function showpics( href )
{
    window.open( href, 'SzbkiKépek', 'width=680,height=570');
}



function show( id )
{
    var obj = document.getElementById( id );
    if ( obj.className==="hidden" )
    {
        obj.className="";
    }
    else
    {
        obj.className="hidden";
    }
}


//****************************************************


function AjaxHint(id, divHint) 
{
		var oThis = this;
		this.divHint = $(divHint);
		
		Event.observe(id, 'mouseover', function(e) { oThis.getHint(e);});
		Event.observe(id, 'mouseout', function(e) { oThis.hideHint(e);});
}
	
	
AjaxHint.prototype = 
{
		ajaxRequest: null,
		hintedObject:  null,
		hintTimer: null,
		
		cancelActivity: function () 
		{
			if (this.hintTimer) 
			{
				clearTimeout(this.hintTimer);
				this.hintTimer = null;
			}
			if (this.ajaxRequest) 
			{
				this.ajaxRequest.transport.abort();
				this.ajaxRequest = null;
			}
		},
		
		getHint: function (event) 
		{
			element = Event.element(event);
			if (element.tagName.toLowerCase() != 'a') 
			{
				return;
			}
			this.hintedObject = element;
			this.hintedObject.style.cursor = 'wait';
			var oThis = this;
			this.hintTimer = setTimeout(
				function() {oThis.timerGetHint()}, 
				500
			);
		},
		
		timerGetHint: function () 
		{
			if (! this.hintedObject) 
			{
				return;
			}
			
			var oThis = this;
			this.ajaxRequest = new Ajax.Request(
				'gethint.php',
				{
					method: 'get',
					parameters: 'id=' + 
						this.hintedObject.id.substring(2),
					onComplete: function(request) 
					{
					    oThis.ajaxGetHint(request); 
					}
				}
			);
		},
		
		hideHint: function (event) 
		{
			element = Event.element(event);
			if (element.tagName.toLowerCase() != 'a') 
			{
				return;
			}
			this.cancelActivity();
			this.hintedObject.style.cursor = '';
			this.hintedObject = null;
			this.divHint.style.display = 'none';
			
		},
		
		ajaxGetHint: function (request) 
		{
			this.divHint.innerHTML = request.responseText;
			var pos = Position.cumulativeOffset(this.hintedObject);
			this.divHint.style.left = pos[0] + 5 + 'px';
			this.divHint.style.top = (pos[1] + 5 + this.hintedObject.offsetHeight) + 'px';
			this.divHint.style.display = 'block';
			this.hintedObject.style.cursor = '';
		}	
	}


/**

	function t_hint(parent) 
	{
	
	
	    if (!parent) 
	    {
	        parent = this.divForm;
	    }

	    for (var i = 0; i < parent.childNodes.length; i++) 
	    {
	        var element = parent.childNodes[i];
	        //this.t_hint(element);

	        var tagName = element.tagName ? element.tagName.toLowerCase() : null;
	        if (tagName == 'a' && element.className=='hint' ) 
	        {
	            //alert( i );
	            new AjaxHint( element.id, 'divHint');
	        }
	        else 
	        {
	            this.t_hint(element);
	        }
	    }
	}
**/

    function t_hint()
    {
        var links = document.getElementsByTagName( "a" );
        for (var i=0; i<links.length; i++) 
        {
            if( links[i].className=='hint' )
            {
                new AjaxHint( links[i], 'divHint' );
            }
        }

    }
    
	window.onload = function() 
	{
	    t_hint();
	    
	    //t_hint(document.body);
	    // new AjaxHint('t_bellovics_diana', 'divHint');
	}
