function updateToolTip(obj)
{
   var map = new Object();
	 var form_id = document.forms[1].id;
		if (form_id == "ltc_primary_applicant"){
			
			map[form_id + '_address'] = "<b>Mandatory:</b> Please type your Home Address";
			map[form_id + '_city'] = "<b>Mandatory:</b> Please type your City";
			map[form_id + '_state'] = "<b>Mandatory:</b> Please type select your State";
			map[form_id + '_zipcode'] = "<b>Mandatory:</b> Please type your zipcode";
			map[form_id + '_preferred_phone_type'] = "<b>Mandatory:</b> Please select your Preferred Phone Type";
			map[form_id + '_preferred_phone_number'] = "<b>Mandatory:</b> Please type your Preferred Phone Number";
			map[form_id + '_preferred_phone_ext'] = "<b>Mandatory:</b> Please type Extention for Preferred Phone Number";
			map[form_id + '_alternative_work_phone'] = "Optional: Please type your Alternative Work Phone Number";
			map[form_id + '_alternative_work_phone_ext'] = "Optional: Please type Extention for your Alternative Work Phone Number";
			map[form_id + '_alternative_mobile_phone'] = "Optional: Please type your Alternative Mobile Number";
			map[form_id + '_email'] = "<b>Mandatory:</b> Please type your Email Address";
			map[form_id + '_comments'] = "<b>Mandatory:</b> Please type comments/questions regarding your request.";
			
		} else if (form_id == "ltc_family_member"){
			map[form_id + '_relation_to_primary_applicant'] = "<b>Mandatory:</b> Please select your Relation to Primary Applicant.";
		}

		map[form_id + '_first_name'] = "<b>Mandatory:</b> Please type your First Name";
		map[form_id + '_middle_initial'] = "Optional: Please type your Middle Initial";
		map[form_id + '_last_name'] = "<b>Mandatory:</b> Please type your Last Name";
		map[form_id + '_gender'] = "<b>Mandatory:</b> Please select your Gender";
		map[form_id + '_dob_month'] = "<b>Mandatory:</b> Please select Month for your Date of Birth";
		map[form_id + '_dob_day'] = "<b>Mandatory:</b> Please select Day for your Date of Birth";
		map[form_id + '_dob_year'] = "<b>Mandatory:</b> Please select Year for your Date of Birth";
		map[form_id + '_marital_status'] = "<b>Mandatory:</b> Please select your Martial Status";
		map[form_id + '_height_ft'] = "<b>Mandatory:</b> Please type your Height (ft.)";
		map[form_id + '_height_in'] = "<b>Mandatory:</b> Please type your Height (in.)";
		map[form_id + '_weight'] = "<b>Mandatory:</b> Please type your Weight (lbs.)";
		

		map[form_id + '_smoke_or_use_tobacco'] = "Optional: Please check here if you smoke or use some other form of tobacco.";
		
		map['checkbox_applicant_take_medications'] = "Optional: Please check here if you take any Medications";
		map[form_id + '_applicant_take_medications'] = "Optional: Please list the medications you take";
		
		map['checkbox_denied_long_term_care_coverage'] = "Optional: Please check here if you have denied long term care coverage.";
		map[form_id + '_denied_long_term_care_coverage'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_advised_by_member_of_medical_profession'] = "Optional: Please check here if you have been advised by a member of the medical profession to have surgery (including an organ transplant) that has not been performed.";
		map[form_id + '_advised_by_member_of_medical_profession'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_confined_to_hospital_in_past_months'] = "Optional: Please check here if you have been confined to a hospital or nursing home, received services of a home health care agancy or adult day care in the past 12 months.";
		map[form_id + '_confined_to_hospital_in_past_months'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_receiving_ongoing_medical_treatment'] = "Optional: Please check here if you are receiving ongoing medical treatment (excluding regular pap smears, voluntary check-ups, etc.) ";
		map[form_id + '_receiving_ongoing_medical_treatment'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_needs_assistance_or_supervision'] = "Optional: Please check here if you need assistance or supervision by another individual for dressing, eating, personal hygiene (bathing or toilet), walking or transferring to and froom a bed or chair";
		map[form_id + '_needs_assistance_or_supervision'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_uses_cane_crutches_catheter'] = "Optional: Please check here if you use a cane, crutches, catheter, oxygen equipment, respirator, dialysis machine, walker, wheelchair, quad or tripod cane, motorized scooter or chair lift ";
		map[form_id + '_uses_cane_crutches_catheter'] = "Optional: Please provide relevant details if any.";
		
		map[form_id + '_covered_under_state_medicaid_program'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_previously_declined_for_ltc'] = "Optional: Please check here if you have been previosly declined for Long Term Care Insurance";
		map[form_id + '_previously_declined_for_ltc'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_hiv_aids'] = "Optional: Please check here if you have been diagnosed with HIV/AIDS";
		map[form_id + '_hiv_aids'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_heart_attack'] = "Optional: Please check here if you have been diagnosed with Heart attack";
		map[form_id + '_heart_attack'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_stroke'] = "Optional: Please check here if you have been diagnosed with Stroke";
		map[form_id + '_stroke'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_diabetes'] = "Optional: Please check here if you have been diagnosed with Diabetes";
		map[form_id + '_diabetes'] = "Optional: Please provide relevant details if any.";
		
		map['checkbox_high_blood_pressure'] = "Optional: Please check here if you have been diagnosed with High Blood Pressure";
		map[form_id + '_high_blood_pressure'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_depression'] = "Optional: Please check here if you have been diagnosed with Depression requiring hospitalization";
		map[form_id + '_depression'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_cancer'] = "Optional: Please check here if you have been diagnosed with Cancer";
		map[form_id + '_cancer'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_asthma'] = "Optional: Please check here if you have been diagnosed with Asthma";
		map[form_id + '_asthma'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_kidney_failure'] = "Optional: Please check here if you have been diagnosed with Kidney Failure";
		map[form_id + '_kidney_failure'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_alzheimers_disease'] = "Optional: Please check here if you have been diagnosed with Alzheimer's disease, Dementia or other Senility Disorder";
		map[form_id + '_alzheimers_disease'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_seizure_disorder'] = "Optional: Please check here if you have been diagnosed with Seizure Disorder";
		map[form_id + '_seizure_disorder'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_congestive_heart_failure'] = "Optional: Please check here if you have been diagnosed with Congestive Heart Failure";
		map[form_id + '_congestive_heart_failure'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_psychosis'] = "Optional: Please check here if you have been diagnosed with Psychosis or Severe Neurosis";
		map[form_id + '_psychosis'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_cardiomyopathy'] = "Optional: Please check here if you have been diagnosed with Cardiomyopathy";
		map[form_id + '_cardiomyopathy'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_cirrhosis_of_the_liver'] = "Optional: Please check here if you have been diagnosed with Cirrhosis of the Liver";
		map[form_id + '_cirrhosis_of_the_liver'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_cerebral_aneurysm'] = "Optional: Please check here if you have been diagnosed with Cerebral Aneurysm";
		map[form_id + '_cerebral_aneurysm'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_lung_disease'] = "Optional: Please check here if you have been diagnosed with Lung disease (Emphysema, Chronic Bronchitis etc.)";
		map[form_id + '_lung_disease'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_systemic_lupus'] = "Optional: Please check here if you have been diagnosed with Systemic Lupus Erythematosus";
		map[form_id + '_systemic_lupus'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_ulcerative_colitis'] = "Optional: Please check here if you have been diagnosed with Ulcerative Colitis or other Digestive Disorder";
		map[form_id + '_ulcerative_colitis'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_hepatitis'] = "Optional: Please check here if you have been diagnosed with Hepatitis";
		map[form_id + '_hepatitis'] = "Optional:</b> Please provide relevant details if any.";

		map['checkbox_transient_ischemic_attack'] = "Optional: Please check here if you have been diagnosed with Transient Ischemic Attack (TIA)";
		map[form_id + '_transient_ischemic_attack'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_eye_disorder'] = "Optional: Please check here if you have been diagnosed with Eye Disorder (Glaucoma, Cataracts, etc.)";
		map[form_id + '_eye_disorder'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_arthritis'] = "Optional: Please check here if you have been diagnosed with Arthritis or Joint Replacement";
		map[form_id + '_arthritis'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_alcoholism'] = "Optional: Please check here if you have been diagnosed with Alcoholism or Drug Abuse";
		map[form_id + '_alcoholism'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_skin_disorder'] = "Optional: Please check here if you have been diagnosed with Skin Disorder";
		map[form_id + '_skin_disorder'] = "Optional:</b> Please provide relevant details if any.";
		
		map['checkbox_other_major_illness'] = "Optional: Please check here if you have been diagnosed with Other major illness";
		map[form_id + '_other_major_illness'] = "Optional:</b> Please provide relevant details if any.";
		
	  map['add_person'] = "Optional: Press this button to Submit the information you provided, and to get a new form for another family memeber.";
		map['all_members_added'] = "Optional: Press this button to Submit the information you provided, and to proceed further.";
	 
   
   var mytooltip = document.getElementById('fieldToolTip');
   (map[obj])?mytooltip.innerHTML =map[obj]:mytooltip.innerHTML="No Help is available for this item.";
}

function sendFieldData(elm){
	;
}


function showdivDisplay(obj)
{
   var mydiv = document.getElementById(obj);
   mydiv.style.visibility="";
   mydiv.style.display="";
}
function hidedivDisplay(obj)
{
   var mydiv = document.getElementById(obj);
   mydiv.style.visibility='hidden';
   mydiv.style.display="none";
   
}

function manageExtVisibility(phone_type, divId){
	if (phone_type.value == "Work")
		showdivDisplay(divId);
	else
		hidedivDisplay(divId);
}

function detailBox(chkbox, detailBoxDiv){
	if (chkbox.checked == true)
		showdivDisplay(detailBoxDiv);
	else
		hidedivDisplay(detailBoxDiv);  
}


//<![CDATA[
militaryTitles = new Array ('Military E1 - E4','Military E5 - E7','Military Officer','Military Other');
jobTitles = new Array('Accounts Pay/Rec.','Actor','Administration/Management','Appraiser','Architect','Artist','Assembler','Auditor','Baker','Bank Teller','Banker','Bartender','Broker','Cashier','Casino Worker','CEO','Certified Public Accountant','Chemist','Child Care','City Worker','Claims Adjuster','Clergy','Clerical/Technical','College Professor','Comp. Tech.','Construction','Contractor','Counselor','Craftsman/Skilled Worker','CSR','Custodian','Dancer','Decorator','Delivery Driver','Dentist','Director','Disabled','Drivers','Electrician','Engineer-Aeronautical','Engineer-Aerospace','Engineer-Chemical','Engineer-Civil','Engineer-Electrical','Engineer-Gas','Engineer-Geophysical','Engineer-Mechanical','Engineer-Nuclear','Engineer-Other','Engineer-Petroleum','Engineer-Structural','Entertainer','Farmer','Fire Fighter','Flight Attend.','Food Service','Health Care','Installer','Instructor','Journalist','Journeyman','Lab Tech.','Laborer/Unskilled Worker','Lawyer','Machine Operator','Machinist','Maintenance','Manufacturer','Marketing','Mechanic','Model','Nanny','Nurse/CNA','Other','Painter','Para-Legal','Paramedic','Personal Trainer','Photographer','Physician','Pilot','Plumber','Police Officer','Postal Worker','Preacher','Pro Athlete','Production','Prof\'l w/College Degree','Prof\'l w/Specialty Degree','Programmer','Real Estate','Receptionist','Reservation Agent','Restaurant Manager','Retail','Roofer','Sales','Scientist','Secretary','Security','Social Worker','Stocker','Store Owner','Stylist','Supervisor','Teacher','Teacher - with Credentials','Technical/Supervisory','Travel Agent','Truck Driver','Vet.','Waitress','Welder');

//]]>


function handleOccupation(value, title_id)
{
    // Clear out title dropdown
    var length = document.getElementById(title_id).length;
    if (length > 0)
    {
        for (var i=length-1; i>=0; i--)
        {
            document.getElementById(title_id).removeChild(document.getElementById(title_id).options[i]);
        }
    }
    
    // Repopulate title dropdown based on occupation chosen
    if (value == 'Military' || value == 'Employed')
    {
				showdivDisplay('div_title');
        if (value == 'Military')
            populateTitle(militaryTitles);
        else
            populateTitle(jobTitles, title_id);
    }
    else
    {
			hidedivDisplay('div_title');
		}
    
    // Enable/disable LiveWith radio buttonlist based on occupation chosen
    if (value == 'Student')
				showdivDisplay('div_student');
    else
				hidedivDisplay('div_student');
   
}

function populateTitle(titles, title_id)
{
    var elementTitle = document.getElementById(title_id);
		elementTitle.className = "required";
    for (var i=0; i<titles.length; i++)
    {
        if (titles[i] != "")
        {
	        var newOption = document.createElement('option');
	        newOption.value = titles[i];
	        newOption.innerText = titles[i]; // IE specific
	        newOption.text = titles[i]; // Mozilla specific
	        elementTitle.appendChild(newOption);
	    }
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////////////////////////////////////
