function favoritos()
{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
{
window.external.AddFavorite ("http://www.tbcsantander.es");
}
else
{
var msg = "¡Para añadirnos a tus favoritos pulsa Ctrl + D!";
if(navigator.appName == "Netscape") msg += " (CTRL-D)";
alert(msg);
}
}
function ini()
{
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.tbcsantander.es');
}
else
{
if(navigator.appName == "Netscape") alert("Su navegador no acepta esta opción automática.");
}
}
function imprimir()
{
var bName = navigator.appName;
var bVer = parseFloat(navigator.appVersion);
var contenido = document.getElementById("cont-cont-sub").innerHTML;
ventana=window.open("about :blank","ventana","width=1004,height=600,top=0,left=3000");
ventana.document.open();
ventana.document.write('
<\/title><\/head>');
ventana.document.write(contenido);
ventana.document.close();
ventana.print();
ventana.focus();
ventana.close();
}
function sw(loc, titulo, ancho, alto)
{
options="toolbar=0,Status=0,menubar=0,scrollbars=no,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;
window.open(loc,titulo,options);
}
function sw2(loc, titulo, ancho, alto)
{
options="toolbar=0,Status=0,menubar=0,scrollbars=yes,resizable=1,location=0,directories=0,width=" + ancho + ",height=" + alto;
window.open(loc,titulo,options);
}
//foros
function valida(arg,texto)
{
longitud = 5;
if(parseInt(document.frmNew.txtTitulo.value.length) > longitud)
{
return true;
}
else{
alert(texto +" (" + longitud + ").");
return false;
}
}
function confirmacion(arg,texto)
{
if(confirm(texto))
document.location.href = arg;
}
function Operacion(cual1,cual2,cual3)
{
document.EliminarReg.foro.value=cual1;
document.EliminarReg.tema.value=cual2;
document.EliminarReg.niv.value=cual3;
document.EliminarReg.action="tutor_activa_foro.php";
document.EliminarReg.submit();
}
function preview(img,ancho,alto){
window.open("/archivos/imagenes_contenidos/"+img, "", "width="+ancho+",height="+alto+", scrollbars=auto,directories=0,status=0");
}