﻿
function openFBShare() {
    var sParams = '';
    name = (name == null) ? '' : name;

    sParams += 'width=' + 600;
    sParams += ',height=' + 500;
    sParams += ',resizable=yes';
    sParams += ',scrollbars=yes';
    sParams += ',left=' + ((screen.width - 600) / 2) ;
    sParams += ',top=' + ((screen.height - 500) / 2);

    window.name = 'opener';
    var popupWin = window.open('http://www.facebook.com/sharer.php?u=http://www.goodhumor.com/', 'FacebookShare', sParams);
    popupWin.focus();
    return;
}

function goToSweepsReg() {
    window.location = '/Sweet-Stakes-Registration.aspx';
}

function txtEmailEntry_Validate(sender, args) {
    if (args.Value == 'email address' || args.Value == 'email address')
        args.IsValid = false
    else
        args.IsValid = true
}

function goToStickReg(winningCode) {
    
    var path = '/Stick-Winner-Registration.aspx?winningcode=' + winningCode;
    
    window.location = path;
}


function goToContestHome() {
    window.location = '/Sweet-Stakes/Default.aspx';
}
