function nada(){
	return;}
function MM_showHideLayers(){ 
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
		obj.visibility=v; }}
function ShowMenu(menuId) {
	CacherMenus();
	document.getElementById(menuId).style.visibility="visible";}
function CacherMenus() {
	for(i=1;i<=4;i++) {
		with(document.getElementById("sousmenu"+i).style) {
			visibility="hidden";}}} 
function MM_openBrWindow(theURL,winName,features) { 
	window.open(theURL,winName,features);}
function pviiClassNew(obj, new_style) {
	obj.className = new_style;}
function MM_preloadImages() { 
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore() { 
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_swapImage() { 
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
		x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;}
function MM_findObj(n, d) { 
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) {x=d.all[n];} else if (document.getElementById) {x=d.getElementById(n);}; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;}
function LigneG () {
	if (document.all) {
		var haut = document.getElementById('general').clientHeight;
		var dist = haut - 120;
	} else {
		var haut = window.innerHeight;
		var dist = haut - 150;
	}
	document.getElementById('colg').style.height=+dist+"px";}
function tmt_DivResize(theDiv,w,h){
	var fun = (document.getElementById) ? "tmt_findObj" : "MM_findObj";
	var obj = eval(fun+"(theDiv)");
	if(document.layers && obj)obj.resizeTo(w, h);
	else{if(obj)obj.style.width = w;obj.style.height = h;}}
function getObj(id){
	if(typeof id == "string")
		return  (document.all&&!document.getElementById)?document.all[ id ]:(document.getElementById)?document.getElementById( id ):null;}

function oPopup(url,nombre,ancho,alto){
  window.open(url,nombre,"scrollbars=yes,resizable=yes,width="+ancho+",height="+alto);
}
function remitelogin(obj){
	if ((obj.usu_email.value == '')||(obj.usu_email.value == 'e-mail')){
		obj.usu_email.value = '';
		obj.usu_email.focus();
		return (false);}
	if (obj.usu_password.value == ''){
		obj.usu_password.focus();
		return (false);}
	return (true);
}
//*********************
function wml_openVideo(theURL) { 
	if (window.showModalDialog) {
		var win = window.showModalDialog(theURL, window, "scroll=no; dialogWidth:255px; help:no; dialogHeight:230px; status:no;");
		return win;
	}else{
		window.open(theURL,"video","scrollbars=no,resizable=yes,width=255,height=209");}
}
	
function openDialog(url, width, height, features, winName) {
	if (window.showModalDialog) {
		if (!features) {features = '';	}
		var params = 'dialogWidth:'+width+'px;dialogHeight:'+ height + 'px;help:no;'
		features = features.replace(/\,/gi, ';')
		features = features.replace(/\=/gi, ':')
		features = features.replace(/scrollbars/gi, 'scroll')
		features = features.replace(/left/gi, 'dialogLeft')
		features = features.replace(/top/gi, 'dialogTop')
		features = features.replace(/width/gi, 'dialogWidth')
		features = features.replace(/height/gi, 'dialogHeight')
		if ((features.search('scroll')) == -1) {
			params += "scroll:no;"
		}
		if (features.search('status') == -1) {
			params += "status:no;"
		} 
		params += features
		var win = window.showModalDialog(url+"&t=wd", window, params)
		return win
	}else{
		window.open(url+"&t=wo",winName,"width="+width+",height="+height);
	}
}

function openDialog2(url, width, height, features, winName) {
	if (window.showModalDialog) {
		if (!features) {features = '';	}
		var params = 'dialogWidth:'+width+'px;dialogHeight:'+ height + 'px;help:no;'
		features = features.replace(/\,/gi, ';')
		features = features.replace(/\=/gi, ':')
		features = features.replace(/scrollbars/gi, 'scroll')
		features = features.replace(/left/gi, 'dialogLeft')
		features = features.replace(/top/gi, 'dialogTop')
		features = features.replace(/width/gi, 'dialogWidth')
		features = features.replace(/height/gi, 'dialogHeight')
		if ((features.search('scroll')) == -1) {
			params += "scroll:no;"
		}
		if (features.search('status') == -1) {
			params += "status:no;"
		} 
		params += features
		var win = window.showModalDialog(url, window, params)
		return win
	}else{
		window.open(url,winName,"width="+width+",height="+height);
	}
}


function wml_closePopup() {
  wml_oPopUp.hide()
}	
function ocultaespera(){
	document.getElementById('mesanjeespera').style.display = 'none'
}
function muestraespera() {
	document.getElementById('mesanjeespera').style.display = 'block'
}
function cc(id,bcolor) {
	document.all[id].style.backgroundColor = bcolor;
}
function cc1(id) {
	document.all[id].style.backgroundColor = bcolor;
}
function handleError() {
	return true;
}
window.onerror = handleError;