/* This function validates the length of the department code entered */
//Kiruthiga modified this code for ROM 50 on 10/9/2004
function fnnValidateDeptCode(liDeptCode)
{
// This function validates whether the entered department code is a number or not
//liDeptCode=fnsTrim(liDeptCode);
var liSize = liDeptCode.length;
if( (liSize < 5 || liSize > 10) || fnbValidatePassword(liDeptCode))
{
alert(“Introduzca un código válido( Código de departamento )”);
document.frmCounter.CODE.value=”";
document.frmCounter.CODE.focus();
return;
}
// This function is to be commented during actual cgi implementation
//29th March 2003 as per the new request CGI alert removed by Mandira
//fnnDisplayCGI(liDeptCode);
fnnInvokeCgi();
}
/* This function will invoke the necessary cgi to be sent to the server */
function fnnInvokeCgi()
{
var lsForm=document.frmCounter;
lsForm.method = “get”;
lsForm.target = “_self”;
lsForm.action = “/COUNT/DEPT/DeptEnter”;
lsForm.submit();
}
/* This function will display the the cgi invoked when the department code is entered */
function fnnDisplayCGI(liDeptCode)
{
alert(“The CGI called is /COUNT/DEPT/DeptEnter?CODE=” + liDeptCode);
}


L'Agence pour l'Enseignement Français à l'Étranger
L'Alliance Française
Le Ministère de L'Education Nationale Française