function launchPopup (loc, width, height,scrolling) {
	if(!width)
		{width=400}
	if(!height)
		{height=300}
	if(!scrolling)
		{scrolling=0}

	var cTop = (screen.availHeight/2) - (height/2);
   	var cLeft = (screen.availWidth/2) - (width/2);
   	
   	var myBars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
	var myOptions = 'scrollbars='+scrolling+',width='+width+',height='+height+',top='+cTop+',left='+cLeft+',resizable=no';
	
	var myFeatures = myBars + "," + myOptions;
	
	window.open(loc, '', myFeatures);
}
