/* megapliki.pl - funkcje JS */

function n_lock(a)
{
    if(document.newsletter.email.value == "" && a == "blur")
    {
        document.newsletter.email.value = "twój adres e-mail";
    }
    else if(document.newsletter.email.value == "twój adres e-mail" && a == "focus")
    {
        document.newsletter.email.value = "";
    }
}

function openwin(){
	noweOkno = window.open('http://sztucznainteligencja.pl/cyberbot/bot_popup.php?operator=f337d999d9','noweOkno', "toolbar=no,location=no,directories=no,menubar=no,status=no,scrolling=no, scrollbars=no,resizable=no,width=270,height=557,left=10,top=10");
	}

function menu_on(a)
{
	document.getElementById(a).src = "img/"+a+"_on.gif";
}

function menu_out(a)
{
	document.getElementById(a).src = "img/"+a+".gif";
}

var changeDiv = function(t, div, url, param)
{
	if(!url) url='ajax.php';
	t.blur();
	$(div+'wait').show();
	new Ajax.Updater($(div),url,{parameters:param});
	return false;
}