var keyword ,user,password= ""
var web=0;

function Valider(value) {
  keyword = value;
}

function ValiderWeb(value) {
  web = value;
}

function ValiderUser(value) {
  user = value;
}

function ValiderPassword(value) {
  password = value;
}

function Login() {
 // url= "http://akrour/ilasalle/SabaServlet?ssp=ems/indexf.saba&nomut=" + user + "&motpas=" + password;
 url = "http://www.ilasallecampus.com/corpdemo/SabaServlet?ssp=ems/index.saba&nomut=" + user + "&motpas=" + password;
 if (screen.width==800) {
    window.open(url,"_blank","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600, top=0,left=0")
 }
 else if (screen.width==1024) {
   window.open(url,"_blank","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=1024,height=768, top=0,left=0")
 }
 else if (screen.width==1152) {
   window.open(url,"_blank","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=1152,height=864, top=0,left=0")
 }
 else if (screen.width==1280) {
   window.open(url,"_blank","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=1280,height=1024, top=0,left=0")
 }
 else {
   window.open(url,"_blank","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1, top=0,left=0")
 }
 user=""
 password=""
}

function NewUser() {

window.open("new_user.html","_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=500,top=0,left=0")
 }

function Chercher() {
   window.location.href= "rechResult.asp?query="+keyword+"&Search=Recherche"
}

function ChercherIndex() {
   window.location.href= "fr/rechResult.asp?query="+keyword+"&Search=Recherche"
}

