88 lines
3.1 KiB
JavaScript
88 lines
3.1 KiB
JavaScript
|
//<script language="Javascript">
|
|||
|
function MM_goToURL() {
|
|||
|
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
|
|||
|
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
|
|||
|
}
|
|||
|
function alertCleInvalide() {
|
|||
|
window.alert("Cl<43> Bdf invalide !");
|
|||
|
}
|
|||
|
function MM_findObj(n, d) {
|
|||
|
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
|
|||
|
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
|
|||
|
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
|
|||
|
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
|
|||
|
if(!x && document.getElementById) x=document.getElementById(n); return x;
|
|||
|
}
|
|||
|
function MM_showHideLayers() {
|
|||
|
var i,p,v,obj,args=MM_showHideLayers.arguments;
|
|||
|
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
|
|||
|
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
|
|||
|
obj.visibility=v; }
|
|||
|
}
|
|||
|
function openAide(URL) {
|
|||
|
var nouvelleFenetre = window.open(URL,'aide','resizable=yes,scrollbars=yes,width=700,height=300,left=0,top=0');
|
|||
|
nouvelleFenetre.window.focus();
|
|||
|
}
|
|||
|
function openDoc(URL) {
|
|||
|
var nouvelleFenetre = window.open(URL,'doc','scrollbars=yes');
|
|||
|
nouvelleFenetre.window.focus();
|
|||
|
}
|
|||
|
function homeCurseur(f,c) {
|
|||
|
document.forms[f-1].elements[c-1].focus();
|
|||
|
}
|
|||
|
function selectChamp(f,c) {
|
|||
|
document.forms[f-1].elements[c-1].focus();
|
|||
|
document.forms[f-1].elements[c-1].select();
|
|||
|
}
|
|||
|
function verifChamp(f,c,val,d) {
|
|||
|
if(document.forms[f-1].elements[c-1].value.length>(val-1))
|
|||
|
document.forms[f-1].elements[d-1].focus();
|
|||
|
}
|
|||
|
function alertCle() {
|
|||
|
window.alert("Cl<43> BDF invalide !");
|
|||
|
}
|
|||
|
function confirmSortieAccueil(a) {
|
|||
|
if(confirm("Quitter l'application FICP ?"))
|
|||
|
a.href="../portail.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function confirmSortie(a) {
|
|||
|
if(confirm("Quitter l'application FICP ?"))
|
|||
|
a.href="../../portail.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function confirmQuitterAccueil(a) {
|
|||
|
if(confirm("Quitter l'application FICP et le portail Banque de France ?"))
|
|||
|
a.href="pages communes/ferme_session.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function confirmQuitter(a) {
|
|||
|
if(confirm("Quitter l'application FICP et le portail Banque de France ?"))
|
|||
|
a.href="../pages communes/ferme_session.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function confirmAbandon(a) {
|
|||
|
if(confirm("Abandonner votre mise <20> jour et quitter l'application FICP ?"))
|
|||
|
a.href="../../portail.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function confirmAbandonQuitter(a) {
|
|||
|
if(confirm("Abandonner votre mise <20> jour, quitter l'application FICP et le portail Banque de France ?"))
|
|||
|
a.href="../pages communes/ferme_session.html";
|
|||
|
else
|
|||
|
a.href="javascript:;";
|
|||
|
}
|
|||
|
function alertHabil() {
|
|||
|
window.alert("Vous n'<27>tes pas accr<63>dit<69> pour ce type d'op<6F>rations ! Veuillez contacter votre responsable s<>curit<69>.");
|
|||
|
}
|
|||
|
function MM_openBrWindow(theURL,winName,features) { //v2.0
|
|||
|
window.open(theURL,winName,features);
|
|||
|
}
|
|||
|
function alertDegrade() {
|
|||
|
window.alert("Mise <20> jour indisponible !");
|
|||
|
}
|