﻿function initialLoad()
{
    document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
    document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
    document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
    //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
    document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = true;
    document.getElementById("ctl00_phMainContent_phRental_btnSubmit").disabled = false;
    //document.getElementById("ctl00_phMainContent_phRental_frmVerify").checked = false;
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "Concordia")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "MSUM")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "NDSU")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='block';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "UND")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "Jamestown")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='block';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "None selected")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    concordiaOptions();
    MSUMOptions();
    NDSUOptions();
    //UNDOptions();
    
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").value = 0.00;
    document.getElementById("ctl00_phMainContent_phRental_frmHiddenTotal").value = 0.00;
    
    updateTotal();
}

function chooseCollege()
{
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;

    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "Concordia")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "MSUM")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
       // document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "NDSU")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='block';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "UND")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='block';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "Jamestown")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='block';
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmChooseCollege").value == "None selected")
    {
        document.getElementById("ctl00_phMainContent_phRental_pnlConcordia").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlMSUM").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlNDSU").style.display='none';
        //document.getElementById("ctl00_phMainContent_phRental_pnlUND").style.display='none';
        document.getElementById("ctl00_phMainContent_phRental_pnlJamestown").style.display='none';
    }
    
    //Set all options to nothing
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeConcordia").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeConcordia").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeNDSU").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeNDSU").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").checked = false;
//    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").checked = false;
//    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").checked = false;
//    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftJamestown").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfJamestown").checked = false;
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").value = 0.00;
    document.getElementById("ctl00_phMainContent_phRental_frmHiddenTotal").value = 0.00;
}

function concordiaOptions()
{
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;

    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallConcordia").value == "Brown")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallConcordia").value == "ParkRegion")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").disabled = true;
    }
}

function MSUMOptions()
{
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;

    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallMSUM").value == "Dahl")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallMSUM").value == "EastSnarr")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallMSUM").value == "WestSnarr")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallMSUM").value == "Neumaier")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = true;
    }
}

function NDSUOptions()
{
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").disabled = false;
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;

    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallNDSU").value == "Churchill")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallNDSU").value == "Johnson")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").disabled = true;
    }
    
    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallNDSU").value == "Reed")
    {
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").disabled = true;
        document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").disabled = true;
    }
}

//function UNDOptions()
//{
//    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").disabled = false;
//    document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").disabled = false;
//    document.getElementById("ctl00_phMainContent_phRental_frmTotal").disabled = false;

//    if(document.getElementById("ctl00_phMainContent_phRental_frmResHallUND").value == "Noren")
//    {
//        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").disabled = true;
//        document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").disabled = true;
//    }
//}

function updateTotal()
{
    var total = 0.00;
    
    //Start Concordia Total Update
    
    //Concordia loft total
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Semester")
    {
        total = total + 75.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Year")
    {
        total = total + 100.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //Concordia loft shelf total
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Semester")
    {
        total = total + 80.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Year")
    {
        total = total + 105.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //Concordia Fridge 1 total
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Semester")
    {
        total = total + 55.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Year")
    {
        total = total + 80.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //Concordia Fridge 2 total
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Semester")
    {
        total = total + 40.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "Year")
    {
        total = total + 55.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeConcordia").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLength").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //End Concordia Total Update
    
    //Start MSUM Total Update
    
    //MSUM Loft
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "Semester")
    {
        total = total + 75.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "Year")
    {
        total = total + 100.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //MSUM Loft wShelf
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "Semester")
    {
        total = total + 80.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "Year")
    {
        total = total + 105.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfMSUM").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthMSUM").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //End MSUM Total Update
    
    //Start NDSU Total Update
    
    //NDSU Loft
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Semester")
    {
        total = total + 75.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Year")
    {
        total = total + 100.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //NDSU Loft wShelf
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Semester")
    {
        total = total + 80.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Year")
    {
        total = total + 105.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //NDSU 3.6 Fridge option
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Semester")
    {
        total = total + 55.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Year")
    {
        total = total + 80.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit36FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //NDSU 2.0 Fridge option
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Semester")
    {
        total = total + 40.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Year")
    {
        total = total + 55.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnit20FridgeNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //NDSU Microwave
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Semester")
    {
        total = total + 45.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "Year")
    {
        total = total + 60.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitMicrowaveNDSU").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthNDSU").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //End NDSU Total Update
    
    //Start UND Total Update
    
    /*UND Loft
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "Semester")
    {
        total = total + 65.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "Year")
    {
        total = total + 90.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //UND Loft wShelf
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "Semester")
    {
        total = total + 70.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "Year")
    {
        total = total + 95.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfUND").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthUND").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //End UND Total Update*/
    
    //Start Jamestown Total Update
    
    //Jamestown Loft
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "Semester")
    {
        total = total + 65.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "Year")
    {
        total = total + 90.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //Jamestown Loft wShelf
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "Semester")
    {
        total = total + 70.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "Year")
    {
        total = total + 95.00;
    }
    if(document.getElementById("ctl00_phMainContent_phRental_frmUnitLoftShelfJamestown").checked == true && document.getElementById("ctl00_phMainContent_phRental_frmRentalLengthJamestown").value == "None selected")
    {
        alert('You must select a rental duration.');
    }
    
    //End Jamestown Total Update
    
    document.getElementById("ctl00_phMainContent_phRental_frmTotal").value = total;
    document.getElementById("ctl00_phMainContent_phRental_frmHiddenTotal").value = total;
}

function checkSubmitButton()
{
    /*if(document.getElementById("ctl00_phMainContent_phRental_frmVerify").checked == true)
    {
        document.getElementById("ctl00_phMainContent_phRental_btnSubmit").disabled = false;
    }
    else
    {
        document.getElementById("ctl00_phMainContent_phRental_btnSubmit").disabled = true;
    }*/
}

