﻿// Referenced in ManageAccount1.ascx and SignIn.aspx
function ValidatePasswordLength(source, arguments) {
    if (arguments.Value.length < 6)
        arguments.IsValid = false;
    else
        arguments.IsValid = true;
}

// referenced in MustSignIn.aspx popup
function signInLink(link) {
    return link + '?ReturnUrl=' + parent.location.pathname + parent.location.search.replace('&', '%26');
};

// referenced in SignIn.ascx
function popItUp(url,width,height) {
    newwindow = window.open(url, 'name', 'height=' + height + ',width=' + width + ',resizable = 0,top=400,left=400');
	if (window.focus) {newwindow.focus()}
}



