function Contact(title, login, domain) {
    this.title = title;
    this.login = login;
    this.domain = domain;
};

Contact.prototype.email = function () {
    return (this.login + '@' + this.domain);
};

Contact.prototype.writeTitle = function () {
    document.write(this.title);
};

Contact.prototype.writeEmail = function (title) {
    document.write('<a href=mailto:' + this.email() + '>' + title + '</a>');
};

Contact.prototype.writeTitleEmail = function () {
    document.write('<a href=mailto:' + this.email() + '>' + this.title + '</a>');
};

var ContactUs = new Contact( 'Contact Us', 'CSABoardPresident', 'gmail.com' );
var President = new Contact( 'President', 'CSABoardPresident', 'gmail.com' );
var ExecutiveVP = new Contact( 'Executive Vice President', 'CSABoardEVP', 'gmail.com' );
var VPK5 = new Contact( 'Vice President (K-5)', 'CSABoardVPK5', 'gmail.com' );
var VP68 = new Contact( 'Vice President (6-8)', 'CSABoardVP68', 'gmail.com' );
var Secretary = new Contact( 'Secretary', 'CSABoardSecretary', 'gmail.com' );
var Treasurer = new Contact( 'Treasurer', 'CSABoardTreasurer', 'gmail.com' );
var Publicity = new Contact( 'Publicity Coordinator', 'CSABoardPublicity', 'gmail.com' );
var Fundraising = new Contact( 'Fundraising Coordinator', 'CSABoardFundRaising', 'gmail.com' );
var Services = new Contact( 'Services Coordinator', 'CSABoardServices', 'gmail.com' );
var RoomParents = new Contact( 'Room Parent Coordinator', 'CSABoardRoomParents', 'gmail.com' );
var Membership = new Contact( 'Membership Chair', 'CSABoardMembership', 'gmail.com' );

var FallLuncheon = new Contact( 'Fall Luncheon Coordinator', 'CSAFallLuncheon', 'gmail.com' );
var SpringLuncheon = new Contact( 'Spring Luncheon Coordinator', 'CSASpringLuncheon', 'gmail.com' );
var IceSkating = new Contact( 'Ice Skating Coordinator', 'CSAIceSkating', 'gmail.com' );
var BookDrive = new Contact( 'Book Drive Coordinator', 'CSABookDrive', 'gmail.com' );
var WelcomeCoffee = new Contact( 'Welcome Coffee Coordinator', 'CSAWelcomeCoffee', 'gmail.com' );
var InfoCoffee = new Contact( 'Informational Coffee Coordinator', 'CSAInfoCoffee', 'gmail.com' );
var ParentsNight = new Contact( 'Parent\'s Night Coordinator', 'CSAParentsNight', 'gmail.com' );
var CoCoKey = new Contact( 'CoCoKey Coordinator', 'CSACoCoKey', 'gmail.com' );
var LunchRecess = new Contact( 'Lunch Recess Coordinator', 'CSALunchRecess', 'gmail.com' );
var BusChaperones = new Contact( 'Bus Chaperones Coordinator', 'CSABusChaperones', 'gmail.com' );
var Library = new Contact( 'Library Coordinator', 'CSALibrary', 'gmail.com' );
var Husky = new Contact( 'Husky Handbook Coordinator', 'CSAHusky', 'gmail.com' );
var GiftWrap = new Contact( 'Gift Wrap Coordinator', 'CSAGiftWrap', 'gmail.com' );
var HouseTour = new Contact( 'House Tour Coordinator', 'CSAHouseTour', 'gmail.com' );
var BoxTops = new Contact( 'Box Tops Coordinator', 'CSABoxTops', 'gmail.com' );
var TShirt = new Contact( 'T-Shirt Sale Coordinator', 'CSATShirtSale', 'gmail.com' );
var BookFair = new Contact( 'Book Fair Coordinator', 'CSABookFair', 'gmail.com' );
var SchoolSupplies = new Contact( 'School Supplies Coordinator', 'CSASchoolSupplies', 'gmail.com' );
var Receipts = new Contact( 'Supermarket Receipts Coordinator', 'CSAReceipts', 'gmail.com' );

