/*
These function toggle DISPLAY status of style elements, with +/- toggler
*/

function toggleBlock(obj,b) {
	if (document.getElementById) {
		var el = document.getElementById(obj);
		var b = document.getElementById(b);
		if ( el.style.display != "block" ) {
			el.style.display = 'block';
			b.src="images/icon_minus_new.gif";
		} else {
			el.style.display = '';
			b.src="images/icon_plus_new.gif";
		}
	}
}
function toggleInline(obj,b) {
	if (document.getElementById) {
		var el = document.getElementById(obj);
		var b = document.getElementById(b)
		if ( el.style.display != "inline" ) {
			el.style.display = 'inline';
			b.src="images/icon_minus_new.gif";
		} else {
			el.style.display = '';
			b.src="images/icon_plus_new.gif";
		}
		//alert("el.style.display = " + el.style.display);
	}
}

/*
This function launches new "popup" window
*/
function popUp(winurl, w, h) {
var l = (screen.width - w) / 2;	// distance is 1/2 of the screen width, from the left
var t = (screen.height - h) / 4;	// distance is 1/2 of the screen height, from the top

winprops =
'left='+l+',top='+t+',width='+w+',height='+h+',location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no';

win = window.open(winurl, "Popup", winprops);
return false;
}
