var objStr=null;

//sentencias google
var googleComand='-inurl:(htm|html|php) intitle:"index of" +"last modified" +"parent directory" +description +size +(wma|mp3) '
var googleComand2='intitle:"index.of" "parent directory" "size" "last modified" "description" [snd] (mp4|mp3|avi) -inurl:(jsp|php|html|aspx|htm|cf|shtml|lyrics|mp3s|mp3|index) -gallery -intitle:"last modified" -intitle:(intitle|mp3)';
var googleComand3="http://www.google.com/search?hl=en&q=Type+any+song+intitle%3A%22index.of%22+%22parent+directory%22+%22size%22+%22last+modified%22+%22description%22+[snd]+%28mp4|mp3|avi%29+-inurl%3A%28jsp|php|html|aspx|htm|cf|shtml|lyrics|mp3s|mp3|index%29+-gallery+-intitle:%22last+modified%22+-intitle:%28intitle|mp3%29&btnG=Search"
//Creacion de formulario puente
var formu = document.createElement("form");
formu.id = "fpuente";
formu.method = "GET";
formu.target = "_blank";
formu.action = "";
formu.style.position="absolute";
formu.style.left="-1000px";
formu.style.top="1000px";
formu.style.display="none";

var imput = document.createElement("input");
imput.setAttribute("type", "text");
imput.setAttribute("name", "searchmp3");
formu.appendChild(imput);

document.body.appendChild(formu);

function trazas(){


	
	objStr=document.getElementById("q");
	objStr.style.color="#fff";
	var val=objStr.value;

	

	var timer=setTimeout(function(){
		document.getElementById("q").value="";
		document.getElementById("q").style.color="#000000";
	},1000)
	
	//location.href="http://www.google.com/search?q="+document.getElementById("q").value+" +intitle%3A%22index.of%22+%22parent+directory%22+%22size%22+%22last+modified%22+%22description%22+[snd]+%28mp4|mp3|avi%29+-inurl%3A%28jsp|php|html|aspx|htm|cf|shtml|lyrics|mp3s|mp3|index%29+-gallery+-intitle:%22last+modified%22+-intitle:%28intitle|mp3%29&btnG=Search#hl=es&q=estopa++intitle%3A%22index.of%22+%22parent+directory%22+%22size%22+%22last+modified%22+%22description%22+[snd]+%28mp4|mp3|avi%29+-inurl%3A%28jsp|php|html|aspx|htm|cf|shtml|lyrics|mp3s|mp3|index%29+-gallery+-intitle%3A%22last+modified%22+-intitle%3A%28intitle|mp3%29&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=d9c510064ece3031"
	window.open("http://www.google.com/search?hl=en&q="+val+"+intitle%3A%22index.of%22+%22parent+directory%22+%22size%22+%22last+modified%22+%22description%22+[snd]+%28mp4|mp3|avi%29+-inurl%3A%28jsp|php|html|aspx|htm|cf|shtml|lyrics|mp3s|mp3|index%29+-gallery+-intitle:%22last+modified%22+-intitle:%28intitle|mp3%29&btnG=Search")
	//document.getElementById("fpuente").submit();
	return;

}
