function loadthelist(boxval){
dataisland.location.replace('LOADTHEBOX.asp?LOCATIONS_ID='+boxval);
}

function opentheCal(child_id){

window.open('dcwims/ajax_calendar_test/calendar/calander_xb.html?CH_ID='+child_id);
}


function chkout(){
var sendit=true;
if (CHILD_FORM.LOCATION_ID.value.length===0){sendit=false;alert('School Pin Number is required!');CHILD_FORM.LOCATION_ID.focus();}
else if (CHILD_FORM.USER_NAME.value.length===0){sendit=false;alert('A User Name is required!');CHILD_FORM.USER_NAME.focus();}
else if (CHILD_FORM.PASW.value.length===0){sendit=false;alert('A Password is required!');CHILD_FORM.PASW.focus();}
else if (CHILD_FORM.VPASW.value.length===0){sendit=false;alert('A Password is required!');CHILD_FORM.VPASW.focus();}
else if (CHILD_FORM.FIRST_NAME.value.length===0){sendit=false;alert('A Child First Name is required!');CHILD_FORM.FIRST_NAME.focus();}
else if (CHILD_FORM.LAST_NAME.value.length===0){sendit=false;alert('A Child Last Name is required!');CHILD_FORM.LAST_NAME.focus();}
else if (CHILD_FORM.PARENT_FIRST_NAME.value.length===0){sendit=false;alert('A Parent Last Name is required!');CHILD_FORM.PARENT_FIRST_NAME.focus();}
else if (CHILD_FORM.PARENT_LAST_NAME.value.length===0){sendit=false;alert('A Parent Last Name is required!');CHILD_FORM.PARENT_LAST_NAME.focus();}
else if (CHILD_FORM.PARENT_EMAIL.value.length===0){sendit=false;alert('A Email  is required  for contact purposes!');CHILD_FORM.PARENT_EMAIL.focus();}
else if (CHILD_FORM.LOCATION_DESC.selectedIndex===0){sendit=false;alert('A Room/Class Identification is required for proper setup!');CHILD_FORM.LOCATION_DESC.focus();}
if (sendit===true){ CHILD_FORM.submit();}
}


