



function swapImg(target, source, stat){

  eval("document."+target+".src = '"+source+"'");

}



function printDoc(section){

  var theURL = "../catalogo/print.asp?section="+section; var myW=750; var myH=600;

  var features = "menubar=no,scrollbars=yes,width=750,height=600";

  if(window.screen){

    var myLeft = (screen.width-myW)/2;

    var myTop = (screen.height-myH)/2;

	features+=",left="+myLeft+",top="+myTop;

  }

  window.open(theURL,"printer",features);

}



function BrowserCheck() {

	var b = navigator.appName

	if (b=="Netscape") this.b = "ns"

	else if (b=="Microsoft Internet Explorer") this.b = "ie"

	else this.b = b

	this.version = navigator.appVersion

	this.v = parseInt(this.version)

	this.ns = (this.b=="ns" && this.v>=4)

	this.ns4 = (this.b=="ns" && this.v==4)

	this.ns5 = (this.b=="ns" && this.v==5)

	this.ie = (this.b=="ie" && this.v>=4)

	this.ie4 = (this.version.indexOf('MSIE 4')>0)

	this.ie5 = (this.version.indexOf('MSIE 5')>0)

	this.min = (this.ns||this.ie)

}

is = new BrowserCheck()

function showPic(foto, CveProducto){
  var theURL = '/productos/catalogo/showPic.asp?codProd='+CveProducto
  window.open(theURL,'Picture','width=750,height=500,menubar=no,scrollbars=yes,resizable=yes');
}
