 <!--

 		function doClear(theText) 
		{
  			if (theText.value == theText.defaultValue)
 			{
         			theText.value = ""
     			}
 		}

		function confirmDelete()
		{
			return window.confirm("Are you sure you want to delete this organization?");
		}

		function confirmEdit()
		{
			return window.confirm("Are you sure you want to submit these changes?");
		}

		function check_email(e)
		{
			ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

			for(i=0; i < e.length ;i++)
			{
				if(ok.indexOf(e.charAt(i))<0)
				{ 
					return (false);
				}	
			} 

			if (document.images)
			{
				re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
				re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
				if (!e.match(re) && e.match(re_two))
				{
					return (-1);		
				} 

			}

		}


		function check_org_form_1(f)
		{ // f is the form
			if(f.org.value.length < 1)
			{
				alert("Please enter the name of the organization.");
				f.org.focus();
				return false;
			}

			if(f.org.value.length > 80)
			{
				alert("Organization names should be less than 80 characters.");
				f.org.focus();
				return false;
			}

			if(f.acctNum.value.length != 3)
			{
			 	return true;
				alert("Please enter a valid account number.");
				f.acctNum.focus();
				return false;
			}

			/* check the first email address
			if(!check_email(f.email.value))
			{
				alert("Invalid email detected.");
				f.email.focus(); 
				// if the browser is Netscape 6 or IE
				if(document.all || document.getElementByID)
				{
					// change the color of text field
					f.email.style.background = "yellow";
				}
				// make sure the form is not submitted
				return false;
			}

			// check the second email address
			if(!check_email(f.another_email.value))
			{
				alert("Invalid email detected.");
				f.another_email.focus(); 
				if(document.all || document.getElementByID)
				{
					f.another_email.style.background = "yellow";
				}
			return false;
			}
			*/
		}



		//-->
