﻿function signupFailurePageLoad()
{
    if (GetQueryStringValue("verifyEmail") == "true")
    {
        document.getElementById("pError").innerHTML = "Your FreeConferenceCalling account already exists.  An email with access codes and instructions was just sent to your email address. Please check your email account for further details and information.  If you did not receive this communication, please look in your junk mail folder or click <a href='ResendPassword.aspx'>here</a> to resend.";
        document.title = "Account already exists";
        document.getElementById("hTitle").innerHTML = "Account already exists";
    }
    else
    {
        document.getElementById("pError").innerHTML = "Unfortunately there appears to be an issue with creating your account.  Please contact our support team at <a href='mailto:service@freeconferencecalling.com'>service@freeconferencecalling.com</a> for more information and to finalize your account creation.";
        document.title = "Signup failure";
        document.getElementById("hTitle").title = "Signup failure";
    }
}

function GetQueryStringValue(name)
{
    var qs = document.location.search;
    qs = qs.substr(1, qs.length  - 1);
    var retValue = "";
    var values = qs.split("&");
    for (var i=0; i<values.length; i++)
    {
        var keyValuePair = values[i].split("=");
        if (keyValuePair[0] == name)
        {
            retValue = keyValuePair[1];
            break;
        }
    }
    return retValue;
}