function getLinkForSearch()
{ 
	var tmpStr = document.all.txtVal.value
	if (document.all.txtVal.value!="") {
	window.location.href = "listcat.asp?ID=-1&txtVal=" + tmpStr;
	}
}

function checkForEnter(evt)
{
	var charCode = (evt.keyCode)

	if (charCode == 13) {
		getLinkForSearch()
		return false
	}
	return true
}


function sendMail()
{

	//if document.all.txtMail.value == "e-M@il"
	//	alert ("Inserire il proprio indirizzo email!")
	//else {
		var tmpStr = "MailMailingList.asp?mailcliente=" + document.all.txtMail.value

		var newwindow=window.open(tmpStr, '', 'width=500,height=350,scrollbars=no')
		window.opener=self
	//}
}

function checkForEnter_Mail(evt)
{
	var charCode = (evt.keyCode)

	if (charCode == 13) {
		sendMail()
		return false
	}
	return true
}

