        function showHide(id) {
        
            obj = document.getElementById(id);
            obj.style.display = (obj.style.display == "block" ? "none" : "block");
        }
               
        function demo3(id, unique_id) {
        
            advAJAX.setDefaultParameters({
              onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Preparing..."; },
              onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = "<img src=img/mobileshop/loader.gif alt='Loading...' title='Loading...'>"; },
              onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
              onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Error..."; }
            });
            advAJAX.get({ url: "tab.php?id="+id+"&unique_id="+unique_id, tag: id+unique_id+"_tab" });
            advAJAX.setDefaultParameters({});
        }
		
		function cartupdate(ident, price, amount, action) {
		    advAJAX.setDefaultParameters({
              onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Preparing..."; },
              onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = "Loading..."; },
              onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
              onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Error..."; }
            });
			advAJAX.get({ url: "cart.php?ident="+ident+"&amount="+document.getElementById(amount).value+"&action="+action+"&price="+document.getElementById(price).value, tag: "shoppingCart" });
			advAJAX.setDefaultParameters({});
        }
		
	   function loadPic(gid, ext) {	
        
            advAJAX.setDefaultParameters({
               onLoading : function(obj) { document.getElementById("gallery").innerHTML = "Loading..."; },
					onSuccess : function(obj) { 
				    	document.getElementById("gallery").innerHTML = obj.responseText; 
				  }
            });
            advAJAX.get({ url: "inc/changePic.php?gid="+gid+"&ext="+ext });
            advAJAX.setDefaultParameters({});
      }			
		
        function gallery(gallery, st) {
        
            advAJAX.setDefaultParameters({
              onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Preparing..."; },
              onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = "<img src=img/mobileshop/loader.gif alt='Loading...' title='Loading...'>"; },
              onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
              onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Error..."; }
            });
            advAJAX.get({ url: "include/gallery.php?gallery="+gallery+"&st="+st, tag: "gallery_box" });
            advAJAX.setDefaultParameters({});
        }		
			
	   function loadProductsForCategory(catId, prodId, pId) {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("productsInGroup").innerHTML = "Loading"; },
              onSuccess : function(obj) { document.getElementById("productsInGroup").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/loadProductsForCategory.php?catId="+catId+"&prodId="+prodId+"&pId="+pId });
            advAJAX.setDefaultParameters({});
      }		
		
	   function galleryCategoryList(picId, catId, page) {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("categoryList").innerHTML = "Loading"; },
              onSuccess : function(obj) { document.getElementById("categoryList").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/galleryCategoryList.php?picId="+picId+"&catId="+catId+"&page="+page });
            advAJAX.setDefaultParameters({});
      }	
		
	   function changeText(picId) {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("categoryList").innerHTML = "Loading"; },
              onSuccess : function(obj) { document.getElementById("categoryList").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/galleryCategoryList.php?picId="+picId+"&catId="+catId+"&page="+page });
            advAJAX.setDefaultParameters({});
      }	
		
	   function maillist(mail,sname) {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("maillist").innerHTML = "Loading"; },
              onSuccess : function(obj) { document.getElementById("maillist").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/mailing.php?mail="+mail+"&sname="+sname });
            advAJAX.setDefaultParameters({});
      }	
		
	   function sendMail(message_id) {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("inputBox").innerHTML = "Sending messages ..."; },
              onSuccess : function(obj) { document.getElementById("inputBox").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/sendMail.php?message_id="+message_id });
            advAJAX.setDefaultParameters({});
      }

	   function addComment() {	
        
            advAJAX.setDefaultParameters({
				  onLoading : function(obj) { document.getElementById("addCommentMessages").innerHTML = "Loading..."; },
              onSuccess : function(obj) { document.getElementById("addCommentMessages").innerHTML = obj.responseText; }
            });
            advAJAX.get({ url: "inc_site/addComment.php?message="+document.getElementById("message").value+"&name="+document.getElementById("sname").value+"&string="+document.getElementById("string").value });
            advAJAX.setDefaultParameters({});
      }											