{document.Login.PASSWORD.value="";}functionsubmitForm(){if(document.Login.PASSWORD.value==""){alert("PleaseenteryourLoginandPassword!");return;}if(document.Login.USER.val...
{
document.Login.PASSWORD.value = "";
}
function submitForm()
{
if (document.Login.PASSWORD.value == "") {
alert("Please enter your Login and Password!");
return;
}
if (document.Login.USER.value == "") {
alert("Please enter your Login!");
return;
}
AjaxLoaddingImage.style.display="block";
LoadEmpty.style.display="none";
document.Login.submit();
}
// Function ValeurCookie
// Used by GetValeurCookie
function ValeurCookie (Pos) {
var endstr = document.cookie.indexOf (";", Pos);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring (Pos, endstr));
}
// Function GetValeurCookie
// Used to retrieve the value of a cookie
function GetValeurCookie (nom) {
var cookielength = document.cookie.length;
var arg = nom + "=";
var arglength = arg.length;
var i = 0;
while (i < cookielength) {
var j = i + arglength;
if (document.cookie.substring(i, j) == arg)
return ValeurCookie (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
// Function SupprCookie
// To delete a cookie
function SupprCookie (nom,path,domaine) {
if (GetValeurCookie(nom)) {
document.cookie = nom + "=" + ((path) ? "; path=" + path : "") + ((domaine) ? "; domain=" + domaine : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
document.cookie = nom + "=" + ((path) ? "; path=" + path : "") + ((domaine) ? "; domain=" + domaine : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
// URL parameter retrieval
function TJSExtraireParam() {
url = window.location.href;
var exp=new RegExp("[&?]+","g");
var exp2=new RegExp("[=]+","g");
var tabNom=url.split(exp);
var tabParam=new Array();
if (tabNom!=null) {
for (var i=1;i
var tabTemp=tabNom[i].split(exp2);
展开