    // Set cookie function with the name, value, and experation date (in days)
    /*  function setCookie(name,value,expDays) {
         var expDate=new Date();
         expDate.setDate(expDate.getDate()+expDays);
         var cValue=escape(value)+((expDays==null) ? '' : '; expires='+expDate.toUTCString());
       //  document.cookie=name+"="+cValue;
         };*/
      // Get cookie function
     /* function getCookie(name) {
         var i,cName,cValue,cookies=document.cookie.split(';');
            for(i=0;i<cookies.length;i++) {
               cName=cookies[i].substr(0,cookies[i].indexOf('='));
               cValue=cookies[i].substr(cookies[i].indexOf('=')+1);
               cName=cName.replace(/^\s+|\s+$/g,'');
                  if(cName==name) {return unescape(cValue);};
               };
         };
      // Check cookie function
      function checkCookie(name) {
         var cValue=getCookie(name);
            if(cValue!=null && cValue!="") {return true}
            else {return  false;};
         };*/
 $(document).ready(function() {
         // Set the name of the cookie you would like to use, the number of days it will stay active, the inputs/output, and the current number variables
         // **HINT**
         // If you wish to 'delete' a cookie, just set the experation date to a negitive number
         // ex: expDay=-1;
		 var c=1;
         var cName="number",expDay=1,plus=$('button[name=plus]'),minus=$('button[name=minus]'),output=$('span#num'),c;
            // If the cookie is there, return the proper number
           // if(checkCookie(cName)) {output.text(getCookie(cName));}
            // Else start the count
           // else {
			//	output.text('1');
			//	};
         // Plus click function
         plus.click(function() {
            // Convert the output value into a number and add one
            c=(parseFloat($('input#num').val())+1);
            // Add the new value to the output
			$('input#num').val(c);
           // output.text(c);
            // Reset the cookie with the new value
            //setCookie(cName,c,expDay);
            });
         // Minus click function
         minus.click(function() {
            // Convert the output value into a number and add one
			if (c==1){
				alert('Mniej niż jednej sztuki nie można zamówić');
			} else {
            c=(parseFloat($('input#num').val())-1);
            // Add the new value to the output
			//('input#num').attr(value)=(c);
			$('input#num').val(c);
           // output.text(c);
			}
            // Reset the cookie with the new value
          //  setCookie(cName,c,expDay);
            });
         });
 

