/* sprawdza czy wybrano rodzaj dostawy i rodzaj platnosci */
function CheckCart(){

	if(	document.getElementById('PaymentMethodID').value		==	0){
		alert('Wybierz rodzaj platnosci');
		return false;
	}else{
		if( document.getElementById('ShipmentMethodID').value		==	0){
			alert('Wybierz rodzaj dostawy');
			return false;
		}
	}
	document.form_cartsend.submit();
	return true;
}




/* pokazuje obrazek w popapie*/
function PopupImage(image,nazwa){
	image	=	image.replace('small','normal');
	NewWindow=window.open('', '','width='+300+',height='+350+',toolbar=no,directories=no,menubar=no,locations=no,status=no,scrollbars=yes,resizable=yes,fullscreen=no');
	NewWindow.document.open();
	NewWindow.document.writeln("<html>\n<head>\n</head>");
	NewWindow.document.writeln("<body leftmargin=0 topmargin=0 style=\"font-family:Arial, Helvetica, sans-serif; font-size:11pt; background-color:#ffffff\">");
	NewWindow.document.writeln("<title>"+nazwa+"</title>");
	NewWindow.document.writeln("<table width=100% height=100% style=\"font-family:Arial, Helvetica, sans-serif; font-size:11pt; background-color:#ffffff\">");
	NewWindow.document.writeln("<tr><td valign=center align=center>\n<a href=\"javascript:window.close();\"><img src="+image+" border=0></a></td></tr>");
	NewWindow.document.writeln("<tr><td align=center style=\"font-family:Verdana; font-size:10pt; color:#665D46; background-color:#ffffff\"><a href=\"javascript:window.close();\">Zamknij okno</a>\n</td></tr>");
	NewWindow.document.writeln("</table>");
	NewWindow.document.writeln("</body>\n</HTML>\n");
	NewWindow.document.close(); 
	NewWindow.focus(); 		 
	return;
}	