function addbookmark(url)
{
bookmarkurl="http://www.kids2go.co.za/"+url
bookmarktitle="Title - Kids2Go"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function checkEmail(theForm)
{
	
if (theForm.txtEmail.value == "") {
	  alert("Please fill out the email address.");
		theForm.txtEmail.focus();
		return false;
  }

  str = theForm.txtEmail.value;
	founddot = false;
	lastdot = 0;
	foundat = false;
	lastat = 0;
	for (i=0; i<str.length; i++) {
	  if (str.charAt(i) == ".") {
		  founddot = true;
			lastdot = i;
		}
		if (str.charAt(i) == "@") {
		  foundat = true;
			lastat = i;
		}
  }
	
	if (founddot == false || foundat == false || lastat > lastdot || str.length < 6) {
	  alert("Please fill in a valid email address before continuing.");
		theForm.txtEmail.focus();
		return false;
	}
	return true;

}



