<!--

function showMap()
{
    //var answer=document.getElementById('map_answer').options[document.getElementById('map_answer').options.selectedIndex].value;
    //wnd=window.open('map.php','map','');
    //window.alert('MAP'+answer);
    document.map_form.submit();
}

function expandGroup(pimg,pgroup)
{
    var img=document.getElementById(pimg).src;
    img=img.substr(img.length-5,5);

    if (img=='d.gif')
    {
	document.getElementById(pimg).src='OLA/modulok/Main/images/icon_collapse.gif';
	$("#"+pgroup).show();
	if (pgroup=='ROW_fields') initFields();
    }
    else
    {
	$("#"+pgroup).hide();
	document.getElementById(pimg).src='OLA/modulok/Main/images/icon_expand.gif';
    }
}

function gettext(s)
{
    return js_array_gettext[s];
}

function waitingDialog(waiting) 
{ 
    // I choose to allow my loading screen dialog to be customizable, you don't have to 
    $("#loadingScreen").html(waiting.message && '' != waiting.message ? waiting.message : 'Please wait...'); 
    $("#loadingScreen").dialog('option', 'title', waiting.title && '' != waiting.title ? waiting.title : 'Loading'); 
    $("#loadingScreen").dialog('open'); 
} 

function closeWaitingDialog() 
{ 
    $("#loadingScreen").dialog('close'); 
}

$(document).ready(function() {

     $("#loadingScreen").dialog({
    	    autoOpen: false,
    	    // set this to false so we can manually open it 
    	    dialogClass: "loadingScreenWindow",
    	    closeOnEscape: false,
    	    draggable: false,
    	    width: 460,
    	    minHeight: 50,
    	    modal: true,
    	    buttons: {},
    	    resizable: false,
    	    open: function() {
    		// scrollbar fix for IE
    		$('body').css('overflow','hidden');
    	    },
    	    close: function() {
    		// reset overflow
    		$('body').css('overflow','auto');
    	    }
    }); // end of dialog 


//    $("#button_reg").dblclick(function() {
//	window.alert("Dupla kattintás");
//    });


});


//-->
