﻿


function contactRadioList_OnClick()
      {
         elements = document.getElementsByTagName("input");
         div = azblue.aspxControls.contactInfoDiv;
         
         for (j = 0 ; j < elements.length ; j++)
         {
            if (elements[j].type == "radio")
               {
                   if((elements[j].value) == "Yes" )
                   {
                        if (elements[j].checked) 
                        {
                           div.style.display = "block" ;                  
                        }
                   } 
                   else if ( elements[j].value == "No") 
                   { 
                        if (elements[j].checked)
                        {
                           div.style.display = "none" ;
                        }
                   }
                   
               }
         }

}

function suspectChkBox_ClientValidate(sender, args) 
{
    memChk = azblue.aspxControls.memberChk;
    physChk = azblue.aspxControls.physicianChk;
    provChk = azblue.aspxControls.otherProviderChk;
    otherChk = azblue.aspxControls.otherChk;
    
    if (memChk.checked == false && physChk.checked == false 
         && provChk.checked == false && otherChk.checked == false)
    {
        args.isValid = false ;
    }  
}   

function memberChk_OnClick()
{
    memberChk = azblue.aspxControls.memberChk;
    if (memberChk.checked == true)
    {
        azblue.aspxControls.physicianChk.checked =  false ;
        azblue.aspxControls.otherProviderChk.checked = false ;
        azblue.aspxControls.otherChk.checked = false ;
        
        azblue.aspxControls.providerSpecialityLbl.style.display = "none" ;
        azblue.aspxControls.providerSpecialityTxt.style.display = "none" ;
        azblue.aspxControls.otherLbl.style.display = "none" ;
        azblue.aspxControls.otherTxt.style.display = "none" ;
        azblue.aspxControls.physSpecialityLbl.style.display = "none" ;
        azblue.aspxControls.physSpecialityTxt.style.display = "none" ;
    }                     
    else 
    {
    
    }
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
 
function physicianChk_OnClick()
{
    physChk = azblue.aspxControls.physicianChk;
    if (physChk.checked == true)
    {
      azblue.aspxControls.memberChk.checked =  false ;
      azblue.aspxControls.otherProviderChk.checked = false ;
      azblue.aspxControls.otherChk.checked = false ;
    
      
      azblue.aspxControls.physSpecialityLbl.style.display = "block" ;
      azblue.aspxControls.physSpecialityTxt.style.display = "block" ;
      
      azblue.aspxControls.providerSpecialityLbl.style.display = "none" ;
      azblue.aspxControls.providerSpecialityTxt.style.display = "none" ;
      
      azblue.aspxControls.otherLbl.style.display = "none" ;
      azblue.aspxControls.otherTxt.style.display = "none" ;
    }                     
    else 
    {
      azblue.aspxControls.physSpecialityLbl.style.display = "none" ;
      azblue.aspxControls.physSpecialityTxt.style.display = "none" ;
      
    }
}                         
                         
function otherProviderChk_OnClick()
{
    provChk = azblue.aspxControls.otherProviderChk;

    if (provChk.checked == true)
    {
      azblue.aspxControls.memberChk.checked =  false ;
      azblue.aspxControls.physicianChk.checked = false ;
      azblue.aspxControls.otherChk.checked = false ;
    
    
      azblue.aspxControls.providerSpecialityLbl.style.display = "block" ;
      azblue.aspxControls.providerSpecialityTxt.style.display = "block" ;
      
      azblue.aspxControls.physSpecialityLbl.style.display = "none" ;
      azblue.aspxControls.physSpecialityTxt.style.display = "none" ;
      azblue.aspxControls.otherLbl.style.display = "none" ;
      azblue.aspxControls.otherTxt.style.display = "none" ;
    }                                           
    else                                        
    {                                           
      azblue.aspxControls.providerSpecialityLbl.style.display = "none" ;
      azblue.aspxControls.providerSpecialityTxt.style.display = "none" ;
    }
}

function otherChk_OnClick()
{
    otherChk = azblue.aspxControls.otherChk;
    
    if (otherChk.checked == true)
    {
        azblue.aspxControls.memberChk.checked =  false ;
        azblue.aspxControls.otherProviderChk.checked = false ;
        azblue.aspxControls.physicianChk.checked = false ;
    
        azblue.aspxControls.otherLbl.style.display = "block" ;
        azblue.aspxControls.otherTxt.style.display = "block" ;
      
        azblue.aspxControls.physSpecialityLbl.style.display = "none" ;
        azblue.aspxControls.physSpecialityTxt.style.display = "none" ;
        azblue.aspxControls.providerSpecialityLbl.style.display = "none" ;
        
        azblue.aspxControls.providerSpecialityTxt.style.display = "none" ;
    }
    else
    {
      azblue.aspxControls.otherLbl.style.display = "none" ;
      azblue.aspxControls.otherTxt.style.display = "none" ;
    }
}

function contactRadio_OnClick()
{
    contactRadio = azblue.aspxControls.contactYesRadio ;
    
    if (contactRadio.checked == true)
    {
      azblue.aspxControls.contactInfoDiv.style.display = "block" ;
    }
    else 
    {
      azblue.aspxControls.contactInfoDiv.style.display = "none" ;
    }
}

function editBtn_OnClick()
{
  azblue.aspxControls.defaultPanel.style.display = "block" ;
  azblue.aspxControls.previewPanel.style.display = "none" ;
  azblue.aspxControls.confirmationPanel.style.display = "none" ;
  
}

function test_radio()
{
   azblue.aspxControls.contactYesRadio.checked = true ;
}

function test()
{

   
    azblue.aspxControls.otherProviderChk.checked = true;
    
    
    if (azblue.aspxControls.otherProviderChk.checked)
    {
        azblue.aspxControls.providerSpecialityTxt.value = "TestProvSpeciality";
    }

//    azblue.aspxControls.physicianChk.checked = true;


    if (azblue.aspxControls.physicianChk.checked) 
    {
        azblue.aspxControls.physSpecialityTxt.value = "TestPhysSpeciality";
        azblue.aspxControls.physicianChk.click();
    }

//    azblue.aspxControls.otherChk.checked = true;

    if (azblue.aspxControls.otherChk.checked) 
    {
        azblue.aspxControls.otherTxt.value = "TestOtherSpecialty";       
        azblue.aspxControls.otherChk.click(); 
    }

    azblue.aspxControls.suspectNameTxt.value = "suspectName";
    azblue.aspxControls.suspectIDNumberTxt.value = "234456";
   
    azblue.aspxControls.suspectCityTxt.value = "Phoenix";
    azblue.aspxControls.suspectAddressTxt.value = "1345, Monroe Street";
    azblue.aspxControls.suspectTelephoneTxt.value = "480-241-4567";
    azblue.aspxControls.fraudDescriptionTxt.value = "testFraudDescription";
    azblue.aspxControls.suspectZipTxt.value = "87967";

    azblue.aspxControls.nameTxt.value = "Invictus";
    azblue.aspxControls.addressTxt.value = "890, W Wilson Ave";
    azblue.aspxControls.cityTxt.value = "Glendale";
   
    azblue.aspxControls.zipcodeTxt.value = "89765";
    azblue.aspxControls.homePhoneTxt.value = "4806765445";
    azblue.aspxControls.workPhoneTxt.value = "6028908764";
    azblue.aspxControls.cellPhoneTxt.value = "6239877899";
    azblue.aspxControls.bestTimeCallTxt.value = "5:00 P.M.";
    azblue.aspxControls.emailTxt.value = "adam.reid@transformers.net";
    
}

