// JavaScript Document
hideToggleTooltips = false;
submitClick = false;
// add to favorites  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function getBrowserInfo() {
 var t,v = undefined;
 if (window.opera) t = 'Opera';
 else if (document.all) {
  t = 'IE';
  var nv = navigator.appVersion;
  var s = nv.indexOf('MSIE')+5;
  v = nv.substring(s,s+1);
 }
 else if (navigator.appName) {
	 if (navigator.userAgent.indexOf('WebKit')!=-1) t = 'WebKit';
	 else t = 'Netscape';
 }
 return {type:t,version:v};
}
 
function bookmark(a){
 var url = window.document.location;
 var title = window.document.title;
 var b = getBrowserInfo();
 if (b.type == 'IE') eval("window.external.AddFa-vorite(url, title)".replace(/-/g,'')); //window.external.AddFavorite(url,title);
 else if (b.type == 'Opera') {
  a.href = url;
  a.rel = "sidebar";
  a.title = url+','+title;
  return true;
 }
 else if (b.type == "Netscape") window.sidebar.addPanel(title,url,"");
 else alert(add2FavoritesAlertMessage);
 return false;
}
// add to favorites  -----------------------------------------------------------------------------------------------------------




function findStrInArr(arrS,strF)  { 
	var ind=-1 
	for (i=0; i<arrS.length; i++)  if (arrS[i]==strF) { ind=i; break; }  
	return ind;  
}

function trimStr(str) {
  return str.replace(/^\s+|\s+$/g, '');
}

function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
} 

function Kill(object) {
	object.innerText = null;
	object.innerHTML = null;
	object.outerHTML = null;
	object = null;
}


