﻿function MakeThisSiteYourHomePage(link) 
{   
    if (document.URL != null) {
        link.style.behavior = 'url(#default#homepage)';
        link.setHomePage(document.URL);
    }
}

function printObject(o) {
    var propstr;
    for (prop in o) { propstr = propstr + "\n" + prop.toString() + "=" + o[prop]; }
    alert(propstr);
}

///String processing functions

// This regular expression for timming strings
String.prototype.trim = function() {
   return this.replace(/(^\s+|\s+$)/g, "");
}

