function mOvrTop(src,clrin)
{ if (!src.contains(event.fromElement)) {
					src.style.cursor = 'hand';
					src.bgColor = clrin;
					}
}

function mOutTop(src,clrout)
{ if (!src.contains(event.toElement)) {
					src.bgColor = clrout;
					}
}

function showon(id)
{
document.all[id].style.color = '#000000';

}

function showoff(id)
{
document.all[id].style.color = '#000000';
}

function checkform()
{       

	// Tablica argumentów
    var argv = checkform.arguments;

    // Liczba przesłanych argumentów
    var argc = argv.length;

    // Petla dla wszystich argumentow
    for (var i = 0; i < argc; i=i+3) {
	
		if (argv[i].value == argv[i+1])	
			{
				alert("Nie podałeś wymaganego pola: "+argv[i+2])
				argv[i].focus()
				return false
			}
    }
}	

function check(form)
{       
	if (form.value == "")
	{
	alert("Nie podałeś wymaganego pola!")
	form.focus()
	return false
	}

}

function checkcat(form)
{       
	if (form.value == 7)
	{
	alert("Musisz wybrać kategorię dla swojej firmy!")
	form.focus()
	return false
	}

}

function sendwin(this_url)
{
	var options = 'toolbar = no, scrollbars = no, resize = yes, location = no, width = 300, height = 500, left=100, top=100';
	window.open (this_url, '', options);
}

function legendwin(this_url)
{
	var options = 'toolbar = no, scrollbars = yes, resize = yes, location = no, width = 330, height = 500, left=100, top=100';
	window.open (this_url, '', options);
}

function viewwin(this_url)
{
	var options = 'toolbar=no, status=no, scrollbars=yes, resizable=yes, width = 600, height = 460, left=100, top=100';
	window.open (this_url, '', options);
}