a1a = new Image(); a1a.src = "/static/images/menu/01_st_01.gif";
a1b = new Image(); a1b.src = "/static/images/menu/01_st_02.gif";
a2a = new Image(); a2a.src = "/static/images/menu/02_st_01.gif";
a2b = new Image(); a2b.src = "/static/images/menu/02_st_02.gif";
a3a = new Image(); a3a.src = "/static/images/menu/03_st_01.gif";
a3b = new Image(); a3b.src = "/static/images/menu/03_st_02.gif";
a4a = new Image(); a4a.src = "/static/images/menu/04_st_01.gif";
a4b = new Image(); a4b.src = "/static/images/menu/04_st_02.gif";
a5a = new Image(); a5a.src = "/static/images/menu/05_st_01.gif";
a5b = new Image(); a5b.src = "/static/images/menu/05_st_02.gif";
a6a = new Image(); a6a.src = "/static/images/menu/06_st_01.gif";
a6b = new Image(); a6b.src = "/static/images/menu/06_st_02.gif";
a7a = new Image(); a7a.src = "/static/images/menu/07_st_01.gif";
a7b = new Image(); a7b.src = "/static/images/menu/07_st_02.gif";


function zmien(skad,gdzie)	{
	skad = eval(skad + ".src");
	document [gdzie].src = skad;
}
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=1,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function popUpWindowNS(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=0,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openWindow(str,features){
        window.name='windowOpener';
        window.open(str,'newWindow',features);
}

function zaloguj_1(){
	
	if (document.mainForm.si_user_login.value == ''){
		alert ('Proszę wpisać Login !');
		document.mainForm.si_user_login.focus();
		return false;
	}

	if (document.mainForm.si_user_password.value == ''){
		alert ('Proszę wpisać Hasło !');
		document.mainForm.si_user_password.focus();
		return false;
	}

	if (document.mainForm.si_user_firm.value == ''){
		alert ('Proszę wpisać nazwę firmy !');
		document.mainForm.si_user_firm.focus();
		return false;
	}

	if (document.mainForm.si_user_address.value == ''){
		alert ('Proszę wpisać adres !');
		document.mainForm.si_user_address.focus();
		return false;
	}

	if (document.mainForm.si_user_zipcode.value == ''){
		alert ('Proszę wpisać kod pocztowy !');
		document.mainForm.si_user_zipcode.focus();
		return false;
	}

	if (document.mainForm.si_user_city.value == ''){
		alert ('Proszę wpisać miasto !');
		document.mainForm.si_user_city.focus();
		return false;
	}

	if (document.mainForm.si_user_phone.value == ''){
		alert ('Proszę wpisać telefon !');
		document.mainForm.si_user_phone.focus();
		return false;
	}

	if (document.mainForm.si_user_fax.value == ''){
		alert ('Proszę wpisać fax !');
		document.mainForm.si_user_fax.focus();
		return false;
	}
	
	if (document.mainForm.si_user_email.value == ''){
		alert ('Proszę wpisać e-mail !');
		document.mainForm.si_user_email.focus();
		return false;
	} 

	if (document.mainForm.si_user_nip.value == ''){
		alert ('Proszę wpisać NIP !');
		document.mainForm.si_user_nip.focus();
		return false;
	}

	if (document.mainForm.si_user_regon.value == ''){
		alert ('Proszę wpisać REGON !');
		document.mainForm.si_user_regon.focus();
		return false;
	}

	document.mainForm.submit();
}

function zaloguj(){
	if (document.login.username.value == ''){
		alert ('Proszę wpisać Login !');
		document.login.username.focus();
	} else if (document.login.password.value == ''){
		alert ('Proszę wpisać Hasło !');
		document.login.password.focus();
	} else {
		document.login.submit();
	}
}

function noSpam(user,domain) {

locationstring = "mailto:" + user + "@" + domain;

window.location = locationstring; 
}
