function hidestatus(){
	window.status='';
	return true;
}

function redimensionaIframe() {
	var myiframe = document.getElementById('contenido_ppal');
	if (myiframe.get(0).contentDocument) {
		iframebody=$(myiframe.get(0).contentDocument.body);
	} else {
		iframebody=$(myiframe.get(0).contentWindow.document.body);
	}
	myiframe.show().height(iframebody.height()+35);
	setTimeout(function() {redimensionaIframe(myiframe);},1000);
}

function resize() {
	var myiframe = document.getElementById('contenido_ppal');
	myiframe.hide().load(function() {
		redimensionaIframe(myiframe);
	});
}

if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


function clickIE4(){
	if (event.button==2){ return false; }
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){ return false; }
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false");

function display(hide, show){
	document.getElementById(hide).style.display = 'none';
	document.getElementById(show).style.display = 'block';
}
