function popup(mylink, windowname, popup_width, popup_height)
{
	var href;
	
	if (typeof(mylink) == 'string')
		href = mylink;
	else
		href = mylink.href;
	
	if (!popup_height) popup_height = 560;
	if (!popup_width) popup_width = 600;
		
	window_params = "width="+popup_width+",height="+popup_height+",scrollbars=no";
		
	newwindow = window.open (href, windowname, window_params);
	//newwindow.document.body.clientWidth = popup_width;
	//newwindow.document.body.clientHeight = popup_height;
	if (window.focus) {newwindow.focus()}
}

