<!--
function AddToCart_Alert(strProdCode, getId) {
	//if (confirm("Uwaga! Ten produkt nie jest obecnie dostępny\nna stanie magazynowym. Jesteś pewien,\nże chcesz go dodać do koszyka?")) {
	//	document.location = "index.php?module=sklep&prod_id="+strProdCode+"&op=koszyk_add";

	//}
	var continentList = document.getElementById("prod_kolor" + getId);
	var selectedContinent = continentList.options[continentList.selectedIndex].value;
	
	if (selectedContinent == 0) {
		alert("Proszę wybrać kolor");
		return false;
		
	}
	
	if (strProdCode == 0) {
		if (confirm("Uwaga! Ten produkt nie jest obecnie dostępny\nna stanie magazynowym. Jesteś pewien,\nże chcesz go dodać do koszyka?")) {
			return true;
		} else {
			return false;
		}
	}

	return true;
	
}

function KillBanner() {

	document.getElementById('bannerpop').style.display = "none";
	
	ActTime = new Date();
	ActTime.setTime(Termin = (2*60*60*1000) + ActTime.getTime());
	Termin = (ActTime.toGMTString());
	document.cookie= "bannerpopup=" + escape(1) + "; expires=" + Termin;

}

function Duze() {
	document.szukaj.prod_szukaj.value = document.szukaj.prod_szukaj.value.toUpperCase();
}

function ShowBigPicture(strProdCode) {
	var oPopUp = window.open("index.php?module=sklep&prod_id="+strProdCode+"&op=prod_foto",'', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,fullscreen=no,width=450,height=300,top=20,left=20');

}

function SkalujOkno() {
	var picWidth = document.images.foto.width;
	var picHeight = document.images.foto.height;
	var scrNewWidth;
	var scrNewHeight;
	
	if (picWidth >= screen.width) {scrNewWidth = screen.width - 100}
	else {scrNewWidth = picWidth + 25}
	
	if (picHeight >= screen.height) {scrNewWidth = screen.height - 100}
	else {scrNewHeight = picHeight + 55}
	
	window.resizeTo(scrNewWidth,scrNewHeight);
}

function addBookmark(title,url) {
    if (window.sidebar) { 
	window.sidebar.addPanel(title, url,""); 
    } else if( document.all ) {
	window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
	return true;
    }
}

function setCursor(id, name)
{
   document.getElementById(id).style.cursor=name;
   return true;
}

function BrowserOpen(field) {
	my_field = field;
	
	window.open("include/file_manager.php?type=img&fmode="+field, "file_manager", "scrollbars=yes,resizable=yes,width=600,height=600");
	
}

function Odbior_osobisty() {
	var objOdbior = document.getElementById("zam_odbior").checked;
	
	if (objOdbior == true) {
		document.getElementById("zam_koszt_wys").value = "0,00 zł";
		
	} else {
		document.getElementById("zam_koszt_wys").value = document.getElementById("zam_koszt_wys1").value;
	}
	
}
-->
