﻿function clearIfDefault(el){
  if (el.val() == el.attr("title"))
    el.val('');
  el.css({"color" : ""})

}
function defaultIfEmpty(el){
  if (el.val() == ''){
    el.val(el.attr("title"));
    el.css({"color" : "#CCC"})
  }
}
function bookmarkthis(title, url) {
    if (window.sidebar) { // firefox
        window.sidebar.addPanel(title, url, "");
    } else if (document.all) { // IE
        window.external.AddFavorite(url, title);
    } 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();
    }
}
