function ShowLayer(layerToShow, whereLayer) {

	var contentOfLayer = "sb_"+whereLayer;
	var layer = "sprod_"+layerToShow;
	
	var main = document.getElementById(contentOfLayer);
	var collection = main.getElementsByTagName('div');
	var number = collection.length;
	
	for (x = 0; x < number; x++)
	   {
		collection[x].style.display = "none";	
	   }

	document.getElementById(layer).style.display = "block";

}

function reloadOptions(collection,index,combo){
	if (! combo) return;
	for (i=combo.options.length-1;i>=0;i--){
		combo.options[i]=null;
	}
	for (k=0;k<collection[index].length;k++){
		combo.options[k] = collection[index][k];
	}
	combo.options[0].selected=true;
}

function getObject(id) {
	if (document.getElementById) return(document.getElementById(id));
	if( window.mmIsOpera ) return(document.getElementById(id));
	if (document.all) return(document.all[id]);	
	return(false);
}