function getValue(thisCntrl,hiddenCntrl,cntrlType)
{
if ((cntrlType == "text") || (cntrlType == "hidden"))
{
thisCntrl.value = hiddenCntrl;
}
if (cntrlType == "check")
{
if (hiddenCntrl.value == "-1")
{
thisCntrl.checked = true;
}
else
{
thisCntrl.checked = false;
}
}
}