/**
 * @author nando
 */

 function isIE6(){
	var ua = navigator.userAgent.toLowerCase();
	var index = ua.indexOf("msie");
	if (index != -1){
		var version = parseFloat(ua.substring(index+"msie".length+1));
		if ((version >= 5.5) && (version < 7)){
			return true;
		}
	}
	return false;
}

function openPopup(url, name, width, height, options){
	if (width==null) width=500;
	if (height==null) height=400;
	if (options==null) options=",scrollbars=yes";
	var window_left = (screen.width - width) / 2;
	var window_top = (screen.height - height) / 2;
	var pop = window.open(url,name,"width="+width+",height="+height+",top="+window_top+",left="+window_left+options);
	return false;
}