//JavaScript Document
//function isEmpty(s)
//function isEmailAddr(email)
//function rand_number(n)
//function popUpWindow(URLStr, width, height)
//function copyright()
//function CallToPDF()
//COUNTRY DROP-DOWN SCRIPT (EMEA/WW)



//----------------------------------------------------------------
 // Verification string(s)== Null
function isEmpty(s){
	return( (s == null) || (s.length == 0) )
}

//----------------------------------------------------------------
// Check email address validity
function isEmailAddr(email){
	var check = /^.+@.+\..{2,4}$/;

	if ( check.test(email) )
		return true;
	else
		return false;
}
	
//----------------------------------------------------------------
// Renvoie un nombre aléatoirement compris entre 0 et n-1
function rand_number(n)
{
	var x;
	x=Math.round(Math.random()*100);
	x%=n;
	return x;
}

//----------------------------------------------------------------
// Ouverture d'un popup
//appel : href="javascript:popUpWindow('fenetre.html',485,500)"
var popUpWin=0;

function popUpWindow(URLStr, width, height){
if(popUpWin){
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height);
}

//----------------------------------------------------------------
// Affichage du copyright dans les pages ASP et non-snf+
function copyright()
{
	document.write("&#169; 2009 Hewlett-Packard Development Company, L.P.");
}

//----------------------------------------------------------------
// Mention Adobe Acrobat pour PDF
function CallToPDF()
{
	document.write("<table width='560' border='0' cellspacing='0' cellpadding='0'><tr><td align='left' width='560' valign='top'><table cellpadding='0' cellspacing='0' border='0' width='560'><tr><td align='left' width='64' valign='top'><table cellpadding='0' cellspacing='0' border='0'><tr><td valign='center' width='70' align='center'><a href='http://www.adobe.fr/products/acrobat/readstep2.html' target='_blank'><img src='../../images/boutons/Logo_AdobeAcrobat.jpg' width='64' height='64' alt='Cliquez ici pour télécharger la dernière version d'Adobe Reader' border='0'></a></td></tr></table></td><td align='left' width='10' valign='top'><img src='http://welcome.hp-ww.com/img/s.gif' width='10' height='20' alt=''></td><td align='left' width='486' valign='center'><table border='0' cellspacing='0' cellpadding='0'><tr><td width='486' valign='top' align='left' class='small'>Les fichiers PDF sur cette page peuvent être lues en ligne/imprimer avec Adobe® Acrobat® Reader.</td></tr></table><table cellpadding='0' cellspacing='0' border='0'><tr><td valign='top' width='0' align='left'><img src='http://welcome.hp-ww.com/img/s.gif' width='0' height='1' alt=''></td><td valign='top' align='left' class='color003366' width='10'><span class='small'>&raquo;</span></td><td valign='top' align='left'><a href='http://www.adobe.fr/products/acrobat/readstep2.html' target='_blank' class='small' lang='fr'>Télécharger la dernière version d'Adobe® Acrobat® Reader ici</a></td></tr></table><table cellpadding='0' cellspacing='0' border='0'><tr><td valign='top' width='0' align='left'><img src='http://welcome.hp-ww.com/img/s.gif' width='0' height='1' alt=''></td><td valign='top' align='left' class='color003366' width='10'><span class='small'>&raquo;</span></td><td valign='top' align='left'><a href='http://ww?w.adobe.com/support/downloads/detail.jsp?hexID=88de' target='_blank' class='small' lang='fr'>Extra  accessibility features - MakeAccessible Plug-in (English)</a></td></tr></table></td></tr></table></td></tr></table>");
}
