function setRecentEventLocation (cds, cds_name, cds_other, address, city, st, zip) {
				
	document.forms[0].CDS_CODE.value=cds;
	document.forms[0].CDS_NAME.value=cds_name;
	document.forms[0].CDS_OTHER.value=cds_other;
	
	document.forms[0].address01.value=address;
	document.forms[0].city.value=city;
	document.forms[0].st.value=st;
	document.forms[0].zip.value=zip;

}

function setRecentConsultLocation (cds, cds_name, cds_other) {
				
	document.forms[0].CDS_CODE.value=cds;
	document.forms[0].CDS_NAME.value=cds_name;
	document.forms[0].CDS_OTHER.value=cds_other;

}

function setRecentLocation (loc_id, loc_name) {
				
	document.ev_add_event.LOCATION.value=loc_id;
	document.ev_add_event.LOCATION_NAME.value=loc_name;

}

function checkCountyAdd() {

	missinginfo = "";
	if (document.add_county.county_cid.value == "") {
		missinginfo += "\n     -  CID";
	} else {
	
		if (document.add_county.county_cid.value.length != 2) {
			missinginfo += "\n     -  CID must be (2) characters in length.";
		}
		
	}
	if (document.add_county.county_name.value == "") {
		missinginfo += "\n     -  County Name";
	}
	if (document.add_county.county_address.value == "") {
		missinginfo += "\n     -  County Address";
	}
	if (document.add_county.county_city.value == "") {
		missinginfo += "\n     -  County City";
	}
	if (document.add_county.county_st.value == "") {
		missinginfo += "\n     -  County Atate";
	}
	if (document.add_county.county_zip.value == "") {
		missinginfo += "\n     -  County Zip Code";
	}

	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}

function deleteResetWarning() {
	
	missinginfo = confirm("Are you sure you want to RESET the selected Modules?");
	
	if (missinginfo != "0") {
	
		return true;
	
	} else {
	
		return false;
	
	}
	
}

function checkDistrictAdd() {

	missinginfo = "";
	if (document.add_district.district_cid.value == "") {
		missinginfo += "\n     -  CID";
	} else {
	
		if (document.add_district.district_cid.value.length != 2) {
			missinginfo += "\n     -  CID must be (2) characters in length.";
		}
		
	}
	if (document.add_district.district_did.value == "") {
		missinginfo += "\n     -  DID";
	} else {
	
		if (document.add_district.district_did.value.length != 5) {
			missinginfo += "\n     -  DID must be (5) characters in length.";
		}
		
	}
	if (document.add_district.district_name.value == "") {
		missinginfo += "\n     -  district Name";
	}
	if (document.add_district.district_address.value == "") {
		missinginfo += "\n     -  district Address";
	}
	if (document.add_district.district_city.value == "") {
		missinginfo += "\n     -  district City";
	}
	if (document.add_district.district_st.value == "") {
		missinginfo += "\n     -  district Atate";
	}
	if (document.add_district.district_zip.value == "") {
		missinginfo += "\n     -  district Zip Code";
	}

	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}

function checkSchoolAdd() {

	missinginfo = "";
	if (document.add_school.school_cid.value == "") {
		missinginfo += "\n     -  CID";
	} else {
	
		if (document.add_school.school_cid.value.length != 2) {
			missinginfo += "\n     -  CID must be (2) characters in length.";
		}
		
	}
	if (document.add_school.school_did.value == "") {
		missinginfo += "\n     -  DID";
	} else {
	
		if (document.add_school.school_did.value.length != 5) {
			missinginfo += "\n     -  DID must be (5) characters in length.";
		}
		
	}
	if (document.add_school.school_sid.value == "") {
		missinginfo += "\n     -  SID";
	} else {
	
		if (document.add_school.school_sid.value.length != 7) {
			missinginfo += "\n     -  SID must be (7) characters in length.";
		}
		
	}
	if (document.add_school.school_cds_code.value == "") {
		missinginfo += "\n     -  CDS CODE";
	} else {
	
		if (document.add_school.school_cds_code.value.length != 14) {
		
			missinginfo += "\n     -  CDS CODE must be (14) characters in length.";
			
		} else {
		
			var cdscode = "";
			cdscode += document.add_school.school_cid.value;
			cdscode += document.add_school.school_did.value;
			cdscode += document.add_school.school_sid.value;
			
			if (document.add_school.school_cds_code.value != cdscode) {
		
				missinginfo += "\n     -  CDS CODE does not match CID, DID and SID.";

			}
		
		}
		
	}
	if (document.add_school.school_name.value == "") {
		missinginfo += "\n     -  School Name";
	}
	if (document.add_school.school_address.value == "") {
		missinginfo += "\n     -  School Address";
	}
	if (document.add_school.school_city.value == "") {
		missinginfo += "\n     -  School City";
	}
	if (document.add_school.school_st.value == "") {
		missinginfo += "\n     -  School Atate";
	}
	if (document.add_school.school_zip.value == "") {
		missinginfo += "\n     -  School Zip Code";
	}

	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}


