﻿// JScript File
/* Form Validation Script for Eaton Wizard
Developed By	: Pooja Verma
Date			: April 1, 2009
Message			: Functions related to Eaton Wizard
*/

function RadioButtonSector(rdoctl,ctrlId)
{
    var id = 'ctl00_generalContent_wizEaton_'+ctrlId;
    var lblgrid=document.getElementById(id);
    if(lblgrid.getElementsByTagName("input"))
    {
        var inputTags = lblgrid.getElementsByTagName("input");
        var tagsLength = inputTags.length; 
        for(var i=0;i<tagsLength ;i++)
        { 
            var IdName=inputTags[i].id;
            if(rdoctl.id!=IdName)
            {
                inputTags[i].checked=false;
            }
        }      
    }
}

function GetColorValues()
{
    var hdnColors = document.getElementById('ctl00_generalContent_wizEaton_hdnColors');
    hdnColors.value='';
    var selectTags = lblgrid.getElementsByTagName("select");
    var tagsLength = selectTags.length; 
        for(var i=0;i<tagsLength ;i++)
        { 
            var selectID=selectTags[i].id;
            hdnColors.value=hdnColors.value + document.getElementById(selectID).value;
        }  
    alert(hdnColors.value);
}

     


