// Servicios
function services(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=328,height=283,left = 212,top = 84');");
}

// Informacion
function informacion(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=295,left = 212,top = 84');");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
// Windows Messenger
function msn (pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=508, height=280, top=85, left=140";
window.open(pagina,"",opciones);
}


// Alertas MSN
var vbphrase = {
	"you_must_be_logged_into_msn_before_doing_this" : "Debes estar en sesión en el MSN Messenger o Windows Messenger antes de realizar esta accion.",
	"msn_functions_only_work_in_ie" : "La funcion de MSN solo funciona cuando se ejecuta desde Internet Explorer (MSIE)."
};


function handleError(msg, url, h)
{
	if (msg.indexOf('8100031e') != '-1')
	{
		alert(vbphrase["you_must_be_logged_into_msn_before_doing_this"]);
		return true;
	}
	else
	{
		return false;
	}
}

window.onerror = handleError;