function getIt(actioni, item, repage){
	document.forms.shopform.actioni.value=actioni;
	document.forms.shopform.item.value=item;
	document.forms.shopform.repage.value=repage;
	if(actioni!=""){
		document.forms.shopform.reload.value="yes";
	}
	document.forms.shopform.submit();
}

function showhide(aaid){
	a=document.getElementById(aaid).style.display;
	newstatus='';
	if(a==''){			newstatus='none';		}
	if(a=='none'){		newstatus='';			}
	if(a=='block'){		newstatus='none';			}
	document.getElementById(aaid).style.display=newstatus;
}

function plusitem(name){
	a=parseFloat(document.getElementById("amount"+name).innerHTML);
	a++;
	document.getElementById("amount"+name).innerHTML=a;
}

function addcolor(name){
	document.shopform.kleur.value=name;
}

function checkforms(elements,action,item,repage){
	error='';
	if(elements!=''){	
		brokenstring=elements.split(",");
		i=0;
		j=brokenstring.length;
		while(i<j){
			z=brokenstring[i];
			x=document.shopform[z].value;
			if(x==""){
				error+="\n"+z;
			}
			i++;
		}
		if(error!=""){
			alert('vul aub alle verplichte velden in:'+error);
		} else {
			getIt(action, item, repage);
		}
	} else {
			getIt(action, item, repage);
	}
}