
function openPopup(href,w,h,r,s) {
var format = 'width=' + w + ',height=' + h + ',screenX=10,screenY=10,left=10,top=10,resizable=' + r + ',scrollbars=' + s;
window.open(href,'popup',format);
return false;
}


email = {
    map: null,

    convert: function(a) {
        email.init();

        var s = "";
        for (i=0; i < a.length; i++) {
            var b = a.charAt(i);
            s += ((b>='A' && b<='Z') || (b>='a' && b<='z') ? email.map[b] : b);
        }
        return s;
    },

    init: function() {
        if (email.map != null)
            return;
              
        var map = new Array();
        var s   = "abcdefghijklmnopqrstuvwxyz";

        for (i=0; i<s.length; i++)
            map[s.charAt(i)] = s.charAt((i+13)%26);
        for (i=0; i<s.length; i++)
            map[s.charAt(i).toUpperCase()] = s.charAt((i+13)%26).toUpperCase();

        email.map = map;
    },

    write: function(a) {
        document.write(email.convert(a));
    }
}
