﻿
function autoJump(id){
    location.href = "#" + id
}

function disabledSubmitApplication(){
    alert("You cannot submit this application until all mandatory fields have been completed and mandatory document(s) uploaded");
    return false;
}

function disabledSubmitApplicationTooLate(){
    alert("You cannot submit this application as the closing date for submission has expired");
    return false;
}



function getFile(){
    window.open("/GetFile.aspx");
}

function getFile(encryptedPath){
    window.open("/GetFile.aspx?rid=" + encryptedPath);
}

function getUploadFile(){
    window.open("/GetUploadFile.aspx");
}

function openReportWindow(encryptedPath){
    window.open("/PrintReport.aspx?rid=" + encryptedPath);
}

function setLoginUsernameFocus(userName){
    document.getElementById(userName).focus()
}