var detailWin;

function w(url) {
	detailWin = window.open(url,'Detail','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=480');
	if (!detailWin.opener) detailWin.opener = window;
	detailWin.focus();
	return false;
	}

function w_back(url) {
	if (window.opener) {
		window.opener.location = url;
		window.close();
		}
	else window.location = url;
	return false;
	}

function oGet(n) {
	if (document.getElementById) return document.getElementById(n);
	else if (document.all) return document.all[n];
	else return null;
	}

function setCookie(cookieName, cookieValue, days) {
	var ex = new Date();
	ex = new Date(ex.getTime() + 1000 * 60 * 60 * 24 * days);
	document.cookie = escape(cookieName) + '=' + escape(cookieValue)
		+ (ex ? '; EXPIRES=' + ex.toGMTString() : '')
		+ '; PATH=/';
	}