function checkUserAdd() {
		
	missinginfo = "";
	if (document.addUser.first.value == "") {
		missinginfo += "\n     -  First Name";
		}
	if (document.addUser.last.value == "") {
		missinginfo += "\n     -  Last Name";
		}
	if (document.addUser.position_cat_id.value == "-1") {
		missinginfo += "\n     -  Position Category";
		}
	if (document.addUser.position_cat_id.value == "100" && document.addUser.position_cat_other.value == "") {
		missinginfo += "\n     -  Position Category Other";
		}
	if (document.addUser.grade_level.value == "-1") {
		missinginfo += "\n     -  Grade Level";
		}
	if (document.addUser.grade_level.value == "100" && document.addUser.grade_level_other.value == "") {
		missinginfo += "\n     -  Grade Level Other";
		}
	if (document.addUser.CDS_CODE.value == "") {
		missinginfo += "\n     -  County/School/District";
		}
	if (document.addUser.CDS_CODE.value == "00000000000000" && document.addUser.CDS_OTHER.value == "") {
		missinginfo += "\n     -  County/School/District Other";
		}
	if (document.addUser.email_primary.value == "") {
		missinginfo += "\n     -  Email Address";
		} else {
		
			if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.addUser.email_primary.value)) {
			
			} else {
			
				missinginfo += "\n     -  Invalid Email Address";
				missinginfo += "\n        (your_name@your_domain)";
		
			}
			
		}
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}

function checkUserAddNew() {
		
	missinginfo = "";
	if (document.addUser.first.value == "") {
		missinginfo += "\n     -  First Name";
		}
	if (document.addUser.last.value == "") {
		missinginfo += "\n     -  Last Name";
		}
	if (document.addUser.position_cat_id.value == "-1") {
		missinginfo += "\n     -  Position Category";
		}
	if (document.addUser.position_cat_id.value == "100" && document.addUser.position_cat_other.value == "") {
		missinginfo += "\n     -  Position Category Other";
		}
	if (document.addUser.grade_level.value == "-1") {
		missinginfo += "\n     -  Grade Level";
		}
	if (document.addUser.grade_level.value == "100" && document.addUser.grade_level_other.value == "") {
		missinginfo += "\n     -  Grade Level Other";
		}
	if (document.addUser.CDS_CODE.value == "") {
		missinginfo += "\n     -  County/School/District";
		}
	if (document.addUser.CDS_CODE.value == "00000000000000" && document.addUser.CDS_OTHER.value == "") {
		missinginfo += "\n     -  County/School/District Other";
		}
	if (document.addUser.email_primary.value == "") {
		missinginfo += "\n     -  Email Address";
		} else {
		
			if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.addUser.email_primary.value)) {
			
			} else {
			
				missinginfo += "\n     -  Invalid Email Address";
				missinginfo += "\n        (your_name@your_domain)";
		
			}
			
		}
	if (document.addUser.password.value == "") {
		missinginfo += "\n     -  Password";
		}
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}
		
function checkLogin() {
	missinginfo = "";
	if (document.admin_login.admin_login.value == "") {
		
		missinginfo += "\n     -  Email Address/Login";
		
		} else {
			
			if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.admin_login.admin_login.value)) {
			
			} else {
			
				missinginfo += "\n     -  Invalid Email Address/Login";
				missinginfo += "\n        (your_name@your_domain)";
				
			}
		
		}
	if (document.admin_login.admin_password.value == "") {
		missinginfo += "\n     -  Password";
		}
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	else return true;
}

