function load(wgrid,from,anz) {
	$('.loading_icon').show();
	$.get("includes/artikelausgabe.inc.php", {wgrid: ""+wgrid+"", anz: ""+anz+"", from: ""+from+""}, function(data){
		if(data.length >0) {
			$('#ausgabe').html(data);
		}
	});
}

function showdetail(num) {
		//document.getElementById('d_' + num).style.display='';
		$('#d_' + num).show();
	}
	function hidedetail(num) {
		//document.getElementById('d_' + num).style.display='none';
		$('#d_' + num).hide();
	}
	function showshop(num) {
		//document.getElementById('showshop_' + num).style.display='';
		$('#showshop_' + num).show();
	}
	function hideshop(num) {
		//document.getElementById('showshop_' + num).style.display='none';
		$('#showshop_' + num).hide();
	}
	function updateWK() {
		$.get("templates/warenkorb.tpl.php", function(data){
			$('#wkdiv').html(data);
		});
	}
		
	function vhide(div) {
		//document.getElementById(num).style.display='none';
		$(div).hide();
	}
	function vshow(div) {
		//document.getElementById(num).style.display='none';
		$(div).show();
	}
	function swapbuy(artnum) {
		$('#buy_' + artnum).show();
		$('#showshop2_' + artnum).hide();
	}
	function fillval(id,menge,aus1,aus2) {
		$.get("wkadd.php", {queryString:""+id+'|'+menge+'|'+aus1+'|'+aus2+""}, function(data){
			$(".quickbuysubmit").css("display", "none");
			$('#infofenster').show();
			$('#infofenster').html(data);
			$('#infofenster').fadeOut(2500,function(){
				$(".quickbuysubmit").css("display", "");
			});
			$('#showshop_' + id).hide();
		});
		document.getElementById('buy_' + id).reset();
	}

	
	
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function formselect() {
	document.detail.submit();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Sicherheitsabfrage(Formular) {
    if(confirm("Wollen Sie die Bestellung jetzt abschicken?")) {
       	return true;
    } else {	
   	    return false;
    }
}
	
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function Sicherheitsabfrage(Formular) {
    if(confirm("Wollen Sie Ihre Bestellung jetzt abschicken?")) {
       	return true;
    } else {	
   	    return false;
    }
}
	
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function check() {
 if(document.orderform.agb.checked==true) {
  document.orderform.elements['bestellen'].disabled="";
 }
 else {
  document.orderform.elements['bestellen'].disabled="disabled";
 }
}
