var ie4 = false; if(document.all) { ie4 = true; }

function getObject(id) {
	if (ie4) {
		return document.all[id];
	} else {
		return document.getElementById(id);
	}
}

function toggle_simple(objectId) {
	var d = getObject(objectId);
	if (d.style.display == 'block') {
		d.style.display = 'none';
	} else {
		d.style.display = 'block';
	}
}

function Popup(page, title, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	prop = 'height='+h+'px,width='+w+'px,top='+wint+',left='+winl+',scrollbars=no,resizable=no,location=no,innerHeight='+h+',innerWidth='+w+',status=no,toolbar=no';
	win = window.open(page, title, prop);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
