function applyDisplay(value, id)
{
 document.getElementById(id).style.display = value;
}

function showObj(object) {
   document.getElementById(object).style.display = 'inline';
}
function hideObj(object) {
   document.getElementById(object).style.display = 'none';
}

function winBRopen(theURL, Name, popW, popH, scroll) { 
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
	Win = window.open(theURL, Name, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function toggleDiv(id)
{
	if (document.getElementById(id).style.display == 'none')
	{
		document.getElementById(id).style.display = 'inline';
	} else {
		document.getElementById(id).style.display = 'none';
	}
}