
function C_OpenWindow(theURL,winName,features) { //v2.0
	x = window.open(theURL,winName,features);
	x.focus();
}

function Valido(){
//	alert(self.event.keyCode);
	if ((self.event.keyCode<48 || self.event.keyCode>57) && (self.event.keyCode!=13))
		return false;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  x = window.open(theURL,winName,features);
  x.focus();
}

function MM_openWindowCenter(theURL,winName,altura,largura) { //v2.0

//	window.screen.height
var left = (window.screen.width - largura) / 2;
var top = (window.screen.height - altura) / 2 - 50;

//alert(window.screen.height + ' -- '  + window.screen.width);
  x = window.open(theURL,winName,'width='+largura+',height='+altura+',left='+left+',top='+top+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=no');
  x.focus();
}

function verificaPesquisa(form){
	if (form.searchTerm.value.length < 3) {
		alert ('A informação introduzida é insuficiente.');
		form.searchTerm.focus();
		return false;		
	}

	return true;
}