<!--
function validatejoinfrm()
{

if(document.joinform.firstNm.value=="")
  {
  alert("First name must be specified.")
  return false;
  }
if(document.joinform.lastNm.value=="")
  {
  alert("Last name must be specified.")
  return false;
  }

if(document.joinform.address.value=="")
  {
  alert("Address must be specified.")
  return false;
  }

	
if((document.joinform.Home_country_code.value!="")||(document.joinform.home_areacode.value!="")||(document.joinform.home_number.value!=""))
  {
   
   if(document.joinform.Home_country_code.value=="")
    {
     alert("Home Country Code must be specified.")
     return false;
     }
   
   if(document.joinform.home_number.value=="")
    {
     alert("Home Phone# must be specified.")
     return false;
     }
     
    if(!ValidateNo(document.joinform.home_areacode.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Area Code"); 
        document.joinform.home_areacode.focus(); 
        return false; 
    } 
if(!ValidateNo(document.joinform.home_number.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Phone#"); 
        document.joinform.home_number.focus(); 
        return false; 
    } 

}


 if((document.joinform.sendby[0].checked == false) && (document.joinform.sendby[1].checked==false))
   {
   alert("How would you like the article sent to you? Please specify.")
   return false;
   }

 
 if((document.joinform.sendby[0].checked == true) && (document.joinform.sendby[1].checked == false))
   {
   if(document.joinform.Email.value=="")
    {
    alert("Email must be specified.")
    return false;
   }
  }	
 	


 
 
// if(document.joinform.securityCode.value=="")
//  {
//  alert("SECURITY CODE must be specified.")
//  return false;
 // } 

 return true;
 }
 

function validatejoinfrmDVD()
{
	
if((document.joinform.Home_country_code.value!="")||(document.joinform.home_areacode.value!="")||(document.joinform.home_number.value!=""))
  {
   
   if(document.joinform.Home_country_code.value=="")
    {
     alert("Home Country Code must be specified.")
     return false;
     }
   
   if(document.joinform.home_number.value=="")
    {
     alert("Home Phone# must be specified.")
     return false;
     }
     
    if(!ValidateNo(document.joinform.home_areacode.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Area Code"); 
        document.joinform.home_areacode.focus(); 
        return false; 
    } 
if(!ValidateNo(document.joinform.home_number.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Phone#"); 
        document.joinform.home_number.focus(); 
        return false; 
    } 

}

if(document.joinform.firstNm.value=="")
  {
  alert("First name must be specified.")
  return false;
  }
if(document.joinform.lastNm.value=="")
  {
  alert("Last name must be specified.")
  return false;
  }

if(document.joinform.address.value=="")
  {
  alert("Address must be specified.")
  return false;
  }
 

 return true;
 }
 




function radiocheck(obj)
{
for(var i = 0; i < obj.length; i++)
   {
	if(obj[i].checked) 
	 return false; 
   }
return true;
}

 
 function ValidateNo(NumStr, String) 
{ 
    for(var Idx=0; Idx<NumStr.length; Idx++) 
    { 
        var Char = NumStr.charAt(Idx); 
        var Match = false; 

        for(var Idx1=0; Idx1<String.length; Idx1++) 
        { 
            if(Char == String.charAt (Idx1)) 
                Match = true; 
        } 

        if (!Match) 
            return false; 
    } 
    return true; 
} 
 
 
 
function donateval()
  {

if((document.donatefrm.home_countrycode.value!="")||(document.donatefrm.home_areacode.value!="")||(document.donatefrm.home_number.value!=""))
  {
   
   if(document.donatefrm.home_countrycode.value=="")
    {
     alert("Home Country Code must be specified.")
     return false;
     }
   
   if(document.donatefrm.home_number.value=="")
    {
     alert("Home Phone# must be specified.")
     return false;
     }
     
    if(!ValidateNo(document.donatefrm.home_areacode.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Area Code"); 
        document.donatefrm.home_areacode.focus(); 
        return false; 
    } 
if(!ValidateNo(document.donatefrm.home_number.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Phone#"); 
        document.donatefrm.home_number.focus(); 
        return false; 
    } 

}

if(!ValidateNo(document.donatefrm.recipientphone.value,"1234567890")) 
    { 
        alert("Please enter numeric only for Recipient Phone#"); 
        document.donatefrm.recipientphone.focus(); 
        return false; 
    } 




if (document.donatefrm.firstNm.value=="")
    {
	alert("First name must be specified 123.")
	return false;
	}
	if (document.donatefrm.lastNm.value=="")
    {
	alert("Last name must be specified.")
	return false;
	}
	
	if (document.donatefrm.address.value=="")
    {
	alert("Address must be specified.")
	return false;
	}
	
		
	if (document.donatefrm.Email.value=="")
    {
	alert("Email must be specified.")
	return false;
	}
	

  /* if((document.donatefrm.Frequency[0].checked == false) && (document.donatefrm.Frequency[1].checked == false))
      {
	     alert("Gift Frequency must be specified.")
	     return false;
        }
	  else
	  {
        j=document.donatefrm.Frequency.length; //alert(j)
	    for (i=0; i<j; i++){
		if(document.donatefrm.Frequency[i].checked)
		 {
			var selected_val = document.donatefrm.Frequency[i].value
			 if(selected_val == "Single")
			  {
			    
			    if (radiocheck(document.donatefrm.designation))
	               {  
	               alert("Please specify the designation of your donation.");
	               return false;
	               }
			    
			    
			    if(document.donatefrm.single_amount.value=="")
				 {
				  alert("Gift Amount must be specified.")
				  document.donatefrm.single_amount.focus(); 
				  return false;
				 }
				 if(!ValidateNo(document.donatefrm.single_amount.value,"1234567890., ")) 
                  { 
                  alert("Please enter a valid amount."); 
                  document.donatefrm.single_amount.focus(); 
                  return false; 
                  } 
				 
				
			  }
			  
			  if(selected_val == "Multiple")
			  {
			    if(document.donatefrm.multiple_amount.value=="")
				 {
				  alert("Gift Amount must be specified.")
				  document.donatefrm.multiple_amount.focus(); 
				  return false;
				 }
				 
				if(document.donatefrm.numpayment.value=="")
				 {
				  alert("Number of Years must be specified.")
				  return false;
				 } 
				 
				if(!ValidateNo(document.donatefrm.multiple_amount.value,"1234567890., ")) 
                  { 
                  alert("Please enter a valid amount."); 
                  document.donatefrm.multiple_amount.focus(); 
                  return false; 
                  }  
				 
			  }
			  
		  }
		}
	  }
 
  */
	
	if (document.donatefrm.single_amount.value=="")
    {
	alert("Gift amount must be specified.")
	return false;
	}
	
	
	if (document.donatefrm.cardholder.value=="")
    {
	alert("Name of the card holder must be specified.")
	return false;
	}
	
	if (document.donatefrm.cardnumber.value=="")
    {
	alert("Credit Card Number must be specified.")
	return false;
	}
	
	
	if (document.donatefrm.expdt.value=="")
    {
	alert("Expiration Date must be specified.")
	return false;
	}
	
	
	if (document.donatefrm.cvt.value=="")
    {
	alert("Card Security Code must be specified.")
	return false;
	}
	
	alert("Thank you for supporting the important work of the American Urological Association Foundation. A confirmation letter has been delivered to your email account")
	return true;
 }
 
 
 
 
 
 
 function eventreq()
 {
  
  if(document.datafrm.eventname.value=="")
   {
	alert("Name of the event must be specified.")
	return false;
   }
   if(document.datafrm.eventstart_dt.value=="")
     {
	  alert("Start date must be specified.")
	   return false;
	 }
	 if(document.datafrm.eventend_dt.value=="")
     {
	  alert("End date must be specified.")
	   return false;
	 }
	 
	 if(document.datafrm.eventcity.value=="")
     {
	  alert("City must be specified.")
	   return false;
	 }
	 
	  if(document.datafrm.eventsponsororg.value=="")
     {
	  alert("Sponsoring Organization must be specified.")
	   return false;
	 }
	 
	 if(document.datafrm.eventcontact.value=="")
     {
	  alert("Contact name must be specified.")
	   return false;
	 }
	  if(document.datafrm.eventemail.value=="")
     {
	  alert("Contact e-mail must be specified.")
	   return false;
	 }
	
	if(document.datafrm.valinst.value=='1')
	  {
        if(document.datafrm.eventinst.value=="")		  
	     {
		  alert("Accrediting institution must be specified.")
		  return false;
	      }
 
	  }
 
    return true
 }
 
 function valeureka()
  {
	if(document.eureka.subfirst.value == "")
	 {
	  alert("First name must be specified.")
	   return false;
	 }
	if(document.eureka.sublast.value=="")
	  {
		alert("Last name must be specified.")
		return false;
	  }
	if(document.eureka.subemail.value=="")
	 {
	   alert("E-mail address must be specified.")
	   return false;
	 }
	return true;
  }
  
  function insertvalue()
  {
	(document.datafrm.valinst.value=1) 
	 
  }
  
  function deletevalue()
  {
	(document.datafrm.valinst.value='')  
  }
 
 
 
 
 
 
 
 
-->