function menu(){
	if(actual != null)
	{
		document.getElementById("m"+actual).style.background = "url(images/bg_menu_on.gif) 5px 5px no-repeat";
		document.getElementById("m"+actual).style.color = "#BE7300";
		document.getElementById("m"+actual).style.fontWeight = "bold";
		document.getElementById("m"+actual).style.padding = "0 0 0 15px";
		document.getElementById("m"+actual).style.textDecoration = "none";
	}
}
function menu2(){
	document.getElementById("mb"+actual).style.textDecoration = "underline";	
}
function cabecera(){
	document.getElementById("c"+actual).style.textDecoration = "underline";
}
function escucha(a){
	window.open(a,'page','width=218, height=20, scrollbars=0, location=0');			
}
function ir(a){
	document.location.href=a;
}
function abre(a,w,h){
	window.open(a,'page','width='+w+', height='+h+', scrollbars=yes, location=0, resizable=yes');		
}

function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function IsEmail(email)
{
	var regExp = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	if(email == "")
		return true;
	return regExp.test(email);
}

function IsUrl(url)
{
	var regExp = /^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;
	if(url == "")
		return true;
	return regExp.test(url);
}