function replace(string,text,by) {
// Replaces text with by in string
    var pageurl ="http://www.buddycon.com";
    var strLength = string.length, txtLength = text.length;
    next = window.location="aim:goim?screenname=" + string + "&message=" + string + "!++Make+your+own+custom+buddy+icon+for+FREE!++Checkout+" + pageurl;
    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) {
    }
    if (i == -1) return string;
    var newstr = string.substring(0,i) + by;
    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);
 //   window.location="aim:goim?screenname=" + newstr + "&message=Hey+check+out+this+profile+at+picvotes.com.+" + pageurl;
    return newstr;
}
