mibew/src/messenger/webim/js/brws.js
Evgeny Gryaznov e15e7047b2 fix: escape user name in JS
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@458 c66351dc-e62f-0410-b875-e3a5c0b9693f
2009-04-05 14:14:34 +00:00

1 line
502 B
JavaScript

var myAgent="";var kk=0;var myRealAgent="";function lk(){var ok=["opera","msie","safari","firefox","netscape","mozilla"];var gj=navigator.userAgent.toLowerCase();for(var i=0;i<ok.length;i++){var pk=ok[i];if(gj.indexOf(pk)!=-1){myAgent=pk;if(!window.RegExp)break;var dk=new RegExp(pk+"[ \/]?([0-9]+(\.[0-9]+)?)");if(dk.exec(gj)!=null){kk=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="Gecko")myAgent="moz";} lk();function getEl(name){return document.getElementById(name);}