﻿function ShowContactUsWindow() {
    pcContactUs.Show();
}

function OnViewVideoClick(element, keyValue) {
    popupVideo.Show(element);
    cbpPopup.PerformCallback(keyValue);
}

//Used on Site Visit page.
//If no selection is made, disables memo control.
function ChangeMemo(memoControl) {
    if (memoControl.GetEnabled() == false) {
        memoControl.SetEnabled(true);
    }
}

function DetermineSelection(radioControl, memoControl) {   
    if (radioControl.GetSelectedIndex() < 0) {
        alert('Please select the correspoding Rate options first');
        memoControl.SetEnabled(false);
    }
}