<!-- // Start of AdSubtract JavaScript block; you can ignore this.
     // It is used when AdSubtract blocks cookies or pop-up windows.
document.iMokie = "cookie blocked by AdSubtract";
document.iMferrer = "referrer blocked by AdSubtract";
function iMwin() {
	this.location = "";
	this.frames = new Array(9);
	this.frames[0] = this;
	this.frames[1] = this;
	this.frames[2] = this;
	this.frames[3] = this;
	this.frames[4] = this;
	this.frames[5] = this;
	this.frames[6] = this;
	this.frames[7] = this;
	this.frames[8] = this;
	this.length = 0;
}
// End of AdSubtract JavaScript block. -->
<!--
function MM_preloadImages() { //v3.0
  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() { //v3.0
  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_findObj(n, d) { //v4.0
  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]; 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 MM_swapImage() { //v3.0
  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 ValidarBuscar() {
 var a  
 a = new String(document.frmBusquedaGral.SearchKey.value);  
 a = a.replace(" ",""); 
 a = a.replace("_","");  
 if (a=="") {
	alert('Favor de ingresar el texto que deseas buscar');  
	ValidaForm=false;
 }else{
	if (a.length<4) {
		alert('Favor de ingresar una palabra con al menos tres caracteres.');
		ValidaForm=false;
	}else{
		ValidaForm=true;
		document.frmBusquedaGral.submit()  
	}
  }		
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Esmac() {
   // resize blank placeholder div so IE 5 on mac will get all clicks in window
    if ((navigator.appVersion.indexOf('MSIE 5')!=-1) && (navigator.platform.indexOf('Mac')!=-1))
		return true;
	return false;
}
var mac=Esmac();

function CambiaURL(pagina) {     
  var a
  if (pagina!="null") {	
	if (pagina.split("::")[1] ==null) {	    
		//selecciono un producto//
		a = new String (document.frm_Productos.D1.options[document.frm_Productos.D1.selectedIndex].value);
		document.frm_Productos.action = pagina + "?CAT=" + a.split("::")[1];
	}else{
		//selecciono una categoria//
		document.frm_Productos.action = pagina.split("::")[0] + "?CAT=" + pagina.split("::")[1];	
	}	
	document.frm_Productos.submit();
	}
}


//-->
