 /* 
 * THIS FUNCTIONS ARE FOR AJAX GET ACTION 
 * made by djomla@php-hr.net
 */
function confirmGet(text, pars, action, result)
{
	var agree=confirm(text);
	if (agree)
		return getSomething( pars, action, result);
	else
		return false;
}

function getSomething(pars, action, div) {
    var myAjax = new Ajax.Request(
        action, 
        {
            method: 'get', 
            parameters: pars, 
            onComplete: function(response) {
					res = eval('(' + response.responseText + ')');
					setResult(res, div);
				}
    });
}

function setResult(res, div)
{
	$(div).innerHTML = res.message;
}

	
function initLoad() 
{     
     // Effect.Highlight('logo');
     new Effect.Opacity('logo', {duration:2, from:0.1, to:1.0});
}

window.onload = initLoad;