//Product navigatie//
function show_prd_nav(div_name){
	var div_left = (screen.width / 2) - 290 ;
	if (document.getElementById(div_name).style.display==""){
		document.getElementById(div_name).style.display = "none";
	}else{
		document.getElementById(div_name).style.display = "";
	}
}

//Pop-up 1 //
function openpopup(popurl){
	var winpops=window.open(popurl,"","width=300,height=50")
}

var newwindow = '';

//Pup-up 2 //
function popup(url){
	var horizontaal = (screen.width - 550)/2;
	var verticaal = (screen.height - 780)/2;
	
	if (!newwindow.closed && newwindow.location){
		newwindow.location.href = url;
	}else{
		newwindow=window.open(url,'name','height=780,width=550,screenX=0,screenY=0,top='+verticaal+',left='+horizontaal+',scrollbars=no, resizable=yes');
		if (!newwindow.opener) newwindow.opener = self;
	}
}
//Cart functies//
function UpdateQty(item)
	{
		itemId = item.name;
		newQty = item.options[item.selectedIndex].text;
		type = item.id;
				
		document.location.href = 'cart.php?action=update_item&id='+itemId+'&qty='+newQty+'&type='+type;
	}

function UpdateQty2(item)
	{
		itemId = item.name;
		newQty = item.options[item.selectedIndex].text;
		type = item.id;
				
		document.location.href = 'cart-actie.php?action=update_item&id='+itemId+'&qty='+newQty+'&type='+type;
	}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function openpopup(popurl){
var winpops=window.open(popurl,"","width=300,height=50")
}


function popup2(url){
	var horizontaal = (screen.width - 420)/2;
	var verticaal = (screen.height - 595)/2;
	
	if (!newwindow.closed && newwindow.location){
		newwindow.location.href = url;
	}else{
		newwindow=window.open(url,'name','height=595,width=420,screenX=0,screenY=0,top='+verticaal+',left='+horizontaal+',scrollbars=yes, resizable=yes');
		if (!newwindow.opener) newwindow.opener = self;
	}
}
