<!--

function get_video_month(month, year) {
   if (!month) {
      var month = document.getElementById('month_sel').value
      var year = document.getElementById('year_sel').value
   }

//document.getElementById('calendar').innerHTML = ' month='+month+' year='+year;

   script = document.createElement( 'script' );
   script.src = 'includes/get_month.php?month='+month+'&year='+year;
   document.getElementsByTagName( 'head' )[0].appendChild( script );
}

function video_search() {
   var name = document.getElementById('search_name').value

//document.getElementById('calendar').innerHTML = ' name='+name;

   script = document.createElement( 'script' );
   script.src = 'includes/search.php?name='+name;
   document.getElementsByTagName( 'head' )[0].appendChild( script );
}

function print_ibra() {
   var $page_info = document.getElementById('date').innerHTML;
   var $page_title = '<h2 align="center">International Bible Reading Association<br>'+$page_info+'</h2>';
   var $myinfo = document.getElementById('ibra_info').innerHTML;
   $myinfo = $myinfo.replace(/<a href=".*?>/gi,'');
   $myinfo = $myinfo.replace(/<a class=tt.*?\/a>/gi,'');
   $myinfo = $myinfo.replace(/<\/a>/gi,'');
   $myinfo = $myinfo.replace(/type.?=.?"?button"?/gi,'type="hidden"');
   $myinfo = $myinfo.replace(/class="liClosed"/gi,'class="liOpen"');
   var $myData = $page_title+$myinfo;

   var generator=window.open('','Devotion','height=500,width=600,toolbar=no,directories=no,location=no,menubar=yes,status=no,resizable=yes,scrollbars=yes');
  
   generator.document.write('<html><head><title>International Bible Reading Association</title>');
   generator.document.write('<link rel="stylesheet" href="http://ibra.biblepathway.org/beta/ibra-styles.php" type="text/css" />');
   generator.document.write('<link rel="stylesheet" type="text/css" href="http://ibra.biblepathway.org/ibra-print.css" media="print" />');
   generator.document.write('</head><body>');
   generator.document.write('<div id="print_nav"><a href="javascript:print()"> Print </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:window.close();"> Close </a>&nbsp;&nbsp;</div>');
   generator.document.write('<div id="print_div" class="main-content">');
   generator.document.write($myData);
   generator.document.write('</div>');
   generator.document.write('</body></html>');
   generator.document.close();
}

function submitenter(myfield,e) {
   var keycode;
   if (window.event) keycode = window.event.keyCode;
   else if (e) keycode = e.which;
   else return true;

   if (keycode == 13) {
      myfield.form.submit();
      return false;
   } else
      return true;
}



//-->
      