function validate(arNames)
{
    Mssge1 = 'Sorry, '
    Mssge2 = ' is a required field.'
    var VldTxt = 0; 
    var ElNum = document.myForm.elements.length;
    for (var i=0;i<document.myForm.elements.length;i++)
	{ // for all of the elements on the form..
        if ((document.myForm.elements[i].name.indexOf('*') > -1)) 
		{ // if the element has the letters '*' in it's name..
              
			   if (!document.myForm.elements[i].value) 
			   {
                  alert(Mssge1 + arNames[VldTxt] + Mssge2);
                   return false;
               }  
			   			   
            // Increment the number of required fields based on the Rqd prefix
            
			VldTxt++;
        } 
    } 
	return true;
} 
