function WatermarkFocus(txtElem, strWatermark) { if (txtElem.value == strWatermark) { txtElem.value = ''; } }
function WatermarkBlur(txtElem, strWatermark) { if (txtElem.value == '') { txtElem.value = strWatermark; } }
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
}
function showDiv(thediv) {
  divelm = (document.getElementById)? document.getElementById(thediv):document.all(thediv);
  if(divelm.style.visibility=="visible") { vis="hidden";hg="1px";}
  else {vis = "visible";hg="auto";}
  divelm.style.visibility=vis;
  divelm.style.height=hg;
} 

function AddToFavorite(){
var url = location.href;
var title = document.title;
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

var min=6;
var max=22;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');  
   var span = document.getElementsByTagName('span');  
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
      for(i=0;i<span.length;i++) {
      if(span[i].style.fontSize) {
         var s = parseInt(span[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      span[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   var span = document.getElementsByTagName('span');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
    for(i=0;i<span.length;i++) {
      if(span[i].style.fontSize) {
         var s = parseInt(span[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      span[i].style.fontSize = s+"px"
   }     
}
function AddToFavorites(url,title) {
if(window.sidebar) /* Mozilla Firefox Bookmark. */ window.sidebar.addPanel(title, url, "");
else if(window.external) /* IE Favorite. */ window.external.AddFavorite(url, title);
else if(window.opera && window.print) /* Opera Hotlist. */ return true; } 
