function submitform()
{
	var txt = document.myform.txtsearch.value;
	txt = txt.replace(/^\s+|\s+$/g, '') ;
	txt = txt.split(" ").join("-");
	document.myform.action = "cautare/" + txt; 
  	document.myform.submit();
}
