1/* Javascript code to switch language main page */ 2/* Also for other cookie info passing */ 3 4function SwitchLang(varLang,basepath){ 5 // Also check and clear the PageInfo cookie 6 var tempstr 7 tempstr = GetCookie("PageInfo"); 8 if(tempstr != null){ 9 DeleteCookie("PageInfo","/"); 10 }; 11 // end clear PageInfo 12 var expdate=new Date(); 13 enpath="en/"; //index.html"; 14 chpath="ch/"; //index.html"; 15 if(basepath == null){ 16 enurl=enpath; 17 churl=chpath; 18 }else{ 19 enurl=basepath + enpath; 20 churl=basepath + chpath; 21 } 22 //set expire date to 30days 23 expdate.setTime(expdate.getTime() + (30*24*3600*1000)); 24 SetCookie("Lang", varLang,expdate,"/"); 25 if(varLang == "EN"){ 26 top.location.href=enurl; 27 } 28 if(varLang == "CH"){ 29 top.location.href=churl; 30 } 31}; 32 33function SetMovie(varMovie, varMovieSite, basepath){ 34 var expdate=new Date(); 35 var tempstr 36 var varurl 37 //set expire date to 1 day 38 expdate.setTime(expdate.getTime() + (1*24*3600*1000)); 39 SetCookie("Movie", varMovie,expdate,"/"); 40 SetCookie("MovieSite", varMovieSite,expdate,"/"); 41 42 //call up the moviebox 43 if(basepath == null){ 44 varurl='moviebox.htm'; 45 }else{ 46 varurl=basepath + 'moviebox.htm'; 47 } 48 49 tempstr='height=460,width=500,toolbar=no,menubar=no,resizable=yes,status=no,location=no,scrollbars=yes'; 50 QWin = window.open( varurl,"Video", config=tempstr); 51};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.