function setBrowserType() {
  bName = navigator.appName;
  bVer = parseInt(navigator.appVersion);
  ver = 0;

   if (bName == "Netscape" && bVer >= 5) ver = "nn6";
     else if (bName == "Netscape" && bVer >= 4 && bVer < 5) ver = "nn4";
       else if (bName == "Microsoft Internet Explorer" && bVer >= 4) ver = "ie4";
   
   return ver;	
}

function openSmall(url) {
  var infoWnd=window.open(url,'commonInfo','left=200,top=200,height=310,width=600,directories=no,location=no,menubar=no,resizable,status=no,toolbar=no,history=no,scrollbars');
  infoWnd.focus();
}

function formatTextToHTML(str) {
  for (x=0;x<=str.length;x++) {
    if (str.charCodeAt(x)==13) str=str.substr(0,x)+"<br>"+str.substr(x+1,str.length);
  }
  return str;
}
