<?php
/**
* $Id: lang.php 384 2003-05-13 11:44:07Z courou $
*
* Author : courou@users.sourceforge.net
* Website : http://allreponse.ath.cx
*
* Support : http://sourceforge.net/projects/myphpmoney/
* CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/myphpmoney/
*/
if (!defined('__DOC__')) { define('__DOC__', 'YES');
require_once '../config/settings.inc.php';
?>
<!--
// Global js value
var MiseJour = '<h1 class="center"><?php echo $_VAR['JS_DYNAMIQUE_29']; ?><br /><img src="?flag=progress" height="20" width="300" alt="<?php echo $_VAR['JS_DYNAMIQUE_30']; ?>" title="<?php echo $_VAR['JS_DYNAMIQUE_30']; ?>" /></h1>';
var Name_Search = '<?php echo __ANOTHER_ACCOUNT__; ?>';
var txt1 = '<span class="dynamique"><?php echo $_VAR['MESS_CALENDAR_NEW']; ?> : <input class="Dynamique" type="text" name="temp_cat" value="<?php echo $_VAR['MESS_CALENDAR_NEW']; ?>" maxlength="50" onchange="Add_Cat(this.form);" /> <?php echo $_VAR['MESS_PART_SIMPLE']; ?> : <input class="Dynamique" type="text" name="temp_tiers" value="<?php echo $_VAR['MESS_PART_SIMPLE']; ?>" maxlength="50" onchange="Add_Tiers(this.form);" /></span>';
var txt2 = '<span class="dynamique"><?php echo $_VAR['MESS_PART_SIMPLE']; ?> : <input class="Dynamique" type="text" name="temp_tiers" value="<?php echo $_VAR['MESS_PART_SIMPLE']; ?>" maxlength="50" onchange="Add_Tiers(this.form);" /></span>';
var valeur,select= '';
var Exist,checkflag,checkflags='false';
var i=0;
// Détecter et renvoie faux si touche entrer presser
// @param e = l'evenement
function process_keypress(e) {
var whichCode = -1
if (n4) var whichCode = e.which // Navigator 4x
else // Internet Explorer 4x ou + == utilisation window.event
if (window.event.type == 'keypress') whichCode = window.event.keyCode
if (whichCode == 13) { // détection touche ENTER ou retour chariot ASCII
alert("<?php echo $_VAR['JS_DYNAMIQUE_34']; ?>");
return false;
}
} // end of function process_keypress
<?php if (__ENTER_KEYPRESS__) {?> document.onkeypress = process_keypress; <?php } ?>
// Verif the selected LANG for the general design
// @param of thisform le formulaire
function Verif_MOUV_LANG(thisform) {
var list3 = thisform.MODIF_CLE_LANG;
if (list3.options[list3.selectedIndex].value == '') {
alert("<?php echo $_VAR['LANG_OPTION_ADD']; ?>");
thisform.MODIF_CLE_LANG.options[0].selected = true;
return false;
} else {
javascript:thisform.submit();
}
} // end of function Verif_MOUV_LANG
// Verif the selected DATE for the account.php
// @param of thisform le formulaire
function Verif_MOUV_DATE(thisform) {
var list1 = thisform.The_mois;
if (list1.options[list1.selectedIndex].value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_49']; ?>");
thisform.The_mois.options[0].selected = true;
return false;
} else {
javascript:thisform.submit();
}
} // end of function Verif_MOUV_DATE
// Verif the selected ACCOUNT for the account.php
// @param of thisform le formulaire
function Verif_MOUV_ACCOUNT(thisform) {
var list2 = thisform.ID;
if (list2.options[list2.selectedIndex].value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_50']; ?>");
thisform.ID.options[0].selected = true;
return false;
} else {
javascript:thisform.submit();
}
} // end of function Verif_MOUV_ACCOUNT
// Verif the form for added the news operation for the calendar
// @param thisform le docuemtn form
function Verif_Form_Calendar(thisform) {
if (thisform.S_date.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_1']; ?>");
thisform.S_date.focus();
return false;
}
else if (thisform.S_date.value != '') {
var amin=1900;
var amax=2038;
var separateur='-';
var abreg = thisform.S_date.value;
var afocus = thisform.S_date;
var j = (abreg.substring(0,2));
var m = (abreg.substring(3,5));
var a = (abreg.substring(6));
var d2 = new Date(a,m-1,j);
j2 = d2.getDate();
m2 = d2.getMonth()+1;
a2 = d2.getFullYear();
if (abreg.length < 10) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_2']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(j))||(j<1)||(j>31)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_3']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(m))||(m<1)||(m>12)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_4']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(a))||(a<amin)||(a>amax)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_5']; ?>");
afocus.focus();
return false;
}
else if ((abreg.substring(2,3)!=separateur) || (abreg.substring(5,6)!=separateur)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_6']; ?> " + separateur);
afocus.focus();
return false;
}
if ((j!=j2)||(m!=m2)||(a!=a2)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_7']; ?> "+ abreg +" <?php echo $_VAR['JS_DYNAMIQUE_8']; ?>");
afocus.focus();
return false;
}
} // end of else if document.forms["saisie"].S_date
if (thisform.S_cat.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_15']; ?>");
thisform.S_cat.focus();
return false;
}
var caracteres = '|';
var tempo = thisform.S_cat.value;
var tmp = tempo.indexOf(caracteres);
if (tmp == -1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_16']; ?>");
thisform.S_cat.focus();
return false;
}
var S_cat_array=thisform.S_cat.value.split('|');
if (thisform.S_cat.value != '') {
if (thisform.S_compte.value == S_cat_array[2]) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_17']; ?>");
thisform.S_cat.focus();
return false;
}
else if (thisform.news_cat.value == 'NOT_TOUCH' && S_cat_array[0] == '<?php echo __ANOTHER_ACCOUNT__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_18']; ?>");
return false;
}
else if (thisform.news_tiers.value == 'NOT_TOUCH' && S_cat_array[0] == '<?php echo __ANOTHER_ACCOUNT__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_19']; ?>");
return false;
}
else if (thisform.news_tiers.value == 'NOT_TOUCH' && S_cat_array[0] != '<?php echo __ANOTHER_ACCOUNT__; ?>' && S_cat_array[1] == '<?php echo __ANOTHER_ACCOUNT__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_19']; ?>");
return false;
}
}
for (var i=0;i<thisform.news_cat.value.length;i++) {
var Tempo6=thisform.news_cat.value.substring(i,i+1)
if (Caractere.indexOf(Tempo6)!=-1) {
Caractere6 = Caractere.replace(Tempo6,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo6 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere6);
return false;
}
}
for (var j=0;j<thisform.news_tiers.value.length;j++) {
Tempo7=thisform.news_tiers.value.substring(j,j+1)
if (Caractere.indexOf(Tempo7)!=-1) {
Caractere7 = Caractere.replace(Tempo7,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo7 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere7);
return false;
}
}
if (thisform.S_compte.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_14']; ?>");
thisform.S_compte.focus();
return false;
}
var Nb_char = 50;
if (thisform.S_commentaires.value.length > Nb_char ) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_20']; ?> " + Nb_char + " <?php echo $_VAR['JS_DYNAMIQUE_21']; ?>");
thisform.S_commentaires.value = thisform.S_commentaires.value.substr(0, Nb_char);
thisform.S_commentaires.focus();
return false;
}
for (var j=0;j<thisform.S_commentaires.value.length;j++) {
Tempo14=thisform.S_commentaires.value.substring(j,j+1)
if (Caractere.indexOf(Tempo14)!=-1) {
Caractere7 = Caractere.replace(Tempo14,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo14 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere7);
return false;
}
}
if (thisform.S_periode.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_13']; ?>");
thisform.S_periode.focus();
return false;
}
for (var i=0;i<thisform.numero_id.value.length;i++) {
var Chiffre5=thisform.numero_id.value.substring(i,i+1)
if (Chiffre.indexOf(Chiffre5)==-1) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>");
thisform.numero_id.value = '';
thisform.numero_id.focus();
return false;
}
}
if (parseFloat(thisform.paie.value) == 0) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_11']; ?> " + thisform.paie.value + " \n <?php echo $_VAR['JS_DYNAMIQUE_12']; ?>");
thisform.paie.focus();
return false;
}
} // end of function Verif_Form_Calendar
//Verif the form for the add the operation
// @param thisform le document form
function Verif_ADD(thisform) {
if (thisform.date.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_1']; ?>");
thisform.date.focus();
return false;
}
else if (thisform.date.value != '') {
var amin=1900;
var amax=2038;
var separateur='-';
var abreg = thisform.date.value;
var afocus = thisform.date;
var j = (abreg.substring(0,2));
var m = (abreg.substring(3,5));
var a = (abreg.substring(6));
var d2 = new Date(a,m-1,j);
j2 = d2.getDate();
m2 = d2.getMonth()+1;
a2 = d2.getFullYear();
if (abreg.length < 10) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_2']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(j))||(j<1)||(j>31)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_3']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(m))||(m<1)||(m>12)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_4']; ?>");
afocus.focus();
return false;
}
else if ((isNaN(a))||(a<amin)||(a>amax)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_5']; ?>");
afocus.focus();
return false;
}
else if ((abreg.substring(2,3)!=separateur) || (abreg.substring(5,6)!=separateur)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_6']; ?> " + separateur);
afocus.focus();
return false;
}
if ((j!=j2)||(m!=m2)||(a!=a2)) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_7']; ?> "+ abreg +" <?php echo $_VAR['JS_DYNAMIQUE_8']; ?>");
afocus.focus();
return false;
}
} // end of else if document.forms["saisie"].date
if (thisform.cat.options[thisform.cat.selectedIndex].value == '0') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_22']; ?>");
thisform.cat.focus();
return false;
}
for (var i=0;i<thisform.numero_id.value.length;i++) {
var Chiffre6=thisform.numero_id.value.substring(i,i+1)
if (Chiffre.indexOf(Chiffre6)==-1) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>");
thisform.numero_id.value = '';
thisform.numero_id.focus();
return false;
}
}
if (thisform.news_cat.value == 'NOT_TOUCH' && thisform.cat.options[thisform.cat.selectedIndex].value == '<?php echo __ANOTHER_ACCOUNT__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_18']; ?>");
return false;
}
else if (thisform.news_tiers.value == 'NOT_TOUCH' && thisform.cat.options[thisform.cat.selectedIndex].value == '<?php echo __ANOTHER_ACCOUNT__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_19']; ?>");
return false;
}
else if (thisform.news_tiers.value == "NOT_TOUCH" && thisform.cat.options[thisform.cat.selectedIndex].value != "<?php echo __ANOTHER_ACCOUNT__; ?>" && thisform.tiers.options[thisform.tiers.selectedIndex].value == "<?php echo __ANOTHER_ACCOUNT__; ?>") {
alert('<?php echo $_VAR["JS_DYNAMIQUE_23"]; ?> ' + thisform.cat.options[thisform.cat.selectedIndex].value);
return false;
}
for (var i=0;i<thisform.news_cat.value.length;i++) {
var Tempo6=thisform.news_cat.value.substring(i,i+1)
if (Caractere.indexOf(Tempo6)!=-1) {
Caractere6 = Caractere.replace(Tempo6,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo6 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere6);
return false;
}
}
for (var j=0;j<thisform.news_tiers.value.length;j++) {
Tempo7=thisform.news_tiers.value.substring(j,j+1)
if (Caractere.indexOf(Tempo7)!=-1) {
Caractere7 = Caractere.replace(Tempo7,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo7 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere7);
return false;
}
}
var Nb_char = 50;
if (thisform.commentaires.value.length > Nb_char ) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_20']; ?> " + Nb_char + " <?php echo $_VAR['JS_DYNAMIQUE_21']; ?>");
thisform.commentaires.value = thisform.commentaires.value.substr(0, Nb_char);
thisform.commentaires.focus();
return false;
}
for (var j=0;j<thisform.commentaires.value.length;j++) {
Tempo12=thisform.commentaires.value.substring(j,j+1)
if (Caractere.indexOf(Tempo12)!=-1) {
Caractere7 = Caractere.replace(Tempo12,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo12 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere7);
return false;
}
}
if (parseFloat(thisform.paie.value) == 0 && thisform.cat.options[thisform.cat.selectedIndex].value != '<?php echo __OPEN_PART__; ?>') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_11']; ?> " + thisform.paie.value + "");
thisform.paie.focus();
return false;
}
} // end of Verif_ADD
// Verif the added for the calendnar
// @param of thasform le formulaire
// @param of thisfield la condition a executer
// @param of strings le message a afficher
function Verif_Add_Calendar(thasform,condition,strings) {
var nombre = 0;
var champs = thasform.elements['IDCOMPTE[]'];
if (strings) {
if (strings == 1) { var mod="<?php echo $_VAR['MESSAGE_JS']['JS_CALENDAR_DELETE']; ?>"; }
if (strings == 2) { var mod="<?php echo $_VAR['MESSAGE_JS']['JS_CALENDAR_SAISIR']; ?>"; }
}
if (champs) {
// IF JUST 1 CHECKBOX BECAUSE JUST UNDEFINED LENGHT
if (typeof(champs.length)=='undefined') {
if (champs.checked == true) nombre++
}
for (g = 0; g < champs.length; g++) {
if (champs[g].checked == true) nombre++;
}
if (nombre < 1) {
alert("<?php echo $_VAR['MESSAGE_JS']['JS_CALEND_NO_ACT']; ?>");
return false;
} else {
if (condition == 1) {
if (confirm(mod + " " + nombre + " <?php echo $_VAR['MESSAGE_JS']['JS_CALENDAR_TOOLS']."".$_VAR['MESSAGE_JS']['JS_ACCOUNT_LANG_2']; ?>")) {
return true;
} else {
return false;
}
}
if (condition == 0) { return true; }
return false;
}
nombre = 0;
} else {
return false;
}
} // end of function Verif_Add_Calendar
// Verified the new password for the current user
// @param form le document form
function Verif_passe(form) {
if (form.old_pass.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_31']; ?>");
form.old_pass.focus();
return false;
}
if (form.News_Passe1.value.length<6 || form.News_Passe1.value.length>15) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_32']; ?>");
form.News_Passe1.focus();
return false;
}
if (form.News_Passe1.value != form.News_Passe2.value) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_33']; ?>");
form.News_Passe2.focus();
return false;
}
} // end of function Verif_passe
// Verif the form for added the news account
// @param thisform le document form
function Verif_Change_Form(thisform) {
if (thisform.detail_compte.value == "") {
alert("<?php echo $_VAR['LANG_ACCOUNT_12']; ?>");
thisform.nom_compte.value = '';
return false;
} else {
thisform.nom_compte.value = thisform.detail_compte.value;
if (thisform.paie.value == '') thisform.paie.value = '0';
}
} // end of function Verif_Form
// Verif the form for added the news account
// @param thisform le document form
function Verif_Form(thisform) {
if (thisform.detail_compte.value == '') {
alert("<?php echo $_VAR['LANG_ACCOUNT_12']; ?>");
thisform.nom_compte.value = '';
return false;
}
if (thisform.nom_compte.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_39']; ?>");
return false;
}
for (var i=0;i<thisform.nom_compte.value.length;i++){
var Tempo5=thisform.nom_compte.value.substring(i,i+1)
if (Caractere.indexOf(Tempo5)!=-1){
Caractere5 = Caractere.replace(Tempo5,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo5 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere5);
thisform.nom_compte.focus();
return false;
}
}
var caracteres='-0123456789.';
var tempo;
for (var i=0;i<thisform.paie.value.length;i++){
tempo=thisform.paie.value.substring(i,i+1);
if (caracteres.indexOf(tempo)==-1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_40']; ?>");
thisform.paie.focus();
return false;
}
}
} // end of function Verif_Form
// Verif the form for calculate the emprunt
// @param thisform le document form
function Verif_emprunt(thisform) {
var M0 = thisform.MT.value; var M1 = thisform.taux.value;
var M2 = thisform.duree.value; var M3 = thisform.REMB.value;
var M_Resultat,M_Restes,M_Lang;
if (thisform.choix_duree.value != '' && M2 != '') { // Verified if date >= 30 year
if (thisform.choix_duree.value == 1) { M_Resultat = 12; M_Lang = '<?php echo $_VAR['SIMUL_ENTER_FORM_4']; ?>';}
if (thisform.choix_duree.value == 2) { M_Resultat = 1; M_Lang = '<?php echo $_VAR['SIMUL_ENTER_FORM_5']; ?>';}
M_Restes = M_Resultat * M2;
if (M_Restes >= 361) {
alert("<?php echo $_VAR['AMORTISS_REPONSE']; ?> " + (M_Restes / M_Resultat) + " " + M_Lang);
thisform.choix_duree.focus();
return false;
}
}
if (((M0 != '') && (!numControl(M0,2))) || ((M1 != '') && (!numControl(M1,2))) ||
((M2 != '') && (!numControl(M2,2))) || ((M3 != '') && (!numControl(M3,2)))) {
return false;
}
if ((M0 == '') && (M1 == '') && (M2 == '') && (M3 == '')) {
alert("<?php printf($_VAR['JS_DYNAMIQUE_42'],$_MPM['name']); ?>");
return false;
}
if ((M0 == '' && M1 == '' && M3 == '') || (M1 == '' && M3 == '' && M2 == '') ||
(M3 == '' && M2 == '' && M0 == '') || (M2 == '' && M0 == '' && M1 == '') ||
(M0 == '' && M1 == '') || (M0 == '' && M3 == '') || (M0 == '' && M2 == '') ||
(M1 == '' && M3 == '') || (M1 == '' && M2 == '') || (M3 == '' && M2 == '') ||
(M0 != '' && M1 != '' && M2 != '' && M3 != '')) {
alert("<?php printf($_VAR['JS_DYNAMIQUE_43'],$_MPM['name']); ?>");
return false;
}
if (thisform.MT.value != '') {
var caracteres=' 0123456789.';
var tempo;
for (var i=0;i<thisform.MT.value.length;i++){
tempo=thisform.MT.value.substring(i,i+1)
if (caracteres.indexOf(tempo)==-1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_40']; ?>");
thisform.MT.focus();
return false;
}
}
}
if (thisform.taux.value != '') {
var caracteres=' 0123456789.';
var tempo;
for (var i=0;i<thisform.taux.value.length;i++){
tempo=thisform.taux.value.substring(i,i+1)
if (caracteres.indexOf(tempo)==-1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_40']; ?>");
thisform.taux.focus();
return false;
}
}
}
if (thisform.duree.value != '') {
var caracteres=' 0123456789.';
var tempo;
for (var i=0;i<thisform.duree.value.length;i++){
tempo=thisform.duree.value.substring(i,i+1)
if (caracteres.indexOf(tempo)==-1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_40']; ?>");
thisform.duree.focus();
return false;
}
}
}
if (thisform.REMB.value != '') {
var caracteres=' 0123456789.';
var tempo;
for (var i=0;i<thisform.REMB.value.length;i++){
tempo=thisform.REMB.value.substring(i,i+1)
if (caracteres.indexOf(tempo)==-1){
alert("<?php echo $_VAR['JS_DYNAMIQUE_40']; ?>");
thisform.REMB.focus();
return false;
}
}
}
} // end of function Verif_emprunt
// Verif the form for send file for insert into database
// @param thisform le document form
function Verif_sql(thisform) {
if (thisform.sauvegarde.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_36']; ?>");
thisform.sauvegarde.focus();
return false;
}
var caracteres = '.sql';
var tempo = thisform.sauvegarde.value;
var tmp = tempo.indexOf(caracteres);
if (tmp == -1){
alert("<?php echo $_VAR['MESSAGE_JS']['JS_SAVE_ERROR']; ?>");
thisform.sauvegarde.focus();
return false;
}
} // end of function Verif_sql
// VERIF THE FORM OPTION FOR THE FILE OPEN DOWNLOAD DELETE DISPLAY
// @param theform le docuemtn form
function Verif_OP_FILE(theform) {
var liste = theform.valide_sauvegarde;
if (liste.options[liste.selectedIndex].value == '') {
alert("<?php echo $_VAR['MESSAGE_HT_ACCESS'][10]; ?>");
def(); scroll_bas();
theform.valide_sauvegarde.focus();
return false;
}
} // end of function Verif_OP_FILE
// VERIF THE FORM OPTION MULTIPLE SELECT
// @param theform le document form
function Verif_OP_FILES(theform) {
var nombre = theform.elements['valide_sauvegarde[]'].length;
for (i=0; i<nombre; i++) {
valeur = theform.elements['valide_sauvegarde[]'].options[i].value;
select = theform.elements['valide_sauvegarde[]'].options[i].selected ;
if (valeur != '' && select != false) Exist = true;
else if (valeur == '' && select == true) Exist = false;
}
if (Exist == false) {
alert("<?php echo $_VAR['MESSAGE_HT_ACCESS'][10]; ?>");
return false;
}
} // end of function Verif_OP_FILES
// Verif the form for choice third and part (operate.php)
function Verif_Cat() {
var listcat = document.forms["verif"].S_cat;
if (listcat.options[listcat.selectedIndex].value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_35']; ?>");
document.forms["verif"].S_cat.options[0].selected = true;
return false;
} else {
javascript:document.forms["verif"].submit();
}
} // end of function Verif_Cat
// Verif the form for choice year (operate.php)
function Verif_Year() {
var listcat = document.forms["verif_year"].yearthird;
if (listcat.options[listcat.selectedIndex].value == '') {
alert("<?php echo $_VAR['LANG_CALEND_DIS_0']; ?> ?");
document.forms["verif_year"].yearthird.options[0].selected = true;
return false;
} else {
javascript:document.forms["verif_year"].submit();
}
} // end of function Verif_Year
// Verif the form for modified the cat
// @param thisform le document form
function Verif_modif_cat(thisform) {
if (thisform.news_cat.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_37']; ?>");
thisform.news_cat.focus();
return false;
}
for (var i=0;i<thisform.news_cat.value.length;i++) {
var Tempo7=thisform.news_cat.value.substring(i,i+1)
if (Caractere.indexOf(Tempo7)!=-1) {
Caractere7 = Caractere.replace(Tempo7,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo7 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere7);
return false;
}
}
} // end of function Verif_modif_cat
// Verif the form for modified the tiers
// @param thisform le document form
function Verif_modif_tiers(thisform) {
if (thisform.news_tiers.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_38']; ?>");
thisform.news_tiers.focus();
return false;
}
for (var j=0;j<thisform.news_tiers.value.length;j++) {
var Tempo8=thisform.news_tiers.value.substring(j,j+1)
if (Caractere.indexOf(Tempo8)!=-1) {
Caractere8 = Caractere.replace(Tempo8,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo8 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere8);
return false;
}
}
} // end of function Verif_modif_tiers(
// Verif the form for added the tiers
// @param thisform le document form
function Verif_ajout_tiers(thisform) {
if (thisform.ajout_tiers.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_38']; ?>");
thisform.ajout_tiers.focus();
return false;
}
for (var j=0;j<thisform.ajout_tiers.value.length;j++) {
var Tempo9=thisform.ajout_tiers.value.substring(j,j+1)
if (Caractere.indexOf(Tempo9)!=-1) {
Caractere9 = Caractere.replace(Tempo9,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo9 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere9);
return false;
}
}
} // end of function Verif_ajout_tiers
// Verif the form for added the cat
// @param thisform le document form
function Verif_ajout_cat(thisform) {
if (thisform.N_cat.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_37']; ?>");
thisform.N_cat.focus();
return false;
}
for (var i=0;i<thisform.N_cat.value.length;i++) {
var Tempo10=thisform.N_cat.value.substring(i,i+1)
if (Caractere.indexOf(Tempo10)!=-1) {
Caractere10 = Caractere.replace(Tempo10,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo10 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere10);
return false;
}
}
if (thisform.N_tiers.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_38']; ?>");
thisform.N_tiers.focus();
return false;
}
for (var j=0;j<thisform.N_tiers.value.length;j++) {
var Tempo11=thisform.N_tiers.value.substring(j,j+1)
if (Caractere.indexOf(Tempo11)!=-1) {
Caractere11 = Caractere.replace(Tempo11,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + Tempo11 + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere11);
return false;
}
}
} // end of function Verif_ajout_cat
/**
* BEGIN : Five function for the traitement number (of document.forms["saisie"].paie)
*/
// Valide the saisie if all ok
// @param x le chiffre a verifier
function valide(x) {
var chaine = new String(x); var longueur = chaine.length; var point = 0; var compare;
if (longueur>16) {alert('<?php echo $_VAR['JS_DYNAMIQUE_24']; ?>'); document.forms["saisie"].paie.focus(); return false;}
if (x==0) {return false;}
for (i = 0; i <longueur; i++)
{if (chaine.charAt(i)=='.') {point = eval(i);}}
compare = eval(longueur) - eval(point);
if ((eval(point) != 0) && (eval(compare) > 3)) {alert("<?php echo $_VAR['JS_DYNAMIQUE_25']; ?>"); document.forms["saisie"].paie.focus(); return false;}
if ((eval(point) == 0) && (eval(longueur) > 12)) {alert("<?php echo $_VAR['JS_DYNAMIQUE_24']; ?>"); document.forms["saisie"].paie.focus(); return false;}
return true;
} // end of function valide
// Controle the number of separator
// @param x le chiffre a verifier
function numControl(x,order) {
var chaine2 = new String(x); var longueur2 = chaine2.length; var nbPoint = 0;
if (longueur2==0){total ();return false;}
for (i = 0; i <longueur2; i++) {
if ((chaine2.charAt(i)=='.') || (chaine2.charAt(i)==',')) {nbPoint++}
}
if (order == 1) {
if (eval(nbPoint) >1) {alert("<?php echo $_VAR['JS_DYNAMIQUE_26']; ?> " + nbPoint + " <?php echo $_VAR['JS_DYNAMIQUE_27']; ?>"); document.forms["saisie"].paie.focus(); return false;}
}
if (order == 2) {
if (eval(nbPoint) >1) {alert("<?php echo $_VAR['JS_DYNAMIQUE_26']; ?> " + nbPoint + " <?php echo $_VAR['JS_DYNAMIQUE_27']; ?>"); return false;}
}
for (i = 0; i <longueur2; i++) {
if (order == 1) {
if ((isNaN (chaine2.charAt(i)))&& ( ((chaine2.charAt(i))!= '.') && ((chaine2.charAt(i))!= ',') ) ) {alert('<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>'); document.forms["saisie"].paie.focus(); document.forms["saisie"].paie.value="0"; return false;}
}
if (order == 2) {
if ((isNaN (chaine2.charAt(i)))&& ( ((chaine2.charAt(i))!= '.') && ((chaine2.charAt(i))!= ',') ) ) {alert('<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>'); return false;}
}
}
return true;
} // end of function numControl
// Detect si le chiffre est un decimal, verifie le nb de point et de virgule aussi
// @param x le chiffre a verifier
function decimal(x) {
var total = 0; var point = 0; var virgule = 0; var compare;
var chaine = new String(parseFloat(x));
// supprimer tout les espaces
// utilisation de regexp au lieu d'une boucle
chaine = chaine.replace( / /g, '' );
var longueur = chaine.length;
var chaine2 = new String(x);
// supprimer tout les espaces
// utilisation de regexp au lieu d'une boucle
chaine2 = chaine2.replace( / /g, '' );
var longueur2 = chaine2.length;
for (i=0; i <longueur2; i++) {
if (chaine2.charAt(i)==',') {virgule = eval(i);}
}
for (i=0; i <longueur; i++) {
if (chaine.charAt(i)=='.') {point = eval(i);}
}
compare = eval(longueur2) - eval(virgule);
if (virgule > 0) {
point = eval(virgule);
chaine = (chaine2.slice(0, (virgule)) + '.' + chaine2.slice((virgule+1),longueur2));
}
else if (point > 0) {
chaine = (chaine.slice(0, (point)) + '.' + chaine.slice((point+1),longueur));
if (compare ==2)chaine = (chaine.slice(0, (point)) + '.' + chaine.slice((point+1),longueur) + '0');
}
if (point == 0) {chaine = (chaine + '.00' );}
document.forms["saisie"].paie.value = tronque(chaine);
} // end of function decimal
// tronque a string (2 number after virgule)
// @param x le chiffre a tronquer
function tronque(x) {
var chaine = new String(eval(x)); var longueur = chaine.length; var point = 0; var compare;
for (i = 0; i <longueur; i++) {
if (chaine.charAt(i)=='.') { point = eval(i); }
}
compare = eval(longueur) - eval(point);
if ((eval(point) != 0) && (eval(compare) > 2)) {
var num = chaine.charAt(eval(point)+3);
var resultat = 0;
var plus = .01;
if (eval(num) > 4) {
var num2 = chaine.charAt(eval(point)+2);
num2 = eval(num2)+1;
var chaine2 = new String(num2);
chaine = chaine.slice(0,eval(point)+2);
resultat = chaine.concat(chaine2);
var chaineFin = new String(eval(resultat)); var longueurFin = chaineFin.length;
if ( longueurFin > 9) return chaine.slice(0,8); return resultat;
}
if (eval(num) <= 4) {
resultat = (chaine.slice(0,eval(point)+3)); return resultat;
}
}
return x;
} // end of function tronque
// tronque a string (2 number after virgule)
// @param x le chiffre a verifier
function control(x) {
if (x == '') { alert ('<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>'); document.forms["saisie"].paie.focus(); return false;}
if (x==null) return false;
if (!numControl(x,1)) return false;
if (x == 0) { return false;}
if (!parseFloat(x)) { alert ('<?php echo $_VAR['JS_DYNAMIQUE_28']; ?>'); document.forms["saisie"].paie.focus(); return false;}
x = decimal(x);
if (!valide(x)) return false;
} // end of function control
/**
* END : Five function for the traitement number
*/
// Sets/unsets the pointer and marker in browse mode
// @param MyFile nom du fichier contenant le code HTML du pop-up
// @param MyWindow nom de la fenêtre (ne pas mettre d'espace)
// @param MyWidth entier indiquant la largeur de la fenêtre en pixels
// @param MyHeight entier indiquant la hauteur de la fenêtre en pixels
function OpenPopUp(MyFile,MyWindow,MyWidth,MyHeight) {
var xMax, yMax, xOffset, yOffset;
if (ie4 || ns6) {
xMax = screen.width;
yMax = screen.height;
} else if (ns4) {
xMax = window.outerWidth;
yMax = window.outerHeight;
} else {
xMax = 800;
yMax = 600;
}
xOffset = (xMax - MyWidth)/2;
yOffset = (yMax - MyHeight)/2;
var <?php echo __POPUP_NAME__; ?> = window.open(MyFile,MyWindow,'width='+MyWidth +',height='+MyHeight +',screenX='+xOffset +',screenY='+yOffset +',top='+yOffset +',left='+xOffset +',status=yes,directories=yes,toolbar=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes');
if (<?php echo __POPUP_NAME__; ?>.blur) <?php echo __POPUP_NAME__; ?>.focus();
} // end of function OpenPopUp
// Mouve temp_tiers in News_Tiers
// @param form = le document form
function Add_Cat(form) {
if (form.temp_cat.value == '' || form.temp_cat.value == ' ') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_18']; ?>");
} else {
document.forms["saisie"].news_cat.value = form.temp_cat.value;
}
} // end of function Add_Cat
// Mouve temp_cat in News_cat
// @param form = le document form
function Add_Tiers(form) {
if (form.temp_tiers.value == '' || form.temp_tiers.value == ' ') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_19']; ?>");
} else {
document.forms["saisie"].news_tiers.value = form.temp_tiers.value;
}
} // end of function Add_Tiers
// Selected the checkbox : Disable - Enable for the calendar
// @param field le docuemtn form
function check(field) {
if (field) {
// CONDITION NECASSARY FOR THE VERIFIED THE SELECTED
var nb = 0;
for (i = 0; i < field.length; i++) if (field[i].checked == true) nb++;
if ((nb != 0) && (field.length!= 0) && (nb == field.length)) {
checkflag = 'true'; checkflags = 'true'; }
if (checkflag == 'false') {
// IF JUST 1 CHECKBOX BECAUSE JUST UNDEFINED LENGHT
if (typeof(field.length)=='undefined') {
field.checked = true;
checkflag = 'true';checkflags = 'true';
return '<?php echo $_VAR['MESS_CALENDAR_DESELECT']; ?>';
}
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = 'true';checkflags = 'true';
return '<?php echo $_VAR['MESS_CALENDAR_DESELECT']; ?>';
} else {
// IF JUST 1 CHECKBOX BECAUSE JUST UNDEFINED LENGHT
if (typeof(field.length)=='undefined') {
field.checked = false;
checkflag = 'false';checkflags = 'false';
return '<?php echo $_VAR['MESS_CALENDAR_SELECT']; ?>';
}
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = 'false';checkflags = 'false';
return '<?php echo $_VAR['MESS_CALENDAR_SELECT']; ?>';
}
} else {
return '<?php echo $_VAR['MESS_CALENDAR_SELECT']; ?>';
}
} // end of function check
// Necessary for Opera for recup the selected value in the checkbox array for All browser
// @param oe la valeur a obtenir
function getValue(oe) {
return(navigator.userAgent.toLowerCase().indexOf('opera')!=-1&&oe.saveValue) ?oe.saveValue:oe.value;
} // end of function getValue
// Necessary for Opera for recup the checked in the checkbox array for All browser
// @param of recupere toutes les valeurs des checkbox
function saveValues(of) {
if(navigator.userAgent.toLowerCase().indexOf('opera')!=-1)
for (var i=0; i<of.length;i++)
if(of[i].type=='checkbox')if(of[i].checked) of[i].saveValue=of[i].value;
else {
of[i].checked=true;of[i].saveValue=of[i].value;of[i].checked=false;
}
} // end of function saveValues
// Selected the checkbox : Disable - Enable for the calendar double
// @param of thisform le formulaire
// @param of thisfield la valeur du champs
// @param of thisfield2 le checkbox du champs
function Coche_Another(thisform,thisfield,thisfield2) {
var compteur = 0;
saveValues(thisform);
thisfield=thisfield.split('|');
if (thisfield2 == true) { checkflags = 'false'; } else { checkflags = 'true'; }
for (i =0; i <thisform.elements['IDCOMPTE[]'].length; i++) {
var recup = getValue(thisform.elements['IDCOMPTE[]'][i]);
var new_thisfield = recup.split('|');
if (new_thisfield[0] == thisfield[0]) compteur++;
}
if (compteur >= 2) {
if (checkflags == 'false') {
for (i =0; i <thisform.elements['IDCOMPTE[]'].length; i++) {
var recup = getValue(thisform.elements['IDCOMPTE[]'][i]);
var new_thisfield = recup.split('|');
if (new_thisfield[0] == thisfield[0]) {
thisform.elements['IDCOMPTE[]'][i].checked = true;
}
}
checkflags = 'true';
} else {
for (i =0; i <thisform.elements['IDCOMPTE[]'].length; i++) {
var recup = getValue(thisform.elements['IDCOMPTE[]'][i]);
var new_thisfield = recup.split('|');
if (new_thisfield[0] == thisfield[0]) {
thisform.elements['IDCOMPTE[]'][i].checked = false;
}
}
checkflags = 'false';
}
}
} // end of function Coche_Another
// Redirect the value method post for protect the value
// @param value la valeur de l'ID
// @param pg la page de destination
// @param tiers la valeur de l'ID à modifier
// @param date la valeur de la date a afficher
function Post_redirect(value,pg,tiers,date) {
var Mise_Jour = MiseJour;
document.open();
document.writeln('<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"; ?>');
document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"');
document.writeln('"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">');
document.writeln('<head>');
document.writeln('<meta name="ROBOTS" content="None" />');
document.writeln('<link rel="stylesheet" type="text/css" href="<?php echo basename($_MPM['dir_style']).'/'.$_MPM['file_css']; ?>" />');
document.writeln('<title><?php echo $_VAR['JS_DYNAMIQUE_29']; ?></title>');
document.writeln('</head>');
document.writeln('<body onload="document.forms[\'redirect\'].submit();">');
document.writeln('<br />' + Mise_Jour);
document.writeln('<form id="redirect" action="'+pg+'" method="post">');
document.writeln('<div class="centered">');
if (tiers == 'undefined' && date == 'undefined') {
document.writeln('<input type="hidden" name="ID" value="'+ value +'" />');
} else {
document.writeln('<input type="hidden" name="THIS_SCROLLING" value="YES" />');
document.writeln('<input type="hidden" name="ID" value="'+ tiers +'" />');
document.writeln('<input type="hidden" name="The_mois" value="'+ date +'" />');
document.writeln('<input type="hidden" name="MODIF_ACCOUNT[' + value + ']" value="Modifier" />');
}
document.writeln('</div></form>');
document.writeln('</body></html>');
setTimeout('document.forms["redirect"].submit()',100);
document.close();
} // end of function Post_redirect
// Selected the value for the modified the name account
// @param thisform le document form
function Modif_Form(thisform) {
if (thisform.NEWS_CPTE.value == '') {
alert("<?php echo $_VAR['JS_DYNAMIQUE_47']; ?>");
return false;
}
for (var i=0;i<thisform.NEWS_CPTE.value.length;i++){
var restreint=thisform.NEWS_CPTE.value.substring(i,i+1);
if (Caractere.indexOf(restreint)!=-1){
Caractere16 = Caractere.replace(restreint,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + restreint + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + Caractere16);
thisform.NEWS_CPTE.focus();
return false;
}
}
} // end of function Modif_Form
// Verified the value for quotes
// @param thisform le document form
function Verif_bourse(thisform) {
if (thisform.id.value != '') {
var caracteres='\'\"&`()²@=+/*{}';
var tempo;
for (var i=0;i<thisform.id.value.length;i++){
tempo=thisform.id.value.substring(i,i+1)
if (caracteres.indexOf(tempo)!=-1){
caractere6 = caracteres.replace(tempo,'');
alert("<?php echo $_VAR['JS_DYNAMIQUE_9']; ?> : " + tempo + " <?php echo $_VAR['JS_DYNAMIQUE_10']; ?> " + caractere6);
thisform.id.focus();
return false;
}
}
}
} // end of function Verif_bourse
// Verified the value for balance (bilan)
// @param thisform le document form
function Verif_Balance(thisform) {
var Adays = thisform.Adays; var Amonth = thisform.Amonth; var Ayear = thisform.Ayear;
var Bdays = thisform.Bdays; var Bmonth = thisform.Bmonth; var Byear = thisform.Byear;
if ((Adays.options[Adays.selectedIndex].value && Bdays.options[Bdays.selectedIndex].value &&
Amonth.options[Amonth.selectedIndex].value && Bmonth.options[Bmonth.selectedIndex].value &&
Ayear.options[Ayear.selectedIndex].value && Byear.options[Byear.selectedIndex].value) != '') {
var begin_search = new Date(Ayear.value,((Amonth.value)-1),Adays.value);
var end_search = new Date(Byear.value,((Bmonth.value)-1),Bdays.value);
} else {
alert("<?php echo $_VAR['BILAN_LANG_ERR']; ?>");
return false;
}
if (begin_search.getTime() < end_search.getTime()) {
javascript:thisform.submit();
} else {
alert("<?php echo $_VAR['BILAN_LANG_ERR']; ?>");
return false;
}
} // end of function Verif_Balance
// Check for valid (ie containg '@', '.',
// and more than 6 characters) email-address in Field
function TestEmail(email) {
var arobase = email.indexOf('@')
var point = email.lastIndexOf('.')
var space = email.indexOf(" ")
if ((arobase < 2) || (point + 2 > email.length) || (point < arobase+2) || (email.length < 6) || (space != -1)) return false
else return true
} // end of function TestEmail
// Crypte the password and send
// @author string Phplib
// @modif string Courou
// @param thisform le document form
function newChallengeResponse(thisform) {
// md5 mode ok
if (thisform.md5.checked) {
str0 = hex_md5(thisform.new_password1.value);
str1 = hex_md5(thisform.new_password2.value);
str2 = thisform.new_username.value;
thisform.new_password1.value = str0;
thisform.new_password2.value = str1;
thisform.new_username.value = str2;
thisform.submit();
return false;
} else {
// No md5 normal POST
thisform.submit();
return false;
}
} // end of newChallengeResponse
// Verified the value for create the new account
// @param thisform le document form
function Verif_creation(thisform) {
if (!TestEmail(thisform.new_email.value)) {
alert("<?php echo $_VAR['CHOIX_EMAIL'].' '.$_VAR['JS_DYNAMIQUE_8']; ?>");
thisform.new_email.focus();
return false;
}
if (thisform.new_username.value == "") {
alert("<?php echo $_VAR['JS_DYNAMIQUE_46']; ?>");
thisform.new_username.focus();
return false;
}
var tempo;
for (var i=0;i<thisform.new_username.value.length;i++) {
tempo=thisform.new_username.value.substring(i,i+1)
if (caracteres.indexOf(tempo)==-1) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_45']; ?>");
thisform.new_username.focus();
return false;
}
}
if (thisform.new_password1.value.length<6 || thisform.new_password1.value.length>15) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_32']; ?>");
thisform.new_password1.focus();
return false;
}
if (thisform.new_password1.value != thisform.new_password2.value) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_33']; ?>");
thisform.new_password2.focus();
return false;
}
if (thisform.new_password1.value == thisform.new_password2.value && thisform.new_username != "") {
if (thisform.new_password2.value) newChallengeResponse(thisform); // Fix bug for opera si no script the password
return false;
}
} // end of function Verif_creation
// Crypte the password and send
// @author string Phplib
// @modif string Courou
// @param thisform le document form
function doChallengeResponse(thisform) {
// md5 mode ok
if (thisform.md5.checked) {
str = hex_md5(thisform.user_name.value) + ":" + hex_md5(thisform.pass_word.value) + ":" + thisform.challenge.value;
thisform.response.value = hex_md5(str);
document.forms["logintrue"].response.value = hex_md5(str);
document.forms["logintrue"].md5.value = 1;
} else {
// No md5 normal POST
str = thisform.user_name.value + ":" + thisform.pass_word.value + ":" + thisform.challenge.value;
thisform.response.value = str;
document.forms["logintrue"].response.value = str;
document.forms["logintrue"].md5.value = 0;
}
thisform.pass_word.value = '';
document.forms["logintrue"].user_name.value = thisform.user_name.value;
document.forms["logintrue"].submit();
return false;
} // end of function doChallengeResponse
// Verified the value for enter
// @param thisform le document form
function Verif_Enter(thisform) {
if (typeof(thisform.pass_word.value) != 'undefined') { // Fix bug for opera if cancel
if (thisform.user_name.value == "") {
alert("<?php echo $_VAR['JS_DYNAMIQUE_46']; ?>");
thisform.user_name.focus();
return false;
}
else if (thisform.pass_word.value == "" || thisform.pass_word.value.length < 6) {
alert("<?php echo $_VAR['JS_DYNAMIQUE_32']; ?>");
thisform.pass_word.focus();
return false;
}
else {
if (thisform.pass_word.value) doChallengeResponse(thisform); // Fix bug for opera
return false;
}
} // end typeof(thisform.pass_word.value)
} // end of function Verif_Enter
// Automatique scrolling (BELOW)
// search post THIS_SCROLLING for go to anchor
function AnchorForm() {
if (!document.location.hash) document.location.hash='<?php echo $_VAR['BELOW']; ?>';
} // end of AnchorForm
// Automatique scrolling (TOP)
// search post THAT_SCROLLING for go to anchor
function AnchorForm2() {
if (!document.location.hash) document.location.hash='<?php echo $_VAR['TOP']; ?>';
} // end of AnchorForm
// Evite de mettre de onload pour l'aide
function GroupStart() {
<?php
if (__SHUFFE_MOUV__) echo "if (IfexistObject('jailcalendar') != null) startDivCalendar();";
if (__HELPER_MOUV__ && __HELPER_MENU__) echo "if (IfexistObject('jailhelper') != null) startDivHelper();";
if (__HELPER_MENU__) echo "if (IfexistObject('jailhelper') != null) helper_start();";
?>
} // end GroupStart()
//-->
<?php
page_close(); ## CLOSE THE SESSION
} // end of __DOC__