﻿// JScript file
function UserRatingChkForm()
{
    // Image Input Check
    if (isEmpty("ctl00_cphContent_txtTitle") == false && isEmpty("ctl00_cphContent_txtComment") == false && isEmpty("ctl00_cphContent_fudImage1") != false)
    {
        alert("Image can be uploaded upon completion of comment form.");        
        document.getElementById("ctl00_cphContent_fudImage1").focus();        
        return false;
    }
    
    if (isEmpty("ctl00_cphContent_txtTitle") == false && isEmpty("ctl00_cphContent_txtComment") == false && isEmpty("ctl00_cphContent_fudImage2") != false)
    {
        alert("Image can be uploaded upon completion of comment form");
        document.getElementById("ctl00_cphContent_fudImage2").focus();
        return false;
    }
    
    return true; 
}

