// Genera una finestra indipendente con un messaggio all`interno
function fnOpenMsgWindow(msg, title, label, width, height, top, left)
{  	if (!(top > '0'))	{		top = (window.screen.availHeight / 2) - (height / 2);	}
	if (!(left > '0'))	{		left = (window.screen.availWidth / 2) - (width / 2);	}
	var start_html = "<HTML><HEAD><TITLE>"+title+"</TITLE><link href='/Include/General.css' rel='Stylesheet' type='text/css'></HEAD>"+"<BODY onBlur='self.focus()' background='/images/Background/Popup.gif'><CENTER><TABLE BORDER='0' cellPadding='0' cellSpacing='0' width='90%'>";	var label_html = "<TR><TD ALIGN='Center' class='BlackMediumBold'>"+label+"</TD></TR>";   
	var msg_html = "<TR><TD ALIGN='Center' class='BlackMediumNormal'>"+msg+"</TD></TR>";   
	var space_html = "<TR><TD class='BlackMediumNormal'>&nbsp;</TD></TR>";   		var end_html = "<TR><TD ALIGN='center'>";
	end_html+="<a href='javascript:self.close()'><img src='/images/buttons/close.gif' border='0' hspace='2'></a>";
	end_html+="</TD></TR></TABLE></CENTER></BODY></HTML>";   	var option = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+top+",left="+left;
	popup = window.open("","Message",option);  	popup.document.write(start_html+space_html+label_html+msg_html+space_html+end_html);  	popup.document.close();
	//return false;}
//---------------------------------------------------------------------------------------------
// Genera una finestra indipendente
function fnOpenWindow(address, target, toolbar, location, directories, status, menubar, scrollbars, resizable, width, height, top, left) 
{
	if (!(top > '0'))	{		top = (window.screen.availHeight / 2) - (height / 2);	}
	if (!(left > '0'))	{		left = (window.screen.availWidth / 2) - (width / 2);	}
	var option = "toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",width="+width+",height="+height+",top="+top+",left="+left;
	objWindow = window.open(address, target, option); 
	objWindow.focus();
	//return false;}
//---------------------------------------------------------------------------------------------
function fnOpenWinBio(strAthlCode)
{
	fnOpenWindow('/Results/Bio/' + strAthlCode + '.html','Biography','no','no','no','no','no','yes','yes','520','420','','');
}
//---------------------------------------------------------------------------------------------

