//JavaScript Util functions
function swapLayers(id) {	
	for (var intI=0; intI<arrLayers.length; intI++) {
	  if (arrLayers[intI]==id) { 
		  document.getElementById(id).style.display='block';
		}
	}
	return true;
}
function swapImage(num) {
    var obj=document.getElementById('swap');
	obj.src = image_list[num].src;
	obj.alt = document.getElementById('image' + num).alt;
	obj.title = document.getElementById('image' + num).title;
	return true;
}
function showLayer(id) {
    var obj	= document.getElementById(id);

    if (obj.style.display=='none' || obj.style.display==null || obj.style.display=='') { 
        obj.style.height='auto';
	    obj.style.display='block';
	}   else    { 
	    obj.style.height='0px';
        obj.style.display='none';
	}
	return true;
}
function ShowHideMenu(Option)
{
    var listElementStyle=document.getElementById(Option).style;
    
    if (listElementStyle.display == "none")
    {
        listElementStyle.display = "block";
    }
    else
    {
        listElementStyle.display = "none";
    }
}
function ClearTextBox(tb)
{
    if (tb.defaultValue == tb.value)
    {
        tb.value = "";
    }
}