// courserewards.js

<!--

 function sendTo(dest)
 {
  top.document.location = dest;
 }

 function _check4prod()
 {
  if( document.location.host.match(/^www\.courserewards\.com/) ||
      document.location.host.match(/^courserewards\.com/) ) return(true);

  return(false);
 }

 function _drawMenuBar()
 {
  document.writeln( "<td width=\"12.5%\" style=\"border-left: 1px solid #ffffff\" onclick=\"sendTo('/')\"><a href=\"/\">Home</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/details.html')\"><a href=\"/details.html\">Overview</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/start.html')\"><a href=\"/start.html\">Details</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/demos.html')\"><a href=\"/demos.html\">Demos</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/faqs.html')\"><a href=\"/faqs.html\">FAQ</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/register.html')\"><a href=\"/register.html\">Register</a></td>" );

  document.writeln( "<td width=\"12.5%\" onclick=\"sendTo('/login.html')\"><a href=\"/login.html\">Login</a></td>" );
 }

 //------------------------------------------------------
 // form submission - turn off highlighted inputs before
 // running through form validation
 //------------------------------------------------------
 function hideHighlights(formObj)
 {
  for( var i = 0; i < formObj.elements.length; i++ )
   {
    if( formObj.elements[i].className == "highlightInput" )
      formObj.elements[i].className = "";
   }
 }

 function highlightError(inputObj)
 {
  inputObj.className = "highlightInput";
  inputObj.focus();
 }

//-->
