function abrir_pdf(url)
{
	ancho=640;
	largo=480;
	nuevo_pdf = window.open("","nuevo_pdf","width="+ancho+",height="+largo+",resizable=yes");
	nuevo_pdf.location.href = url;
	nuevo_pdf.focus();
}

function abrir_sawindow(url)
{
	ancho=400;
	largo=400;
	izq=(screen.width-ancho)/2;
	sup=(screen.height-largo)/4;
	nuevo_saw = window.open("","nuevo_saw","width="+ancho+",height="+largo+",resizable=no,left="+izq+",top="+sup);
	nuevo_saw.location.href = url;
	nuevo_saw.focus();
}

function abrir_sbwindow(url,coef)
{
	ancho=500*coef;
	largo=580*coef;
	izq=(screen.width-ancho)/2;
	sup=(screen.height-largo)/4;
	nuevo_saw = window.open("","nuevo_saw","width="+ancho+",height="+largo+",resizable=no,left="+izq+",top="+sup);
	nuevo_saw.location.href = url;
	nuevo_saw.focus();
}


//Hide status bar msg javascript

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


function cambiamail(buzon){
var res="";
for (var n=0;n<buzon.length;n++)
res+=String.fromCharCode(buzon.charCodeAt(n));
if (res.indexOf('@')<0)
res=res+'@'+'rogu.es'
location="mail"+"to:"+res;
}

function submitform(fname)
{
	document.getElementById(fname).submit();
}


function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
