function give_date()
	{
	var t_today = new Date();
	var d_today = t_today.getDate();
	var m_today = t_today.getMonth() + 1;
	var y_today = t_today.getFullYear();
	var full_date = m_today + "/" + d_today + "/" + y_today;
	document.app.a186.value = full_date;
	}


function val_appform()
	{
	err = 0;
	msg = "";
	reExp = new RegExp("[\\w\_-]+@[\\w\_-]+\\.[\\w\_-]+");
	if (document.app.a1.value == "" || document.app.a2.value == "" || document.app.a3.value == "")
		{
		err = 1;
		msg = msg + "Please select the Date Available for Work\n";
		}
	if (document.app.a4.value == "" || document.app.a6.value == "")
		{
		err = 1;
		msg = msg + "Please enter your First and Last name\n";
		}
	if (document.app.a7.value == "" || document.app.a8.value == "" || document.app.a9.value == "" || document.app.a10.value == "")
		{
		err = 1;
		msg = msg + "Please enter your full address including City, State and Zip\n";
		}
	if (!(reExp.test(document.app.a11.value)))
		{
		err = 1;
		msg = msg + "Please enter your email address in the correct format\n";
		}
	if (document.app.a12.value == "")
		{
		err = 1;
		msg = msg + "Please enter your phone number\n";
		}
	r1 = get_radio_value(document.app.a16);
	if (r1 == "")
		{
		err = 1;
		msg = msg + "Can you provide proof of eligibility to work in the United States?\n";
		}
	r2 = get_radio_value(document.app.a21);
	if (r2 == "")
		{
		err = 1;
		msg = msg + "Please select the Type of degree you hold\n";
		}
	if (r2 == "Other" && document.app.a22.value == "")
		{
		err = 1;
		msg = msg + "Please enter the name of the degree you hold\n";
		}
	r3 = get_radio_value(document.app.a23);
	if (r3 == "")
		{
		err = 1;
		msg = msg + "Please select your Shift Preference\n";
		}


	if (document.app.a25.value == "" || document.app.a26.value == "" || document.app.a27.value == "" || document.app.a28.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Name and Location of your school along with the Graduation Year and Type of Degree\n";
		}


	if (document.app.a41.value == "" || document.app.a42.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Professional License/Technical Certificate Number and select a state\n";
		}
	if (document.app.a49.value == "")
		{
		err = 1;
		msg = msg + "Please specify the License which is you original state of licensure\n";
		}
	r4 = get_radio_value(document.app.a50);
	if (r4 == "")
		{
		err = 1;
		msg = msg + "Please specify if ever your License or Certification has been under investigation\n";
		}
	if (r4 == "Yes" && document.app.a51.value == "")
		{
		err = 1;
		msg = msg + "Please provide details as to why your License or Certification was under investigation\n";
		}
	r5 = get_radio_value(document.app.a52);
	if (r5 == "")
		{
		err = 1;
		msg = msg + "Please specify if ever your License or Certification has been revoked or under suspension\n";
		}
	if (r5 == "Yes" && document.app.a53.value == "")
		{
		err = 1;
		msg = msg + "Please provide details as to why your License or Certification was revoked or suspended\n";
		}


	r6 = get_radio_value(document.app.a92);
	if (r6 == "")
		{
		err = 1;
		msg = msg + "Have you ever been convicted of a felony that would prohibit your employment at a health care facility?\n";
		}
	r7 = get_radio_value(document.app.a93);
	if (r7 == "")
		{
		err = 1;
		msg = msg + "Have you ever been convicted of a felony in the past five years?\n";
		}
	r8 = get_radio_value(document.app.a94);
	if (r8 == "")
		{
		err = 1;
		msg = msg + "Are you currently employed?\n";
		}
	r9 = get_radio_value(document.app.a95);
	if (r9 == "")
		{
		err = 1;
		msg = msg + "Do you have any physical or mental conditions?\n";
		}
	if (r9 == "Yes" && document.app.a96.value == "")
		{
		err = 1;
		msg = msg + "Please specify the physical or mental conditions that would inhibit or restrict your job\n";
		}
	r10 = get_radio_value(document.app.a97);
	if (r10 == "")
		{
		err = 1;
		msg = msg + "Do you have one year of acute care experience in the past two (2) years?\n";
		}

	if (document.app.a102.value == "")
		{
		err = 1;
		msg = msg + "Please enter your Current/Last Employer\n";
		}
	if (document.app.a105.value == "")
		{
		err = 1;
		msg = msg + "Please enter your Current/Last Employer City \n";
		}
	if (document.app.a106.value == "")
		{
		err = 1;
		msg = msg + "Please select your Current/Last Employer State\n";
		}
	if (document.app.a110.value == "")
		{
		err = 1;
		msg = msg + "Please enter your Current/Last Job Title\n";
		}
	if (document.app.a112.value == "" || document.app.a113.value == "" || document.app.a114.value == "")
		{
		err = 1;
		msg = msg + "Please specify the starting date of our Current / Last job\n";
		}

	if (r8 == "No" && (document.app.a115.value == "" || document.app.a116.value == "" || document.app.a117.value == ""))
		{
		err = 1;
		msg = msg + "Please specify the last date of our Current / Last job\n";
		}
	if (r8 == "No" && document.app.a120.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Reason for Leaving\n";
		}

	if (document.app.a182.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Applicant Name in the PRIMARY APPLICANT AGREEMENT\n";
		}
	if (document.app.a183.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Applicant Address in the PRIMARY APPLICANT AGREEMENT\n";
		}


	if (document.app.a184.value == "")
		{
		err = 1;
		msg = msg + "Please enter the Name of Applicant in the Electronic Signature Statement\n";
		}
	if (document.app.a185.value == "")
		{
		err = 1;
		msg = msg + "Signature of Applicant required in the Electronic Signature Statement\n";
		}
	if (document.app.a186.value == "")
		{
		err = 1;
		msg = msg + "Signature Date required in the Electronic Signature Statement\n";
		}

	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}


function get_radio_value(sv)
	{
	var rad_val = "";
	for (var i=0; i < sv.length; i++)
		{
		if (sv[i].checked)
			{
			rad_val = sv[i].value;
			}
		}
	return rad_val;
	}
