var thiswin = false;

function highlight(obj) {
if (obj.className) {
var c = obj.className.substr(obj.className.length-2,2);
var b = obj.className.substr(0,obj.className.length-2);

	switch (c) {
		case "_a":
			obj.className = b + "_d";
			break;
		case "_d":
			obj.className = b + "_a";
			break;
	}
}
}

function write_by_browser(html) {
	if (document.all) { document.write(html);}
}

function openWindow(url,params) {
	if (thiswin.closed || !thiswin) {
		thiswin = window.open (url, '', params);
		thiswin.focus();
	}
}

function navMouseOver(el, mo) {
	if (el) el.className = mo;
}

function bz_open_centered_window (u, n, w, h, p) {
	lp = (screen.width) ? (screen.width - w) / 2 : 100;
	tp = (screen.height) ? (screen.height - h) / 2 : 100;
	return window.open (u, n, 'width='+w+',height='+h+',top='+tp+',left='+lp+','+p);
}

