function submitEnter(event)
{
  if (event && event.which == 13)
  {
     if(document.getElementById('search_key').value == 'Enter Keyword' || document.getElementById('search_key').value.length < 3)
     {
        alert('Please enter search key of atleast 3 letters'); document.getElementById('search_key').focus(); return false;
     } 
     window.location.href='/search.php?q=' + escape(document.getElementById('search_key').value); return(false);     	
  }  
  else
    return true;
}

function checkText(thefield)
{
    if (thefield.value=='')
        thefield.value = thefield.defaultValue
}

function clearText(thefield)
{
    if (thefield.defaultValue==thefield.value)
        thefield.value = ''
}

function filterBySource(url_part, sv)
{
   var murl = url_part + '/' + sv;
   window.location.href = murl;	
}
