var pays=[]; var region=[]; var depart=[]; var golf=[]; var parcours=[]; function Stock_Pays(id,nom) { this.code_pays=id; this.nom=nom; } function Ajout_Pays(id,nom) { var objPays; objPays=new Stock_Pays(id,nom); pays[pays.length]=objPays; } function Stock_Region(id,nom,id_pays) { this.code_region=id; this.nom=nom; this.code_pays=id_pays; } function Ajout_Region(id,nom,id_pays) { var objregion; objregion=new Stock_Region(id,nom,id_pays); region[region.length]=objregion; } function Stock_Depart(id,nom,id_region) { this.code_depart=id; this.nom=nom; this.id_region=id_region; } function Ajout_Depart(id,nom,id_region) { var objdepart; objdepart=new Stock_Depart(id,nom,id_region); depart[depart.length]=objdepart; } function Stock_Golf(id,nom,id_region,id_depart) { this.code_etablissement=id; this.nom=nom; this.id_region=id_region; this.id_depart=id_depart; } function Ajout_Golf(id,nom,id_region,id_depart) { var objgolf; objgolf=new Stock_Golf(id,nom,id_region,id_depart); golf[golf.length]=objgolf; } function Stock_Parcours(id,nom,id_golf) { this.code_parcours=id; this.nom=nom; this.id_golf=id_golf; } function Ajout_Parcours(id,nom,id_golf) { var objpar; objpar=new Stock_Parcours(id,nom,id_golf); parcours[parcours.length]=objpar; } function LoadPays() { for (i=0;i-1) document.reserver.planning.value=1; document.reserver.action="http://albatros.resagolf.com/resultats.asp?nav=1"; document.reserver.submit(); //document.reserver.target='_blank'; } if(!document.getElementById){ if(document.all){ document.getElementById=function(){ if(typeof document.all[arguments[0]]!="undefined"){return document.all[arguments[0]]}else{return null} } }else if(document.layers){ document.getElementById=function(){ if(typeof document[arguments[0]]!="undefined"){return document[arguments[0]]}else{return null} } } } var NS4 = (document.layers)?1:0; var IE4 = (document.all)?1:0; var W3C = (document.getElementById)?1:0; function vidage_list(formn,obj) { //alert(formn); var list=document.forms[formn].elements[obj]; nb=list.length; for (cpt=0;cpt0) { idx=list.selectedIndex; return list[idx].value; } else return -1; } function m_PopUp(m_window,m_url,m_Width,m_Height){ if (parseInt(m_Width)){ param="dialogWidth:"+m_Width+"px;" }else{ param="dialogWidth:226px;" } if (parseInt(m_Height)){ param+="dialogHeight:"+m_Height+"px;" }else{ param+="dialogHeight:230px;" } param+="center:1;scroll:1;help:0;status:0" rv=window.showModalDialog(m_url,m_window,param); //rv=window.open(m_url); return rv; } function GetInnerTexte(obj) { if (W3C){var txt = document.getElementById(obj);} else if (NS4){var txt = document.layers[obj];} else {var txt = document.all[obj];} if (W3C){return txt.innerHTML;} if (IE4){return txt.innerHTML;} if (NS4) { return txt.innerText; } else return txt.innerText; } function InnerTexte(obj,val) { if (W3C){var txt = document.getElementById(obj);} else if (NS4){var txt = document.layers[obj];} else {var txt = document.all[obj];} if (W3C){txt.innerHTML=val;} if (IE4){txt.innerHTML=val;} if (NS4) { txt.document.open(); txt.document.write(val); txt.document.close();} else txt.innerText=val; } function FormatNumber(val) { if (val==0) return "0,00"; Str=new String(val); StrN=Str.substring(0,Str.indexOf(".")); if (StrN!='') { StrD=Str.substring(Str.indexOf(".")+1,Str.length); if (StrD.length<2) StrD=StrD+"0"; else if (StrD.length>2) StrD=StrD.substring(0,2); } else { StrN=Str; StrD="00"; } if (StrN.length>3) if (StrN.length==4) StrN=StrN.substring(0,1)+' '+StrN.substring(1,Str.length); else StrN=StrN.substring(0,2)+' '+StrN.substring(2,Str.length); result=StrN+","+StrD; return result; } //AFFICHE les roll overs des pictos function roll(id,url,name,tType,str) { //alert(id); var image=document.getElementById(id); var td=document.getElementById('TD'+id); //alert(url + name + str + '.' + tType); image.src=url + name + str + '.' + tType; } function ScanSelect(obj,formn,val) { trouve=false; var list=document.forms[formn].elements[obj]; for (cptList=0;cptList"); document.write(" "); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
"); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
Parcours
Pays
"); document.write(""); document.write("
Région
"); document.write(""); document.write("
Département
"); document.write(""); document.write("
Golfs
"); document.write(""); document.write("
Date
"); document.write(""); document.write("
Parcours
"); document.write(""); document.write("
De
"); document.write(""); document.write("
Valider
"); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
"); document.write(""); document.write(""); LoadGolf();