function wstat(text) {
	window.status=text;
	return true;
}

function pop(url, w, h) {
	w = w ? w : '600';
	h = h ? h : '400';
	cw = w/2;
	ch = h/2;
	
	if (window.screen) {
		cw = Math.floor((screen.availWidth-w)/2);
		ch = Math.floor((screen.availHeight-h)/2);
	}
	
	window.open(url,'pop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width='+w+',height='+h+',top='+ch+',left='+cw+',resizable=1');
	return false;
}

function showlayer(object) {
	if (document.getElementById) {
		document.getElementById(object).style.display = 'block';
	} else if (document.layers && document.layers[object]) {
		document.layers[object].display = 'block';
	} else if (document.all) {
		document.all[object].style.display = 'block';
	}
}

function hidelayer(object) {
	if (document.getElementById) {
		document.getElementById(object).style.display = 'none';
	} else if (document.layers && document.layers[object]) {
		document.layers[object].display = 'none';
	} else if (document.all) {
		document.all[object].style.display = 'none';
	}
}
