
function emailFocus(txt)
{
    if(txt.value == 'Enter email address')
    {
        txt.value = '';
    }
}

function emailBlur(txt)
{
    if(txt.value == '')
    {
        txt.value = 'Enter email address';
    }
}

function highlight_keyword(text)
{
   if(typeof(keyword) == 'undefined') return text;

   parts = text.toLowerCase().split(keyword.toLowerCase());

   result = text.substr(0, parts[0].length);
   start = parts[0].length;

   for(i = 1; i < parts.length; i++)
   {
      result += '<strong>' + text.substr(start, keyword.length) + '</strong>' + text.substr(start + keyword.length, parts[i].length);
      start += keyword.length + parts[i].length;
   }

   return result;
}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Philip Myers :: http://virtualipod.tripod.com/bookmark.html */
function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function write(str)
{
   document.write(str);
}

function fbs_click() {
   u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
   pageTracker._trackEvent('Tools', 'Facebook', window.location.pathname);
   return false;
}


