		function start() {
			var XL=document.getElementById('leftColumn').offsetHeight;
			var XC=document.getElementById('RightColumn').offsetHeight;
			
			if ((XL-XC)>0) {
				document.getElementById('reklamaG').style.top=(XL-XC-1)+"px";
			}
			if ((XC-XL)>0) {
				document.getElementById('reklamaGL').style.top=(XC-XL+1)+"px";
			}
//			msgg=XL+' '+XC;
//			top.document.title=msgg;
			
		}
		
	    function register(action) {     	
	    	var forma = document.getElementById('Logowanie');	    	
	    	if (action == 1) {
	    		window.location ='rejestracja.php';     			    		
	    	}   	
	    }
	    
	    function redirect(href) {	    	
	    	window.location = href;
	    }
	    
	    function changeAction(action) {     	
	    	var forma = document.getElementById('newsletterForm');    	
	    	var mailInput = document.getElementById('emailInput');        	
	    	var address = mailInput.value; 	  
	    	
	    	if (action == 1) {
	    		forma.action ='subskrypcja.php';     			    		
	    	} else {
	    		forma.action ='subskrypcjaUsun.php';     				    		
	    	}    	
	    }
	    
    	function addToStore(idCustomer, idProduct, idCategory) {
			advAJAX.get({							
			    url: "ajaxActions.php?ajax=3",
				parameters : {
				    "idCustomer" : idCustomer,
				 	"idProduct"  : idProduct,
				 	"idCategory" : idCategory
				 },
				 onSuccess : function(obj) {
			    	var resp = obj.responseText;
			    	showHideStorePopup(1,resp,"Winoteka");
			     },
			     
			    onError : function(obj) { alert("Error: " + obj.status); }
			});  		
    	}
    	
		function addToBasketId(idProduct) {

			var cartQuantid = 'cartQuant'+idProduct;
			var ilosc=document.getElementById(cartQuantid).value;
			
			if (ilosc == 0) {
				document.getElementById(cartQuantid).value="1";
				var ilosc = 1;
			} 
		
			advAJAX.get({
			    url: "ajaxActions.php?ajax=7",
				parameters : {
				 	"idProduct"  : idProduct,
				 	"ilosc"  : ilosc
				 },
				 onSuccess : function(obj) {
			    	var element=document.getElementById('basketZone');
			    	var resp = obj.responseText;
					element.innerHTML=resp;
			    	showHideStorePopup(1,resp,"Koszyk");			    	
			     },

			    onError : function(obj) { alert("Error: " + obj.status); }
			});  		
			
			document.getElementById(cartQuantid).value="1";
    	}
		
    	function autoCompleteOff() {
    		var f = document.getElementById('auto_off'); 
    		f.setAttribute("autocomplete", "off"); 
    	}

