﻿
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 disabledSubmitApplicationGrantSoughtMore(){
    alert("You cannot submit this application until all mandatory fields have been completed and mandatory document(s) uploaded\n\n Grant sought must be less than or equal to Total Project Cost in the Project Items tab.");
    return false;
}

function disabledSubmitApplicationNoUploads(){
    alert("You cannot submit this application until all mandatory fields have been completed");
    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()
}

function ConfirmDelete() { 
    var r=confirm('Are you sure you want to delete'); 
    if (r==true) 
        { return true; } 
    else 
        { return false; } 
}
