function ShowCalculator( groupid, eid )
{
var fenetre;
fenetre = ouvrirpopup( "eqs/eq" + groupid + "_" + eid + ".html" );
}

function ouvrirpopup( url ) 
{
width = 480;
height = 480;
var winl = (screen.width - width) / 2;
var wint = (screen.height - height) / 2;

redim = 'NO';
nom="popup";
menu= 'NO';
var stats = "toolbar=no,scrollbars=no,scrolling=no,resizable=no,menuBar=no,width="+width+",height="+height+",left=" + winl + ",top=" + wint;
var fenetre = window.open( url, nom, stats );
fenetre.focus();
return fenetre;
}

function ValidEntry( val ) 
{
var i;
var oneChar;

if( ( val== "" ) || (  val == null ) )
	{
	return false
	}
for( i = 0; i < inputVal.length; i++ ) 
	{
	oneChar = inputVal.substring( i, i + 1 )
	if( oneChar != "-" && oneChar != "." && oneChar < "0" || oneChar > "9") 
		{
		return false
		}
	}
return true
}

function AlertInvalid()
{
alert( "One or more fields were left blank\nOr one of the values given isnt a number\nFill in all fields with numbers/nand retry" );
}