function reset(f1)
		{
		f1.titulo.value="";
		f1.isbn.value="";
		f1.autor.value="";
		f1.coleccion.value="0";
		f1.valores.value="-";
		f1.genero.value="-";
		f1.edad.value="0";
		
//alert ('salto');
} //final funcion

function submit(f1)
{
	f1.submit();
	//alert("submito");
}

//################# funciones de selectores

//para ordenar por novedad o alfabetico (titulo) 
function carga1(){
	
//alert ("cambio 1");
//vOrd1=window.document.getElementById('ord1').value;
document.formorden.submit();
//window.location=('resultado_busqueda.asp?ord1='+vOrd1);

}  

//para mostrar tantos resultados
function carga2(){
//alert ("cambio 2");
vnp=window.document.getElementById('np').value;
window.location=('resultado_busqueda.asp?np='+vnp);


}  

//orden ascendente o descendente
function carga3(){
//alert ("cambio 3");
vasds=window.document.getElementById('asds').value;
window.location=('resultado_busqueda.asp?asds='+vasds);
}  


//############################# 

function MM_findObj(n, d) { //v4.01
  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.divs&&i<d.divs.length;i++) x=MM_findObj(n,d.divs[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  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=='block')?'block':(v=='none')?'none':v; }
    obj.display=v; }
}
function loadSWF(s, w, h, v, q, bg, m, wm, sc)
{
	var archivo=s;
	var ancho=w;
	var alto=h;
	var version=v;
	var quality=q;
	var bgcolor=bg;
	var muestraMenu=m;
	var wmode=wm;
	var escala=sc;
	document.write('<object clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width='+ancho+' height='+alto+'>\n');
	document.write('<param name="movie" value='+archivo+' />\n');
	document.write('<param name="quality" value='+quality+' />\n');
	document.write('<param name="bgcolor" value='+bgcolor+' />\n');
	document.write('<param name="menu" value='+muestraMenu+' />\n');
	document.write('<param name="wmode" value='+wmode+' />\n');
	document.write('<param name="scale" value='+escala+' />\n');
	document.write('<embed src='+archivo+' quality='+quality+' bgcolor='+bgcolor+' wmode='+wmode+' scale='+escala+' menu='+muestraMenu+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+'></embed>');
	document.write('</object>\n');
}