function AbrirJanela()
{ window.open("https://www.fcporto.pt/includes/login_FCPorto.asp", 'Window_Login','height=180,width=300,alwaysraised=1,status=0,dependent=0,toolbar=0,menuBar=0,scrollBars=0,resizable=0'); }

function AbrirJanelaPFJ()
{ window.open("https://www.fcporto.pt/includes/login_FCPortoPFJ.asp", 'Window_Login','height=180,width=300,alwaysraised=1,status=0,dependent=0,toolbar=0,menuBar=0,scrollBars=0,resizable=0'); }


function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
}

function Trim(bigString)
{
	var sAux
	
	sAux = bigString.replace(/^(\s+)?(.*\S)(\s+)?$/, '$2');
	return sAux.replace(/^(\s+)?(\s+)?$/, '$2');
}

function popup(url)
{
	newwindow=window.open(url,'name','height=500,width=530,status=0,dependent=0,toolbar=0,menuBar=0,scrollbars=yes,resizable=0,scrolling=auto');
	if (window.focus) {newwindow.focus()}
}
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


function AbrirJanelaDev()
{ window.open("https://www.fcporto.pt/includes/login_FCPortoDev.asp", 'Window_Login','height=180,width=300,alwaysraised=1,status=0,dependent=0,toolbar=0,menuBar=0,scrollBars=0,resizable=0'); }

function openWindowPopUp(pathImagem,imgName,imgFeatures)
{
	var newWin=window.open('','',imgFeatures); 
	newWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>'+imgName+'</title></head>'); 
	newWin.document.write('<body><center><img src="'+pathImagem+'" border=0></center></body></html>'); 
	newWin.document.close(); 
}
