function posaCodiIfEmpty(idLocation,content){
     if(!document.getElementById) return; // Not Supported
	 else{
			document.getElementById(idLocation).innerHTML = "";
			document.getElementById(idLocation).innerHTML = content;
     }

}

function DeprecatedposaCodiIfEmpty(idLocation,content){
     if(!document.getElementById) return; // Not Supported
	 else{
		if (document.getElementById(idLocation).innerHTML.length>0)
			document.getElementById(idLocation).innerHTML = "";
		else
			document.getElementById(idLocation).innerHTML = content;
     }

}

function cambiaFons(desti,thecolor)
{
	//desti.location="www.google.com";
	desti.bgColor=thecolor;
	
}

function hideLayer(idLayer){
	if(!document.getElementById) return; // Not Supported
	else{
		document.getElementById(idLayer).style.visibility = 'hidden'; 
    }
	
}

function showLayer(idLayer){
	if(!document.getElementById) return; // Not Supported
	else{
		document.getElementById(idLayer).style.visibility = 'visible'; 
    }
	
}

/*
function SaveScrollPositions() {   
	document.forms[0].StaticPostBackScrollVerticalPosition.value =(navigator.appName == 'Netscape') ? document.pageYOffset : document.body.scrollTop;   
	document.forms[0].StaticPostBackScrollHorizontalPosition.value =(navigator.appName == 'Netscape') ? document.pageXOffset : document.body.scrollLeft;  
	setTimeout('SaveScrollPositions()', 5000);
	//alert(document.forms[0].StaticPostBackScrollVerticalPosition.value);
}

function RestoreScrollPosition(){
	var vScroll = document.forms[0].StaticPostBackScrollVerticalPosition.value
	var hScroll = document.forms[0].StaticPostBackScrollHorizontalPosition.value
	scrollTo(hScroll, vScroll);
	alert(hScroll+"-"+vScroll);
}
*/