<!--
function highlight(elt) {
	elt.className = 'tdtabla02high';
}

function downlight(elt) {
	elt.className = 'tdtabla02down';
}
function highlight2(elt) {
	elt.className = 'tdtabla04high';
}

function downlight2(elt) {
	elt.className = 'tdtabla04down';
}

//abrir ventana centrada
function WindowCenter (url,ancho, alto, stl, name) {
  var width = ancho
  var height = alto
  var x=(640 - width)/2
  var y=(480-height)/2
  var ndate = new Date();

  if(screen) {
	  y=(screen.availHeight - height)/2
	  x=(screen.availWidth - width)/2
  }

  if(screen.availWidht > 1800)
	  x=((screen.availWidth/2) - width)/2

  window.width=width
  window.height=height
  window.x=x
  window.y=y

  estilo = stl ? stl : "toolbar=0, status=0, location=0, directories=0, menubar=0, scrollbars=0, resize=0,resizable=0";
  name = name ? name : 'newwin';

  vn = window.open(url, name, estilo + ",width=" + width + "px,height=" + height + "px,top=" + y + "px,left=" + x + "px");
  vn.focus();
}

//abrir ventana centrada
function ShowPhoto (url,name,foot) {
  var width = 150;
  var height = 150;
  var x=(640 - width)/2
  var y=(480-height)/2

  if(screen) {
	  y=(screen.availHeight - height)/2
	  x=(screen.availWidth - width)/2
  }

  if(screen.availWidht > 1800)
	  x=((screen.availWidth/2) - width)/2

  window.width=width
  window.height=height
  window.x=x
  window.y=y

//aqui
  estilo="toolbar=0, status=0, location=0, directories=0, menubar=0, scrollbars=0, resize=0,resizable=0";
  url = foot ? url+'&foot='+foot : url ;
  name = name ? name : 'newwin';

  vn = window.open(url, name, estilo + ",width=" + width + "px,height=" + height + "px,top=" + y + "px,left=" + x + "px");
  vn.focus();
}


function getPromoContent(op, promo, tp) {
	var myConn = new XHConn();
	if (!myConn) alert("Navegador sin soporte AJAX. Por favor utilice un navegador más actual.");

	var fnWhenDone = function (oXML) {
		var dv = document.getElementById('area_promos');
		dv.innerHTML = oXML.responseText;
	};

	myConn.connect("modules/interfaz_promos_public.php", "POST", "op=" + op + "&idp=" + promo + "&idt=" + tp, fnWhenDone);
}

/* para las ofertas */
function comprobar_fin_price(){
	frm=document.forms['form1'];
	priceinic=frm.ppriceinic.value;
	pricefin=frm.ppricefin.value;
	
	if(priceinic!= 'NULL' && pricefin!= 'NULL') {
		if(pricefin<priceinic)	frm.ppricefin.value=priceinic;
	}	
}
/* para las ofertas */

/* para las paginaciones */
function cambiar_pag(p_salto){
    frm=document.forms['formpaginar'];

    frm.p_act.value=p_salto;
	frm.submit();
}
/* para las paginaciones */
-->