function popup(url, name, w, h, attrs){
	var win = eval ("window.parent."+name);

	if (win == null) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		
		var props = 'height='+h+',width='+w+',top='+wint+',left='+winl+(attrs ? ','+attrs:'') ;
		win = window.parent.open(url, name, props);
	} else {
		win.location = url;
	}
	win.focus();
	return false ;
}
	
function popfull(url){
	popup(url,'kxpopup',screen.width,screen.height,'menubar=no,toolbar=no,resizeable=yes,scrollbars=auto,locationbar=no,statusbar=no,personalbar=no');
}
