// routines for PBPT
// Copyright statement displays at the bottom of every page
function copydate ()
 {
    today=new Date();
    yearonly=today.getFullYear();
    document.write('&copy; 2004-' +yearonly + ' Personal Best Personal Training.&nbsp; All rights reserved. ');
 }
 
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
function chkConvert() 
{
// Field checks on the Convert Registrant Screen
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
   var checkedCount = 0;
   var f = document.cust_form;
   var num_rows = 0;
   
   num_rows = f.cur_row.value;
   max_times = (parseInt(num_rows)+1);
   
   for (var i = 1; i<max_times; i++) {
	   	this_person = eval("f.registrant_" + i + ".checked");
   		if (this_person) {
			checkedCount = checkedCount + 1;
		} 
   }
   
// if you checked all the line items and none have been checked, return false.

	if (checkedCount == 0) {
		alert("Click the checkbox next to the names that you want to process");
    	return false;
    } else {
      	return true;
    }
}

