
function go() {

		//alert(escape(document.form1.url.value));

	if (document.f.q.value!="") {
		//window.open("http://www.google.pt/search?hl=pt-PT&ie=UTF-8&q=" + escape(document.form1.url.value));
		document.f.submit();
	}
	return false;
}

function sizewin() {
//    moveTo(0,0);
//    resizeTo(screen.availWidth , screen.availHeight);
	var h;
	//com barra: 150; sem barra: 114
	h=document.body.clientHeight-165;
	//alert(h);
	if (h>0) {document.images['altura'].height=h}	
	return true;
}

function sizewin1() {
	var h;
	//h=document.body.clientHeight-1;
	h=document.documentElement.clientHeight-575;
	if (h>0) {document.images['altura'].height=h}	
	//alert (document.images['altura'].height);
	return true;
	
}


function SelectUrl(obj, page) {
var url;
	url=page + obj.options[obj.selectedIndex].value;
	//alert(url);
	window.location.href=url; 
}

function SelectUrl2(obj1, obj2, page) {
var url;
	url=page + obj1.options[obj1.selectedIndex].value + '&' + obj2.options[obj2.selectedIndex].value;
	alert(url);
	window.location.href=url; 
}

function SelectUrlDin(obj1, obj2, obj3, page) {
var url;
	url=page + obj1.options[obj1.selectedIndex].value + '&' + obj2.options[obj2.selectedIndex].value + '&' + obj3.options[obj3.selectedIndex].value;
	//alert(url);
	window.location.href=url; 
}

var popUpWin=0;


function popUpWindow(URLStr, width, height)
{
  if(popUpWin) {
    if (!popUpWin.closed) {
		popUpWin.focus();
	} else {
		popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height);
		popUpWin.focus();
	}
  } else { 
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height);
	popUpWin.focus();
  }
}
