var newindow;
function openwin(url) {
		newindow = window.open(url, 'winame', 'height=400, width=500');
		if(window.focus) { 
			newindow.focus() 
		}
}