﻿// JScript File


function OpenViewAlumni(url)
    {
        window.open (url,"_blank","menubar=0,location=0,status=0,width=950,height=740,resizable=0; scrollbars=1 ");
    }

function OpenSendMsg(url)
    {
        window.open (url,"_blank","menubar=0,location=0,status=0,width=600,height=370,resizable=0; scrollbars=0 ");
    }


function onkeydown_txtSearchByName()
    {
        if(event.keyCode == 13)
        {
            document.getElementById('ctl00_MainContent_UcAlumniList1_btnGo').focus();
        }
    }


function DisplayChild_row()
{
    var ddlChildren = document.getElementById('ctl00_MainContent_ddlChildren');
    var ddlChildrenText = ddlChildren.options[ddlChildren.selectedIndex].text;
    var ddlChildrenValue = ddlChildren.options[ddlChildren.selectedIndex].value;

    for (i=1; i<=4; i++)
    {
        document.getElementById('childRow_' + i).style.display = "none";
    }
    if (ddlChildrenValue > 1)
    {
        for (i=1; i<ddlChildrenValue; i++)
        document.getElementById('childRow_' + i).style.display = "block";
    }
}

function loadChild_row(childrow)
{
    for (i=1; i<=4; i++)
    {
        document.getElementById('childRow_' + i).style.display = "none";
    }
    if (childrow > 0)
    {
        for (i=1; i<childrow; i++)
        document.getElementById('childRow_' + i).style.display = "block";
    }
}    
