function generic_form_clear(myForm)
{
	var i, j;
	var fieldList = myForm.elements;
	var spanList = myForm.getElementsByTagName("span");
	var z = "_bdyemphasis";
	
	if (confirm("Are you sure you want to clear the form? Click OK to clear it."))
	{
      for (i = 0; i < fieldList.length; i++)
      {
    	  if ((fieldList[i].type == "text") || (fieldList[i].type == "password"))
    	  {
    		  fieldList[i].value = "";
    	  }
    	  else if (fieldList[i].type == "select-one")
    	  {
    		  fieldList[i].selectedIndex = 0;
    	  }
      }
      
      for(j = 0; j < spanList.length; j++)
      {
    		  if (spanList[j].className == z)
    		  {
    			  spanList[j].lastChild.nodeValue = "*";  
    		  }
      }
	}
	return true;
}
