function searchClear()
{
      
  if ($('term').value == 'Search')
  {
    $('term').value = '';
  }
  
}
function searchShow()
{
  if ($('term').value == '')
  {
    $('term').value = 'Search';
  }
}
function showHidden(el)
{
//  alert(el);
  if ($('contact_'+ el).value == 'Other (please describe):')
  {
    $('contact_hidden_' + el).show();
  }
  else
  {
    $('contact_hidden_'+ el).hide();
  }
}
function syncRegionAndState ()
{
    if(document.getElementById)
    {
        var State = document.getElementById('StateID');
        var Region = document.getElementById('RegionID');
        
        State.disabled = true;
        
        var labels = document.getElementsByTagName('label');
        
        for (var n=0; n<labels.length; n++)
        {
            if(labels.item(n).htmlFor == 'StateID')
            {
                var StateLabel = labels.item(n);
            }
        }
        
        if(Region.value == 'USA and Canada')
        {
        
            State.disabled=false;
            
            if(StateLabel)
                StateLabel.innerHTML = 'State/Province *';
        } 
        else 
        {
            State.disabled = true;
            State.value = 0;
            
            if(StateLabel)
                StateLabel.innerHTML = 'State/Province';
        }
    }
    
    return true;
}

function checkState(full)
{
  if (full == 0)
  {
    if ($('Country').value == 'US')
    {
      
      $('State').disabled = false; 
    
    }
    else
    {
      $('State').disabled = true; 
    }
  }
  if (full == 1)
  {
    if ($('Country').value == 'United States')
    {
      
      $('State').disabled = false; 
    
    }
    else
    {
      $('State').disabled = true; 
    }
  }
  
  
}
