function load(){ MM_preloadImages('images/early_headstart_over.jpg','images/find_childcare_over.jpg','images/contact_over.jpg','images/headstart_over.jpg','images/join_cca_over.jpg','images/sitemap_over.jpg','images/careers_over.jpg'); menu(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i workshop_hours){ alert('Sorry, You do not have enough training credits to make another reservation!'); } else if(num_row <= max_rows){ var x = document.getElementById('res_table').insertRow(num_row); var row_id = 'row_' + num_row; x.id = row_id; var y = x.insertCell(0); y.setAttribute('align', 'center'); var z = x.insertCell(1); z.setAttribute('align', 'center'); z.setAttribute('class', 'no_wrap'); y.innerHTML = ''; z.innerHTML = ' '; num_row++; input_id++; } else{ alert('There are not enough seats available'); } } function deleteRow(i) { document.getElementById('res_table').deleteRow(i); num_row--; } function delete_row(id){ i = document.getElementById(id).rowIndex; document.getElementById('res_table').deleteRow(i); num_row--; } function validate_reg_list(){ var form_elements = document.reservation_form.elements; var e; var all_filled_in = true; var total = 0; for(e = 0; e < form_elements.length; e++){ if(form_elements[e].type == 'text' && form_elements[e].value == ''){ all_filled_in = false; total = total + workshop_cost; } } if(workshop_hours === false){ alert('Sorry, failed check for current membership hours!'); return false; } else if(total > workshop_hours){ alert('Sorry, You do not have enough training credits!'); return false; } if(!all_filled_in){ alert('You must fill out the form completely!'); return false; } else return true; } function confirm_show_standby(id){ input_box=confirm("There is someone on the stand by list for this workshop. Click ok to view the stand by list."); if (input_box==true){ window.location= 'index.php?op=standby_lists&show=View&list_id=' + id; } }