function popup(theurl,win_width) {
//function is passed the url, and the window width desired.

if (screen){
if (screen.width < 600){
	width = screen.width-50;
	}
else {
	width = win_width;
	}
	
heightto = screen.height-300;
window.open(theurl,"feature","width="+width+",height="+heightto+",top=50,left=50,toolbar=yes,status=yes,scrollbars=yes,resizable=yes");
	}
}
