function showObjectById(id) {

var obj = null;

if (document.getElementById) {

obj = document.getElementById(id);
obj.style.visibility = 'visible';
}

return obj;

}

function showObject(obj) {

obj.style.visibility = 'visible';

return obj;

}

function showObject(obj) {

if (obj != null) {

obj.style.visibility = 'visible';

}

return obj;

}

function hideObjectById(id) {

var obj = null;

if (document.getElementById) {

obj = document.getElementById(id);
obj.style.visibility = 'hidden';

}

return obj;

}

function hideObject(obj) {

if (obj != null) {

obj.style.visibility = 'hidden';

}

return obj;

}

function getObjectById(id) {

var obj = null;

if (document.getElementById) {

obj = document.getElementById(id);

}

return obj;

}

function swapImageById(id, imageUrl)
{

var obj = document.getElementById(id);

if(obj != null && obj.src)
{

obj.src = imageUrl;

}

}

function openWindowOnChange(reset, ignoreIndex)
{

var list = event.srcElement;

if(list.selectedIndex != ignoreIndex && list.options.item(list.selectedIndex).value != "")
{

eval("window.open(" + list.options.item(list.selectedIndex).value + ")");

}

if(reset)
{

list.selectedIndex = 0;

}

}

function goToUrlOnChange(e)
{
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
	targ = targ.parentNode;
var list = targ;
window.location = list.options.item(list.selectedIndex).value;
}


