function focusInOut(obj, event) {
	switch (event.type) {
		case 'focus':
			obj.className = obj.className + 'Over';
			break;
		case 'blur':
			obj.className = obj.className.replace('Over', '');
			break;
	}
}
function windowOpen(name, url, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
	var wint = (screen.height - height) / 2;
	var winl = (screen.width - width) / 2;
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+winl+',top='+wint+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}