﻿
function Find_Checked(id,TF)
{
    //alert(id);
    document.getElementById("hdnchkdoptid").value=id;
    document.getElementById("hidoptTF").value=TF;
    //alert(form1.hdnval.value);
    return true;
}

function Country_List()
{
    //if(form1.DDLCountry.selectedindex == 0)
    if(document.getElementById("txtAddress").value=="")
    {
        alert("Please enter the Address");
        return false;
    }
    if(document.getElementById("txtCity").value=="")
    {
        alert("Please enter the City");
        return false;
    }
    if(document.getElementById("txtState").value=="")
    {
        alert("Please enter the State");
        return false;
    }
    if(document.getElementById("DDLCountry").value=="-- Select Country --")
    {
        alert("Please select the country");
        return false;
    }
}

function AboutClasstube()
{
    
    alert(NewsBody_rich.document.body.innerText);
    form1.hdnAbout.value=NewsBody_rich.document.body.innerHTML;
    
}

function ValidateRadbtnClick()
{
    if(document.getElementById("hdnchkdoptid").value=="")
    {
        alert("Please check one of the options to proceed.");
        return false;
    }
}


function ValidateCourseReference()
{   alert("hi");
    if(document.getElementById("txtCourseReference").style.display=="block")
    {   
        if(document.getElementById("txtCourseReference").value=="")
        {
            alert("Please enter the reference of the course you have attended.");
            return false;
        }
        
    }
}
function trythis()
{
    alert("hi");
    if(document.getElementById("txtCourseReference").style.display=="block")
    {   
        if(document.getElementById("txtCourseReference").value=="")
        {
            alert("Please enter the reference of the course you have attended.");
            return false;
        }
        
    }
}
