function doLogin() { document.loginForm.submit(); } function doLogout() { document.location = "/?cmd=logout"; } function ver(documento_id) { window.open("/documento/?documento_id="+documento_id); } function verpdf(id, type) { if(type==1) window.open("/registropdf/?registro_id="+id); else window.open("/procedimientopdf/?procedimiento_id="+id); } function foo() { } function $(id){ return document.getElementById(id); } function addslashes( str ) { return (str+'').replace(/([\\"])/g, "\\$1").replace(/\0/g, "\\0"); } function changePermission(def) { var mySelects = document.getElementById('divPermisos').getElementsByTagName("select"); for(i=0;i