function abrirpopup(nombre,ancho,alto) {
dat2 = 'width=' + ancho + ',height=' + alto + ',left=0,top=0,scrollbars=yes,resize=no,location=no,directories=no,status=no,menubar=no,toolbar=no';
window.open(nombre,'pop',dat2)
}
function abrirpopupp(nombre,ancho,alto) {
dat2 = 'width=' + ancho + ',height=' + alto + ',left=0,top=0,scrollbars=no,resize=no,location=no,directories=no,status=no,menubar=no,toolbar=no';
window.open(nombre,'pop',dat2)
}
//Hide status bar msg II script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use
/*
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus*/

/* antixss.js.php por Carlos Mesa*/
function verifica_url(url){
        var host, path_info
        host = 'http://'+location.host;
        path_info = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        query_string = (location.search) ? ((location.search.indexOf('#') != -1) ? location.search.substring(1, location.search.indexOf('#')) : location.search.substring(1)) : '';
        /*host_and_path_info = document.referrer;*/
        largo = host.length+path_info.length+query_string.length;
        /*alert('Host='+host);
        alert('Path_info='+path_info);
        alert('Query_string='+query_string);
        alert('Largo='+largo);*/
        if ( largo > 150 ) {
                location.href=url;
        }
}
