function controlla_ricerca()
	{
		if(document.getElementById("testo").value == ""){
			alert("Inserire almeno 2 caratteri...");
			document.getElementById("testo").focus();
			return false;
		} else 
		{
		  document.getElementById("searchForm").submit();
		}		
	}

function checkBoxSize() 
{
  if ((document.getElementById('DivSize').style.display=='none')||(document.getElementById('DivSize').style.display=='')) {
  document.getElementById('DivSize').style.display='block';
  } else {
  document.getElementById('DivSize').style.display='none';
  }
}
	
function displayHTML(form) {
  var win = null;
  var inf = document.getElementById("TabOrdine").innerHTML;
  win = window.open("preview.htm", 'popup', 'toolbar = no, status = no');
  win.document.write("<html><head><title>Guitarsland.it: Anteprima di Stampa</title></head><body><img src=images/intro.jpg><br />" + inf + "<div style=\"text-align: center;font-family:arial;font-size:10px\">&nbsp;Guitarsland.it &#169;2008 - Tutti i diritti riservati <br />by Sound Technology srl, Sede: via A.M Caprioli 10, 73100 LECCE (LE)<br />P.IVA: 04369480753</div></body></html>");  
  win.document.close();
  win.print();

}

function emptybox() {
  document.forms[0].testo.value='';
  return(true);
}

window.onerror=function(m,u,l)
{
	window.status = "Java Script Error: "+m;
	return true;
}
