 function showPop(url) {
		if (window.name != 'popUpShown') {
			window.name = 'popUpShown';
			openScript(url, 300, 200);
			}
		return
		} 

	function swapImage(myUrl, direction) {
		if (document.images) {
			document.images[myUrl].src = '/images/top_nav/' + myUrl + direction + '.gif';
			}
		return
		}

	function openScript(url, width, height) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=yes,status=no' );
		}
		
	function valSubscribe() {
		var FormElementValue = document.forms["subscribeform"].elements["email"].value
	
			var vlength
    	  	vlength = FormElementValue.length - 1
  			if (FormElementValue.length == 0)
				{
					alert("You must enter a valid email address.  Example:  Name@kidsgrowth.com")
					return false
				}

  				// Check for a valid email address (Does it contain a "@" and ".")
  			if(FormElementValue.indexOf('@', 0) == -1 || FormElementValue.indexOf('.',0)==-1)
				{
					alert("You must enter a valid email address.  Example:  Name@kidsgrowth.com")
					return false
				}
 				// Check for a valid email address ("@" or "." cannot be first character)
			if(FormElementValue.charAt(0)=='@' || FormElementValue.charAt(0)=='.')
				{
					alert("You must enter a valid email address.  Example:  Name@kidsgrowth.com")
					return false
				}
				// Check for a valid email address ("@" or "." cannot be last character)
			if(FormElementValue.charAt(vlength)=='@' || FormElementValue.charAt(vlength)=='.')
				{
					alert("You must enter a valid email address.  Example:  Name@kidsgrowth.com")
					return false
				}
  				// Check for a valid email address (Cannot have "@." or ".@")
			if(FormElementValue.indexOf('@.')!=-1 || FormElementValue.indexOf('.@')!=-1)
				{
					alert("You must enter a valid email address.  Example:  Name@kidsgrowth.com")
					return false
				}
return true
}
		
		