function PhoneField() {
	var phone_field = document.getElementById('fl_phone');
	
	if (phone_field.checked == true) {
		showIt('fl_phone_field');
	} else {
		hideIt('fl_phone_field');
	}
}
function showIt(div){
	if (document.getElementById('button_add')) {
			hideAll();
	}
    if (document.getElementById) {  // for Netscape
      myDiv = document.getElementById(div);
         myDiv.style.display = 'block';
    }

    if (document.all) {     // for IE
      eval("myDiv = "+div+";");
         myDiv.style.display = 'block';
    }
	// Had to remove this Eric.  JS error in FF.
	//document.getElementById('button_'+div).className="active";
}


function hideIt(div){
     if (document.getElementById) {  // for Netscape
       myDiv = document.getElementById(div);
          myDiv.style.display = 'none';
     }

     if (document.all) {     // for IE
       eval("myDiv = "+div+";");
          myDiv.style.display = 'none';
     }
}
function getElement(elem) { 
    // test which method is supported by the browser 
    if(document.getElementById) 
    return document.getElementById(elem); 
    else if(document.all) 
    return document.all[elem]; 
    return null; 
    } 

function resetForm(formName) { 
    // does the form exist? 
    if((elem = getElement(formName))!= null) { 
        // it does exist, 
        // do whatever you want with the element here (in this case, the form) 
        elem.reset(); 
        } 
    } 

function submitForm(formName,textName) { 
    // does the form exist? 
    if((elem = getElement(formName))!= null) { 
        // it does exist, 
        // do whatever you want with the element here (in this case, the form) 
        var stay=confirm("Are you sure you wish to delete " + textName + ".")
        if (!stay) return
        else elem.submit(); 
        } 
    } 
