function openDeerecomPopup(url) {
    var winDims = 'width=600,height=500'; 
    var newWindow = window.open(url, "deerecompopupwindow", winDims+',resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,directories=yes,location=yes,status=yes,copyhistory=yes');
}

function openConfiguratorPopup(configUrl) {

	var height;
	var width;
	var top;
	var left;

	if(window.screen.availHeight > 600) {
	
		height = 600;
		width = 800;

	} else if(window.screen.availHeight > 480) {
	
		height = 520; 
		width = 790;

	} else {
	
		height = 405;
		width = 630;
		
	}

	if(window.screen.availHeight > height)
		top = (window.screen.availHeight - height) / 2;
	else
		top = 0;	

	if(window.screen.availWidth > width)
		left = (window.screen.availWidth - width) / 2;	
	else   
		left = 0;

	winDims = 'width='+width+',height='+height+',screenX='+left+',screenY='+top+',left='+left+',top='+top; 

	newWindow = window.open(configUrl, "configuratordeerecom", winDims+',resizable=yes,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes');
   
}