function checkForgotPassword () {

	missinginfo = "";
	if (document.forgot_password.email.value == "") {
		
		missinginfo += "\n     -  Email Address/Login";
		
		} else {
			
			if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.forgot_password.email.value)) {
			
			} else {
			
				missinginfo += "\n     -  Invalid Email Address/Login";
				missinginfo += "\n        (your_name@your_domain)";
				
			}
		
		}
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	else return true;

}

function openWindow(url) {
	popupWin = window.open (url, "", "width=450, height=350, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowFAQ(url) {
	popupWin = window.open (url, "", "width=550, height=350, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowHelp(url) {
	popupWin = window.open (url, "", "width=375, height=350, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowPreview(url) {
	popupWin = window.open (url, "", "width=375, height=350, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowEvent(url) {
	popupWin = window.open (url, "", "width=450, height=350, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowExport(url) {
	popupWin = window.open (url, "", "width=375, height=375, left=10, top=10, scrollbars=yes, titlebar=no");
}

function openWindowAddDist(url) {
	popupWin = window.open (url, "", "width=375, height=375, left=10, top=10, scrollbars=yes, titlebar=no");
}

function opencds(url) {
  var cdsWindow;
  if (!cdsWindow  || cdsWindow.closed) 
		cdsWindow = open(url, 'cdsfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		cdsWindow.focus();
}

function cdsfillin(CDS_CODE, school, address, city, st, zip) {
  if(self.opener.document.forms[0].CDS_CODE) {
	self.opener.document.forms[0].CDS_CODE.value = CDS_CODE; 
  } else {
	alert("CDS_CODE object is missing in opener window.");
  }
  if(self.opener.document.forms[0].CDS_NAME) {
	self.opener.document.forms[0].CDS_NAME.value = school; 
  }
  if(self.opener.document.forms[0].address01) {
	self.opener.document.forms[0].address01.value = address; 
  }
  if(self.opener.document.forms[0].address_primary_01) {
	self.opener.document.forms[0].address_primary_01.value = address; 
  }
  if(self.opener.document.forms[0].city) {
	self.opener.document.forms[0].city.value = city; 
  }
  if(self.opener.document.forms[0].city_primary) {
	self.opener.document.forms[0].city_primary.value = city; 
  }
  if(self.opener.document.forms[0].st) {
	self.opener.document.forms[0].st.value = st; 
  }
  if(self.opener.document.forms[0].st_primary) {
	self.opener.document.forms[0].st_primary.value = st; 
  }
  if(self.opener.document.forms[0].zip) {
	self.opener.document.forms[0].zip.value = zip; 
  }
  if(self.opener.document.forms[0].zip_primary) {
	self.opener.document.forms[0].zip_primary.value = zip; 
  }
  wrapup();
}

function openschool(url) {

  var cdsWindow;
  
  if (!cdsWindow  || cdsWindow.closed) 
		cdsWindow = open(url, 'sidfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		cdsWindow.focus();
}

function schoolfillin(CDS_CODE, school) {
  if(self.opener.document.forms[0].CDS_CODE) {
	self.opener.document.forms[0].CDS_CODE.value = CDS_CODE; 
  } else {
	alert("CDS_CODE object is missing in opener window.");
  }
  if(self.opener.document.forms[0].CDS_NAME) {
	self.opener.document.forms[0].CDS_NAME.value = school; 
  }
  wrapup();
}

function openGroup(url) {

  var cdsWindow;
  
  if (!cdsWindow  || cdsWindow.closed) 
		cdsWindow = open(url, 'cdsfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		cdsWindow.focus();
}


function groupfillin(gid, group_name, form_number) {
  if(self.opener.document.forms[form_number].gid) {
	self.opener.document.forms[form_number].gid.value = gid; 
  } else {
	alert("User object is missing in opener window.");
  }
  if(self.opener.document.forms[form_number].group_name) {
	self.opener.document.forms[form_number].group_name.value = group_name; 
  }
  wrapup();
}

function openUser(url) {
  var cdsWindow;
  if (!cdsWindow  || cdsWindow.closed) 
		cdsWindow = open(url, 'cdsfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		cdsWindow.focus();
}

function userfillin(uid, user_name) {
  if(self.opener.document.forms[0].uid) {
	self.opener.document.forms[0].uid.value = uid; 
  } else {
	alert("User object is missing in opener window.");
  }
  if(self.opener.document.forms[0].user_name) {
	self.opener.document.forms[0].user_name.value = user_name; 
  }
  wrapup();
}

function open_Location(url) {

	window.location.href = url;

}

function openLocation(url) {
  var locationWindow;
  if (!locationWindow  || locationWindow.closed) 
		locationWindow = open(url, 'locationfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		locationWindow.focus();
}

function openLocation2() {
  var locationWindow;
  if (!locationWindow  || locationWindow.closed) 
		locationWindow = open('http://admin.k12oms.org/LOCATION_NEW/location_select.php?site=1', 'locationfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		locationWindow.focus();
}

function openEventFinder(url) {
  var locationWindow;
  if (!locationWindow  || locationWindow.closed) 
		locationWindow = open(url, 'eventfloater', 'left=50,top=0,height=375,width=450,menubar=no,scrollbars=yes,resizable=yes');
  else
		locationWindow.focus();
}

function locationfillin(LOCATION, LOCATION_NAME) {
  if(self.opener.document.forms[0].LOCATION) {
	self.opener.document.forms[0].LOCATION.value = LOCATION; 
  } else {
	alert("LOCAITON object is missing in opener window.");
  }
  if(self.opener.document.forms[0].LOCATION_NAME) {
	self.opener.document.forms[0].LOCATION_NAME.value = LOCATION_NAME; 
  }
  wrapup();
}

function eventfillin(EVENT_ID, EVENT_TITLE) {
  if(self.opener.document.forms[0].new_event_id) {
	self.opener.document.forms[0].new_event_id.value = EVENT_ID; 
  } else {
	alert("Event object is missing in opener window.");
  }
  if(self.opener.document.forms[0].new_event_title) {
	self.opener.document.forms[0].new_event_title.value = EVENT_TITLE; 
  }
  wrapup();
}

function wrapup(){
  self.opener.focus();
  self.close();
}

function cancel_event(url) {
			
	msg = "Are you sure you want to cancel this event?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_announcement(url) {
			
	msg = "Are you sure you want to delete this announcement?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function open_event(url) {
			
	msg = "Are you sure you want to re-open this event?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_participant(url) {
			
	msg = "Are you sure you want to delete this site/team/participant?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_group_user(url) {
			
	msg = "Are you sure you want to delete this user from this group? It would be better to set the user as inactive to maintain future records.";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}
	
function delete_note(url) {
		
	msg = "Are you sure you want to delete this note?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_dist_list_item(url) {
		
	msg = "Are you sure you want to delete this distribution list item?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_dist_list(url) {
		
	msg = "Are you sure you want to delete this distribution list?";

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}

function delete_message(url,msg) {

	if (confirm(msg)) {
		window.location.href = url;
	}
		
}
	
function selectall(obj) { 
	var checkboxes = document.getElementsByTagName('input'); 
	for (i = 0; i < checkboxes.length; i++) { 
		if (obj.checked == true) { 
			checkboxes[i].checked = true; // this checks all the boxes 
		} else { 
			checkboxes[i].checked = false; // this unchecks all the boxes 
		}
	}
}

function checkUncheckAll(theElement) {

	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
		}
}


<!-- flooble Expandable Content header start -->
// Expandable content script from flooble.com.
// For more information please visit:
//   http://www.flooble.com/scripts/expand.php
// Copyright 2002 Animus Pactum Consulting Inc.
//----------------------------------------------
var ie4 = false; if(document.all) { ie4 = true; }
function getObject(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(link, divId) { var lText = link.innerHTML; var d = getObject(divId);
 if (lText == '+') { link.innerHTML = '-'; d.style.display = 'block'; }
 else { link.innerHTML = '+'; d.style.display = 'none'; } }

<!-- flooble Expandable Content header end   -->

// FUNCTION TO VALIDATE ADDING A NEW LOCATION

function checkAddLocation() {
			
	missinginfo = "";
	
	if (document.add_location.location.value == "") {
		missinginfo += "\n     -  Location Name";
		}
	if (document.add_location.address.value == "") {
		missinginfo += "\n     -  Location Address";
		}
	if (document.add_location.city.value == "") {
		missinginfo += "\n     -  Location City";
		}
	if (document.add_location.st.value == "") {
		missinginfo += "\n     -  Location State";
		}
	if (document.add_location.zip.value == "") {
		missinginfo += "\n     -  Location Zip Code";
		}	
	
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	
	else return true;

}

function cancel_opperation(url) {

	window.location.href = url;

}


function getRandomNum(lbound, ubound) {

	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);

}
	
function getRandomChar(number, lower, upper, other, extra) {

	var numberChars = "0123456789";
	var lowerChars = "abcdefghijklmnopqrstuvwxyz";
	var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
	var otherChars = "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? ";
	var charSet = extra;
	
	if (number == true)
	charSet += numberChars;
	if (lower == true)
	charSet += lowerChars;
	if (upper == true)
	charSet += upperChars;
	if (other == true)
	charSet += otherChars;
	
	return charSet.charAt(getRandomNum(0, charSet.length));
}

function getPassword(length, extraChars, firstNumber, firstLower, firstUpper, firstOther, latterNumber, latterLower, latterUpper, latterOther) {
	
	var rc = "";
	if (length > 0)
	
	rc = rc + getRandomChar(firstNumber, firstLower, firstUpper, firstOther, extraChars);
	
	for (var idx = 1; idx < length; ++idx) {
	
		rc = rc + getRandomChar(latterNumber, latterLower, latterUpper, latterOther, extraChars);
		
	}
	
	return rc;
	
}

function hide_msg_box() {
			
	document.getElementById("msg_box").innerHTML = '';

}

function CheckFieldLength(fn,wn,rn,mc) {

	var len = fn.value.length;
	if (len > mc) {
		fn.value = fn.value.substring(0,mc);
		len = mc;
	}
	document.getElementById(rn).innerHTML = mc - len;
	
}


function checkUserContact() {
	missinginfo = "";
	if (document.update_user_contact_information.email_primary.value == "") {
		
		missinginfo += "\n     -  Primary Email Address";
		
	} else {
			
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.update_user_contact_information.email_primary.value)) {
		
		} else {
		
			missinginfo += "\n     -  Invalid Primary Email Address";
			missinginfo += "\n        (your_name@your_domain)";
			
		}
		
	}
	if (document.update_user_contact_information.email_secondary.value != "") {
			
		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.update_user_contact_information.email_secondary.value)) {
		
		} else {
		
			missinginfo += "\n     -  Invalid Secondary Email Address";
			missinginfo += "\n        (your_name@your_domain)";
			
		}
		
	}

	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	else return true;
}

function checkUserPassword() {

	missinginfo = "";
	if (document.user_password_reset.password_01.value == "") {
		missinginfo += "\n     -  Password";
	}
	if (document.user_password_reset.password_02.value == "") {
		missinginfo += "\n     -  Please Verify the Password you selected.";
	}
	if (document.user_password_reset.password_01.value != document.user_password_reset.password_02.value) {
		missinginfo += "\n     -  Passwords do not match.";
	}
	
	if (missinginfo != "") {
		missinginfo ="_____________________________\n" +
		"You failed to correctly fill in your:\n" +
		missinginfo + "\n_____________________________" +
		"\nPlease re-enter and submit again!";
		alert(missinginfo);
		return false;
	}
	else return true;
}

function checkLen(x,y) {

	if (y.length==x.maxLength) {

		var next=x.tabIndex;
		
		document.getElementById("indiv_add").phone01_pre.focus();
		
		if (next<document.getElementById("indiv_add").length) {
			
			document.getElementById("indiv_add").phone01_pre.focus();
		
		}

	}
}

function switch_group_show() {
			
	document.getElementById("book_group").style.display="block";

}

function switch_group_hide_timeout() {

	setTimeout ("switch_group_hide()", 6000 ); 

}

function switch_group_hide() {
	
	document.getElementById("book_group").style.display="none"; 


}

function refresh_parent_page() {
	
	setTimeout('location.reload(true)',150);

}