function Email(str)
{
			var supported = 0;
			if (window.RegExp)
			{
			var tStr = "a";
			var tReg = new RegExp(tStr);
			if (tReg.test(tStr)) supported = 1;
			}
			if (!supported)
			return (str.indexOf(".") <= 5) || (str.indexOf("@") < 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (r1.test(str) || !r2.test(str));
}
function Url(url)
{ 
    var RegExp = /^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/; 
    if(RegExp.test(url)){ 
        return true; 
    }else{ 
        return false; 
    } 
} 

function IsNumeric(strString)
   //  check for valid numeric strings	
   {

   var strValidChars = "+- 0123456789";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }
function add_new()
{
	if(document.frm_action.job_title.value==0)
	{ 
	alert('Please enter your Job Title.');
	document.frm_action.job_title.focus();
	document.frm_action.job_title.select();
	return false;
	}
	if(document.frm_action.discipline.value==0)
	{ 
	alert('Please enter your Discipline.');
	document.frm_action.discipline.focus();
	document.frm_action.discipline.select();
	return false;
	}
/*	if(document.frm_action.job_category.value==0)
	{ 
	alert('Please Select Your Job_Category.');
	document.frm_action.job_category.focus();
	document.frm_action.job_category.select();
	return false;
	}
	if(document.frm_action.select_industries.value==0)
	{ 
	alert('Please Select Your Industries.');
	document.frm_action.select_industries.focus();
	document.frm_action.select_industries.select();
	return false;
	}*/
	if(document.frm_action.location.value==0)
	{ 
	alert('Please Enter Your Location.');
	document.frm_action.location.focus();
	document.frm_action.location.select();
	return false;
	}
	if(document.frm_action.shift_time.value==0)
	{ 
	alert('Please Enter Your Shift.');
	document.frm_action.shift_time.focus();
	document.frm_action.shift_time.select();
	return false;
	}
	if(document.frm_action.payrate.value==0)
	{ 
	alert('Please Enter Your Pay Rate.');
	document.frm_action.payrate.focus();
	document.frm_action.payrate.select();
	return false;
	}
	if(document.frm_action.job_type.value==0)
	{ 
	alert('Please Enter Your Job Type.');
	document.frm_action.job_type.focus();
	document.frm_action.job_type.select();
	return false;
	}
	if(document.frm_action.employee_type.value==0)
	{ 
	alert('Please Enter Your Employee_Type.');
	document.frm_action.employee_type.focus();
	document.frm_action.employee_type.select();
	return false;
	}
	if(document.frm_action.degree_required.value==0)
	{ 
	alert('Please Enter Your Degree.');
	document.frm_action.degree_required.focus();
	document.frm_action.degree_required.select();
	return false;
	}
	if(document.frm_action.job_description.value==0)
	{ 
	alert('Please Enter Your Job_Description.');
	document.frm_action.job_description.focus();
	document.frm_action.job_description.select();
	return false;
	}
	if(document.frm_action.job_requirement.value==0)
	{ 
	alert('Please Enter Your Job_Requirement.');
	document.frm_action.job_requirement.focus();
	document.frm_action.job_requirement.select();
	return false;
	}
	/*if(document.frm_action.mini_exp_required.value==0)
	{ 
	alert('Please Select Your mini_exp_required.');
	document.frm_action.mini_exp_required.focus();
	document.frm_action.mini_exp_required.select();
	return false;
	}
	
    if(document.frm_action.maxi_exp_required.value==0)
	{ 
	alert('Please Select Your maxi_exp_required.');
	document.frm_action.maxi_exp_required.focus();
	document.frm_action.maxi_exp_required.select();
	return false;
	}*/
	
	if(document.frm_action.travel_required.value==0)
	{ 
	alert('Please Enter Your travel_required.');
	document.frm_action.travel_required.focus();
	document.frm_action.travel_required.select();
	return false;
	}
	if(document.frm_action.manage_others.value==0)
	{ 
	alert('Please Enter  manage_others.');
	document.frm_action.manage_others.focus();
	document.frm_action.manage_others.select();
	return false;
	}
	if(document.frm_action.benefits.value==0)
	{ 
	alert('Please Enter Your Benefits.');
	document.frm_action.benefits.focus();
	document.frm_action.benefits.select();
	return false;
	}
	if(document.frm_action.base_pay_between.value==0)
	{ 
	alert('Please Enter base_pay_between.');
	document.frm_action.base_pay_between.focus();
	document.frm_action.base_pay_between.select();
	return false;
	}
	if(document.frm_action.average_bonus.value==0)
	{ 
	alert('Please Enter Your Average_bonus.');
	document.frm_action.average_bonus.focus();
	document.frm_action.average_bonus.select();
	return false;
	}
	if(document.frm_action.average_commison.value==0)
	{ 
	alert('Please Enter Your average_commison.');
	document.frm_action.average_commison.focus();
	document.frm_action.average_commison.select();
	return false;
	}
	if(document.frm_action.other_compensation.value==0)
	{ 
	alert('Please Enter Your other_compensation.');
	document.frm_action.other_compensation.focus();
	document.frm_action.other_compensation.select();
	return false;
	}
	if(document.frm_action.company_name.value==0)
	{ 
	alert('Please Enter Your company_name.');
	document.frm_action.company_name.focus();
	document.frm_action.company_name.select();
	return false;
	}
	if(document.frm_action.contact_person.value==0)
	{ 
	alert('Please Enter Your contact_person.');
	document.frm_action.contact_person.focus();
	document.frm_action.contact_person.select();
	return false;
	}
	if(document.frm_action.designation.value==0)
	{ 
	alert('Please Enter Your Designation.');
	document.frm_action.designation.focus();
	document.frm_action.designation.select();
	return false;
	}
    if(document.frm_action.contact_phone.value==0) 
    {
      alert("Please enter your phone number.");
	  document.frm_action.contact_phone.focus();
	  return false;
    } 
    else if(IsNumeric(document.frm_action.contact_phone.value)==false) 
    {
      alert("Please enter numerals only.");
	  document.frm_action.contact_phone.focus();
	  return false;
    }
	if(document.frm_action.fax.value==0)
	{ 
	alert('Please Enter Your Fax.');
	document.frm_action.fax.focus();
	document.frm_action.fax.select();
	return false;
	}
	if(document.frm_action.division.value==0)
	{ 
	alert('Please Enter Your Division.');
	document.frm_action.division.focus();
	document.frm_action.division.select();
	return false;
	}
	if(document.frm_action.address1.value==0)
	{ 
	alert('Please Enter Your Address1.');
	document.frm_action.address1.focus();
	document.frm_action.address1.select();
	return false;
	}
	if(document.frm_action.address2.value==0)
	{ 
	alert('Please Enter Your Address2.');
	document.frm_action.address2.focus();
	document.frm_action.address2.select();
	return false;
	}
	if(Email(document.frm_action.email.value))
	{ 
	alert('Please Enter Your Valid Email_Id.');
	document.frm_action.email.focus();
	document.frm_action.email.select();
	return false;
	}
	
	if(document.frm_action.currency.value==0)
	{ 
	alert('Please Enter Your Currency.');
	document.frm_action.currency.focus();
	document.frm_action.currency.select();
	return false;
	}
	if(document.frm_action.job_status.value==0)
	{ 
	alert('Please Select Your Job_Status.');
	document.frm_action.job_status.focus();
	document.frm_action.job_status.select();
	return false;
	}
	document.frm_action.submit();
}
	

function employ_reg()
{
	if(document.frm_action.user_id.value==0)
	{ 
	alert('Please enter valid email id!.');
	document.frm_action.user_id.focus();
	document.frm_action.user_id.select();
	return false;
	}
	
	
	if(document.frm_action.password.value==0)
	{ 
	alert('Please enter your new password.');
	document.frm_action.password.focus();
	document.frm_action.password.select();
	return false;
	}
	
	if (document.frm_action.confirm_password.value==0)
	{
	alert("Please enter confirm Password");
	document.frm_action.confirm_password.focus();
	document.frm_action.confirm_password.select();
	return false;
	}
	if ((document.frm_action.password.value) != (document.frm_action.confirm_password.value))
	{
	alert("Password mismatch retype your password");
	document.frm_action.confirm_password.focus();
	document.frm_action.confirm_password.select();
	return false;
	}
	if(document.frm_action.password.value.length < 6)
	{ 
	alert('Password should be 6 characters Long.!');
	document.frm_action.password.focus();
	document.frm_action.password.select();
	return false;
	}
	if (document.frm_action.company_name.value==0)
	{
	alert("Please enter your company Name");
	document.frm_action.company_name.focus();
	document.frm_action.company_name.select();
	return false;
	}	
	if (document.frm_action.first_name.value==0)
	{
	alert("Please enter your First Name");
	document.frm_action.first_name.focus();
	document.frm_action.first_name.select();
	return false;
	}
 	if (document.frm_action.last_name.value==0)
	{
	alert("Please enter your Last Name");
	document.frm_action.last_name.focus();
	document.frm_action.last_name.select();
	return false;
	}
		if (document.frm_action.designation.value==0)
	{
	alert("Please enter your Designation");
	document.frm_action.designation.focus();
	document.frm_action.designation.select();
	return false;
	}
 	if (document.frm_action.phone.value==0)
	{
	alert("Please enter your Phone No");
	document.frm_action.phone.focus();
	document.frm_action.phone.select();
	return false;
	}
    if (document.frm_action.country.value=="")
	{
	 alert("Please Select your country");
	 document.frm_action.country.focus();
	 document.frm_action.country.select();
	return false;
	}	 
	
	
	document.frm_action.submit();
}
 

 function candit_register()
{	 
 
 	if (Email(document.frm_candit_register.user_id.value))
	{
	alert("Please enter valid email id!");
	document.frm_candit_register.user_id.focus();
	document.frm_candit_register.user_id.select();
	return false;
	} 
	
	if(document.frm_candit_register.password.value==0)
	{ 
	alert('Please enter your new password.');
	document.frm_candit_register.password.focus();
	document.frm_candit_register.password.select();
	return false;
	}
	
	if (document.frm_candit_register.confirm_password.value==0)
	{
	alert("Please enter confirm Password");
	document.frm_candit_register.confirm_password.focus();
	document.frm_candit_register.confirm_password.select();
	return false;
	}
	if ((document.frm_candit_register.password.value) != (document.frm_candit_register.confirm_password.value))
	{
	alert("Password mismatch retype your password");
	document.frm_candit_register.confirm_password.focus();
	document.frm_candit_register.confirm_password.select();
	return false;
	}
	if(document.frm_candit_register.password.value.length < 6)
	{ 
	alert('Password should be 6 characters Long.!');
	document.frm_candit_register.password.focus();
	document.frm_candit_register.password.select();
	return false;
	}	
	if (document.frm_candit_register.first_name.value==0)
	{
	alert("Please enter your First Name");
	document.frm_candit_register.first_name.focus();
	document.frm_candit_register.first_name.select();
	return false;
	}
 	if (document.frm_candit_register.last_name.value==0)
	{
	alert("Please enter your Last Name");
	document.frm_candit_register.last_name.focus();
	document.frm_candit_register.last_name.select();
	return false;
	}
 	if (document.frm_candit_register.phone.value==0)
	{
	alert("Please enter your Phone No");
	document.frm_candit_register.phone.focus();
	document.frm_candit_register.phone.select();
	return false;
	}
    if (document.frm_candit_register.country.value=="")
	{
	 alert("Please Select your country");
	 document.frm_candit_register.country.focus();
	 document.frm_candit_register.country.select();
	return false;
	}	 
 
	document.frm_candit_register.submit();
}
  //frm_workexp
  function frm_workexp()
{	 
	if (document.frm_workexp.facility_worksite_name.value==0)
	{
	alert("Please enter your License Registered State");
	document.frm_workexp.facility_worksite_name.focus();
	document.frm_workexp.facility_worksite_name.select();
	return false;
	}
	if (document.frm_workexp.start_date.value==0)
	{
	alert("Please enter your License Number");
	document.frm_workexp.start_date.focus();
	document.frm_workexp.start_date.select();
	return false;
	} 	 
	if(IsNumeric(document.frm_workexp.start_date.value)==false)
	{
	alert("Please enter numeral's only");
	document.frm_workexp.start_date.focus();
	document.frm_workexp.start_date.select();
	return false;
	} 	 
	if (document.frm_workexp.country.value==0)
	{
	alert("Please enter your License Expiration Date");
	document.frm_workexp.country.focus();
	document.frm_workexp.country.select();
	return false;
	} 	
	document.frm_workexp.submit();
}  
function candit_license()
{	 
	if (document.frm_license.state.value==0)
	{
	alert("Please enter your License Registered State");
	document.frm_license.state.focus();
	document.frm_license.state.select();
	return false;
	}
	if (document.frm_license.license_number.value==0)
	{
	alert("Please enter your License Number");
	document.frm_license.license_number.focus();
	document.frm_license.license_number.select();
	return false;
	} 	 
	if(IsNumeric(document.frm_license.license_number.value)==false)
	{
	alert("Please enter numeral's only");
	document.frm_license.license_number.focus();
	document.frm_license.license_number.select();
	return false;
	} 	 
	if (document.frm_license.expiration_date.value==0)
	{
	alert("Please enter your License Expiration Date");
	document.frm_license.expiration_date.focus();
	document.frm_license.expiration_date.select();
	return false;
	} 	
	document.frm_license.submit();
}  
function candit_certifications()
{	 
	if (document.frm_certifications.certification_type.value==0)
	{
	alert("Please enter your Certification Type");
	document.frm_certifications.certification_type.focus();
	document.frm_certifications.certification_type.select();
	return false;
	}
	if (document.frm_certifications.date_issued.value==0)
	{
	alert("Please enter your Date of Issued");
	document.frm_certifications.date_issued.focus();
	document.frm_certifications.date_issued.select();
	return false;
	} 	 
	if (document.frm_certifications.exp_date.value==0)
	{
	alert("Please enter your Certifications Expiration Date");
	document.frm_certifications.exp_date.focus();
	document.frm_certifications.exp_date.select();
	return false;
	} 	
	document.frm_certifications.submit();
}  
function candit_educations()
{	 
	if (document.frm_education.school.value==0)
	{
	alert("Please enter your School Name");
	document.frm_education.school.focus();
	document.frm_education.school.select();
	return false;
	}
	if (document.frm_education.degree.value==0)
	{
	alert("Please enter your Name of Degree");
	document.frm_education.degree.focus();
	document.frm_education.degree.select();
	return false;
	} 	 
	if (document.frm_education.graduation_date.value==0)
	{
	alert("Please enter your Graduation Date");
	document.frm_education.graduation_date.focus();
	document.frm_education.graduation_date.select();
	return false;
	} 
	if (document.frm_education.city.value==0)
	{
	alert("Please enter your Name of City");
	document.frm_education.city.focus();
	document.frm_education.city.select();
	return false;
	} 
	if (document.frm_education.state.value==0)
	{
	alert("Please enter your Name of State");
	document.frm_education.state.focus();
	document.frm_education.state.select();
	return false;
	} 
	if (document.frm_education.country.value==0)
	{
	alert("Please enter your Name of Country");
	document.frm_education.country.focus();
	document.frm_education.country.select();
	return false;
	} 				
	document.frm_education.submit();
}  
function candit_IdentifyingInformation()
{	
    if (document.frm_Identification.first_name.value==0)
	{
	alert("Please enter your first Name");
	document.frm_Identification.first_name.focus();
	document.frm_Identification.first_name.select();
	return false;
	} 	  
	if (document.frm_Identification.last_name.value==0)
	{
	alert("Please enter your last Name");
	document.frm_Identification.last_name.focus();
	document.frm_Identification.last_name.select();
	return false;
	}
	if (document.frm_Identification.middle_name.value==0)
	{
	alert("Please enter your middlename");
	document.frm_Identification.middle_name.focus();
	document.frm_Identification.middle_name.select();
	return false;
	}
	
	if (document.frm_Identification.discipline.value==0)
	{
	alert("Please enter your discipline");
	document.frm_Identification.discipline.focus();
	document.frm_Identification.discipline.select();
	return false;
	} 
	if (document.frm_Identification.social_security_number.value==0)
	{
	alert("Please enter your social security number");
	document.frm_Identification.social_security_number.focus();
	document.frm_Identification.social_security_number.select();
	return false;
	}
	if (Email(document.frm_Identification.email.value))
	{
	alert("Please enter valid email id!");
	document.frm_Identification.email.focus();
	document.frm_Identification.email.select();
	return false;
	}
	
	if (document.frm_Identification.date_available.value==0)
	{
	alert("Please enter available date:");
	document.frm_Identification.date_available.focus();
	document.frm_Identification.date_available.select();
	return false;
	}
	if (document.frm_Identification.day_phone.value==0)
	{
	alert("Please enter your day phone no");
	document.frm_Identification.day_phone.focus();
	document.frm_Identification.day_phone.select();
	return false;
	}
	if (IsNumeric(document.frm_Identification.day_phone.value)==false)
	{
	alert("Please enter only numeral's");
	document.frm_Identification.day_phone.focus();
	document.frm_Identification.day_phone.select();
	return false;
	}
	if (document.frm_Identification.evening_phone.value==0)
	{
	alert("Please enter your evening phone no:");
	document.frm_Identification.evening_phone.focus();
	document.frm_Identification.evening_phone.select();
	return false;
	}
	if (IsNumeric(document.frm_Identification.evening_phone.value)==false)
	{
	alert("Please enter only numeral's:");
	document.frm_Identification.evening_phone.focus();
	document.frm_Identification.evening_phone.select();
	return false;
	}
	if (document.frm_Identification.best_time_reach_your.value==0)
	{
	alert("Please enter time to reach you");
	document.frm_Identification.best_time_reach_your.focus();
	document.frm_Identification.best_time_reach_your.select();
	return false;
	} 				
	document.frm_Identification.submit();
}  
function candit_currentaddrs()
{	 
	if (document.frm_currentaddr.address1.value==0)
	{
	alert("Please enter your First Address");
	document.frm_currentaddr.address1.focus();
	document.frm_currentaddr.address1.select();
	return false;
	}
	if (document.frm_currentaddr.address2.value==0)
	{
	alert("Please enter your Second Address");
	document.frm_currentaddr.address2.focus();
	document.frm_currentaddr.address2.select();
	return false;
	} 	 
	if (document.frm_currentaddr.city.value==0)
	{
	alert("Please enter your Name of City");
	document.frm_currentaddr.city.focus();
	document.frm_currentaddr.city.select();
	return false;
	} 
	if (document.frm_currentaddr.state.value==0)
	{
	alert("Please enter your Name of State");
	document.frm_currentaddr.state.focus();
	document.frm_currentaddr.state.select();
	return false;
	} 
	if (document.frm_currentaddr.zipcode.value==0)
	{
	alert("Please enter your Zipcode Number");
	document.frm_currentaddr.zipcode.focus();
	document.frm_currentaddr.zipcode.select();
	return false;
	} 
	if (document.frm_currentaddr.country.value==0)
	{
	alert("Please enter your Name of country");
	document.frm_currentaddr.country.focus();
	document.frm_currentaddr.country.select();
	return false;
	} 
	if (document.frm_currentaddr.current_address_until.value==0)
	{
	alert("Please enter your Current Address From Date");
	document.frm_currentaddr.current_address_until.focus();
	document.frm_currentaddr.current_address_until.select();
	return false;
	} 				
	document.frm_currentaddr.submit();
}  
function candit_permanent_addrs()
{	 
	if (document.frm_permanent_address.address1.value==0)
	{
	alert("Please enter your First Address");
	document.frm_permanent_address.address1.focus();
	document.frm_permanent_address.address1.select();
	return false;
	}
	if (document.frm_permanent_address.address2.value==0)
	{
	alert("Please enter your Second Address");
	document.frm_permanent_address.address2.focus();
	document.frm_permanent_address.address2.select();
	return false;
	} 	 
	if (document.frm_permanent_address.city.value==0)
	{
	alert("Please enter your Name of City");
	document.frm_permanent_address.city.focus();
	document.frm_permanent_address.city.select();
	return false;
	} 
	if (document.frm_permanent_address.state.value==0)
	{
	alert("Please enter your Name of State");
	document.frm_permanent_address.state.focus();
	document.frm_permanent_address.state.select();
	return false;
	} 
	if (document.frm_permanent_address.zipcode.value==0)
	{
	alert("Please enter your zipcode Number");
	document.frm_permanent_address.zipcode.focus();
	document.frm_permanent_address.zipcode.select();
	return false;
	} 
	if (document.frm_permanent_address.country.value==0)
	{
	alert("Please enter your Country ");
	document.frm_permanent_address.country.focus();
	document.frm_permanent_address.country.select();
	return false;
	}
	if (document.frm_permanent_address.dayphone.value==0)
	{
	alert("Please enter your day phone no");
	document.frm_permanent_address.dayphone.focus();
	document.frm_permanent_address.dayphone.select();
	return false;
	}
	if (document.frm_permanent_address.evening_phone.value==0)
	{
	alert("Please enter your evening phone no");
	document.frm_permanent_address.evening_phone.focus();
	document.frm_permanent_address.evening_phone.select();
	return false;
	}
	document.frm_permanent_address.submit();
}  
function candit_speciality()
{	 
	if (document.frm_speciality.primary_specialty.value==0)
	{
	alert("Please enter Primary Specialty");
	document.frm_speciality.primary_specialty.focus();
	document.frm_speciality.primary_specialty.select();
	return false;
	}
	if (document.frm_speciality.primary_sub_specialty.value==0)
	{
	alert("Please enter Primary_sub Specialty");
	document.frm_speciality.primary_sub_specialty.focus();
	document.frm_speciality.primary_sub_specialty.select();
	return false;
	} 	 
	if (document.frm_speciality.secondary_specialty.value==0)
	{
	alert("Please enter Secondary Specialty");
	document.frm_speciality.secondary_specialty.focus();
	document.frm_speciality.secondary_specialty.select();
	return false;
	} 
	if (document.frm_speciality.secondary_sub_specialty.value==0)
	{
	alert("Please enter Secondary Sub-Specialty");
	document.frm_speciality.secondary_sub_specialty.focus();
	document.frm_speciality.secondary_sub_specialty.select();
	return false;
	} 
	if (document.frm_speciality.additional_specialty.value==0)
	{
	alert("Please enter Additional Specialty");
	document.frm_speciality.additional_specialty.focus();
	document.frm_speciality.additional_specialty.select();
	return false;
	} 
	if (document.frm_speciality.additional_sub_specialty.value==0)
	{
	alert("Please enter Additional Sub-Specialty");
	document.frm_speciality.additional_sub_specialty.focus();
	document.frm_speciality.additional_sub_specialty.select();
	return false;
	}
	
	document.frm_speciality.submit();
}  
function candit_emergencycontact()
{		
	
	if (document.frm_emergencycontact.name.value==0)
	{
	alert("Please Enter Name Of Your Relation");
	document.frm_emergencycontact.name.focus();
	document.frm_emergencycontact.name.select();
	return false;
	}
	if (document.frm_emergencycontact.relationship.value==0)
	{
	alert("Please enter the relation");
	document.frm_emergencycontact.relationship.focus();
	document.frm_emergencycontact.relationship.select();
	return false;
	}
	if (document.frm_emergencycontact.phone.value==0)
	{
	alert("Please Enter Phone Number of the relation");
	document.frm_emergencycontact.phone.focus();
	document.frm_emergencycontact.phone.select();
	return false;
	}
	if(IsNumeric(document.frm_emergencycontact.phone.value)==false)
	{
	alert("Please Enter  Number's Only ");
	document.frm_emergencycontact.phone.focus();
	document.frm_emergencycontact.phone.select();
	return false;
	}	
    document.frm_emergencycontact.submit();
}	
  
function candit_medicalsystems()
{		
	
	if (document.frm_medicalsystem.computerized_charting_system_you_most_familiar_with.value==0)
	{
	alert("Please Enter computerized_charting_system_you_most_familiar_with");
	document.frm_medicalsystem.computerized_charting_system_you_most_familiar_with.focus();
	document.frm_medicalsystem.computerized_charting_system_you_most_familiar_with.select();
	return false;
	}
	if (document.frm_medicalsystem.addl_computerized_charting_system_familiar.value==0)
	{
	alert("Please enter addl_computerized_charting_system_familiar");
	document.frm_medicalsystem.addl_computerized_charting_system_familiar.focus();
	document.frm_medicalsystem.addl_computerized_charting_system_familiar.select();
	return false;
	}
	if (document.frm_medicalsystem.machines_you_most_familiar_with.value==0)
	{
	alert("Please Enter machines_you_most_familiar_with");
	document.frm_medicalsystem.machines_you_most_familiar_with.focus();
	document.frm_medicalsystem.machines_you_most_familiar_with.select();
	return false;
	}
	if (document.frm_medicalsystem.addl_machines_with_you_familiar.value==0)
	{
	alert("Please Enter addl_machines_with_you_familiar");
	document.frm_medicalsystem.addl_machines_with_you_familiar.focus();
	document.frm_medicalsystem.addl_machines_with_you_familiar.select();
	return false;
	}
	document.frm_medicalsystem.submit();
}	
function candit_workExperience()
{	 
	if (document.frm_WorkExperience.facility_worksite_name.value==0)
	{
	alert("Please enter facility worksite name");
	document.frm_WorkExperience.facility_worksite_name.focus();
	document.frm_WorkExperience.facility_worksite_name.select();
	return false;
	}
	if (document.frm_WorkExperience.unit_size.value==0)
	{
	alert("Please enter unit size");
	document.frm_WorkExperience.unit_size.focus();
	document.frm_WorkExperience.unit_size.select();
	return false;
	} 	 
	if (document.frm_WorkExperience.agency_contracted_through.value==0)
	{
	alert("Please enter the agency you contracted through");
	document.frm_WorkExperience.agency_contracted_through.focus();
	document.frm_WorkExperience.agency_contracted_through.select();
	return false;
	} 
	if (document.frm_WorkExperience.float_to.value==0)
	{
	alert("Please enter float_to");
	document.frm_WorkExperience.float_to.focus();
	document.frm_WorkExperience.float_to.select();
	return false;
	}
	if (document.frm_WorkExperience.city.value==0)
	{
	alert("Please enter your City Name");
	document.frm_WorkExperience.city.focus();
	document.frm_WorkExperience.city.select();
	return false;
	} 
	if (document.frm_WorkExperience.shift.value==0)
	{
	alert("Please enter your shift");
	document.frm_WorkExperience.shift.focus();
	document.frm_WorkExperience.shift.select();
	return false;
	} 
	if (document.frm_WorkExperience.state.value==0)
	{
	alert("Please enter your state Name");
	document.frm_WorkExperience.state.focus();
	document.frm_WorkExperience.state.select();
	return false;
	}
	if (document.frm_WorkExperience.type_assignment.value==0)
	{
	alert("Please enter type assignment");
	document.frm_WorkExperience.type_assignment.focus();
	document.frm_WorkExperience.type_assignment.select();
	return false;
	}
	if (document.frm_WorkExperience.country.value==0)
	{
	alert("Please enter country name:");
	document.frm_WorkExperience.country.focus();
	document.frm_WorkExperience.country.select();
	return false;
	}
	if (document.frm_WorkExperience.clinical_supervisor_name.value==0)
	{
	alert("Please enter clinical supervisor name");
	document.frm_WorkExperience.clinical_supervisor_name.focus();
	document.frm_WorkExperience.clinical_supervisor_name.select();
	return false;
	}
	if (document.frm_WorkExperience.start_date.value==0)
	{
	alert("Please enter start date:");
	document.frm_WorkExperience.start_date.focus();
	document.frm_WorkExperience.start_date.select();
	return false;
	}
	if (document.frm_WorkExperience.clinical_supervisor_title.value==0)
	{
	alert("Please enter clinical_supervisor_title");
	document.frm_WorkExperience.clinical_supervisor_title.focus();
	document.frm_WorkExperience.clinical_supervisor_title.select();
	return false;
	} 
	if (document.frm_WorkExperience.end_date.value==0)
	{
	alert("Please enter end_date");
	document.frm_WorkExperience.end_date.focus();
	document.frm_WorkExperience.end_date.select();
	return false;
	}
	if (document.frm_WorkExperience.clinical_supervisor_phone.value==0)
	{
	alert("Please enter clinical supervisor phone no:");
	document.frm_WorkExperience.clinical_supervisor_phone.focus();
	document.frm_WorkExperience.clinical_supervisor_phone.select();
	return false;
	} 	 
	if (document.frm_WorkExperience.position.value==0)
	{
	alert("Please enter your position");
	document.frm_WorkExperience.position.focus();
	document.frm_WorkExperience.position.select();
	return false;
	} 
	if (document.frm_WorkExperience.may_we_contact_reference.value==0)
	{
	alert("Please enter may_we_contact_reference");
	document.frm_WorkExperience.may_we_contact_reference.focus();
	document.frm_WorkExperience.may_we_contact_reference.select();
	return false;
	} 
	if (document.frm_WorkExperience.reason_leaving.value==0)
	{
	alert("Please enter reason for leaving");
	document.frm_WorkExperience.reason_leaving.focus();
	document.frm_WorkExperience.reason_leaving.select();
	return false;
	} 
	if (document.frm_WorkExperience.teaching_assignment.value==0)
	{
	alert("Please enter teaching assignment");
	document.frm_WorkExperience.teaching_assignment.focus();
	document.frm_WorkExperience.teaching_assignment.select();
	return false;
	}
	if (document.frm_WorkExperience.other_reason_leaving.value==0)
	{
	alert("Please enter other reason for leaving");
	document.frm_WorkExperience.other_reason_leaving.focus();
	document.frm_WorkExperience.other_reason_leaving.select();
	return false;
	}
	if (document.frm_WorkExperience.trauma_center.value==0)
	{
	alert("Please enter trauma_center");
	document.frm_WorkExperience.trauma_center.focus();
	document.frm_WorkExperience.trauma_center.select();
	return false;
	}
	if (document.frm_WorkExperience.unit_type.value==0)
	{
	alert("Please enter unit_type:");
	document.frm_WorkExperience.unit_type.focus();
	document.frm_WorkExperience.unit_type.select();
	return false;
	}
	if (document.frm_WorkExperience.worked_charge.value==0)
	{
	alert("Please enter worked_charge");
	document.frm_WorkExperience.worked_charge.focus();
	document.frm_WorkExperience.worked_charge.select();
	return false;
	}
	if (document.frm_WorkExperience.sub_specialty.value==0)
	{
	alert("Please enter sub_specialty:");
	document.frm_WorkExperience.sub_specialty.focus();
	document.frm_WorkExperience.sub_specialty.select();
	return false;
	}
	if (document.frm_WorkExperience.note.value==0)
	{
	alert("Please enter notes");
	document.frm_WorkExperience.note.focus();
	document.frm_WorkExperience.note.select();
	return false;
	} 
	if (document.frm_WorkExperience.explain_any_gaps_work_experience_more_60_days.value==0)
	{
	alert("Please explain_any_gaps_work_experience_more_60_days");
	document.frm_WorkExperience.explain_any_gaps_work_experience_more_60_days.focus();
	document.frm_WorkExperience.explain_any_gaps_work_experience_more_60_days.select();
	return false;
	} 						
	document.frm_WorkExperience.submit();
}  
function candit_AdditionalInformation()
{	 
	if (document.frm_AdditionalInformation.submit_verification_your_legal_right_to_work_in_usa.value==0)
	{
	alert("Please submit your legal right to work in usa");
	document.frm_AdditionalInformation.submit_verification_your_legal_right_to_work_in_usa.focus();
	document.frm_AdditionalInformation.submit_verification_your_legal_right_to_work_in_usa.select();
	return false;
	}
	
	
	
	if (document.frm_AdditionalInformation.if_referred_whom.value==0)
	{
	alert("Please enter whom referred you");
	document.frm_AdditionalInformation.if_referred_whom.focus();
	document.frm_AdditionalInformation.if_referred_whom.select();
	return false;
	}
	
	document.frm_AdditionalInformation.submit();
}  
	
function login1()
{		
	if (Email(document.frm_login.user_id.value))
	{
	alert("Please enter valid User Id");
	document.frm_login.user_id.focus();
	document.frm_login.user_id.select();
	return false;
	}
	if (document.frm_login.password.value==0)
	{
	alert("Your password should not be empty");
	document.frm_login.password.focus();
	document.frm_login.password.select();
	return false;
	}
	if(document.frm_login.password.value.length < 6)
	{ 
	alert('Invalid!Please enter your Correct Password');
	document.frm_login.password.focus();
	document.frm_login.password.select();
	return false;
	}	
    document.frm_login.submit();
}		


function changepwd1()
{		
   
	if(document.frmchangepwd.old_password.value==0)
	{ 
	alert('Please enter your old password.');
	document.frmchangepwd.old_password.focus();
	document.frmchangepwd.old_password.select();
	return false;
	}

	if(document.frmchangepwd.password.value==0)
	{ 
	alert('Please enter your new password.');
	document.frmchangepwd.password.focus();
	document.frmchangepwd.password.select();
	return false;
	}
	
	if (document.frmchangepwd.confirm_password.value==0)
	{
	alert("Please enter confirm Password");
	document.frmchangepwd.confirm_password.focus();
	document.frmchangepwd.confirm_password.select();
	return false;
	}
	if ((document.frmchangepwd.password.value) != (document.frmchangepwd.confirm_password.value))
	{
	alert("Password mismatch retype your password");
	document.frmchangepwd.confirm_password.focus();
	document.frmchangepwd.confirm_password.select();
	return false;
	}
	if(document.frmchangepwd.password.value.length < 6)
	{ 
	alert('Password should be 6 characters Long.!');
	document.frmchangepwd.password.focus();
	document.frmchangepwd.password.select();
	return false;
	}	
	document.frmchangepwd.submit();
}		

function forgetpwd()
{
	if (Email(document.frmforgetpwd.user_id.value))
	{
		alert("Please enter valid User Id");
		document.frmforgetpwd.user_id.focus();
		document.frmforgetpwd.user_id.selected();
		return false()
	}
	document.frmforgetpwd.submit()
}
  

function contactus()
{		
 
	if (document.frmcontactus.subject.value==0)
	{
	alert("Please enter your subject");
	document.frmcontactus.subject.focus();
	document.frmcontactus.subject.select();
	return false;
	}	
 	if (document.frmcontactus.message.value==0)
	{
	alert("Please enter your message");
	document.frmcontactus.message.focus();
	document.frmcontactus.message.select();
	return false;
	}	
 	if (document.frmcontactus.full_name.value==0)
	{
	alert("Please enter your full_name");
	document.frmcontactus.full_name.focus();
	document.frmcontactus.full_name.select();
	return false;
	}	
 	if (Email(document.frmcontactus.email.value))
	{
	alert("Please enter your email id");
	document.frmcontactus.email.focus();
	document.frmcontactus.email.select();
	return false;
	}
 	if (document.frmcontactus.validator.value==0)
	{
	alert("Enter the letters as they are shown in the image below");
	document.frmcontactus.validator.focus();
	document.frmcontactus.validator.select();
	return false;
	}				 
	document.frmcontactus.submit();
}		
function candit_jobsearch()
{	
  if (document.frm_jobsearch.key.value==0)
   {
    alert("Enter Key words for job search");
	document.frm_jobsearch.key.focus();
	document.frm_jobsearch.key.select();
	return false; 
   }
	document.frm_jobsearch.submit();
}
	
 	

 
 

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Michael J. Damato | http://developing.damato.net/ */
// State lists
var states = new Array();
states['India'] = new Array('Tamil Nadu','Karanataka','Kerala','Andhra Pradesh');
states['Canada'] = new Array('Alberta','British Columbia','Ontario');
states['Mexico'] = new Array('Baja California','Chihuahua','Jalisco');
states['United States'] = new Array('California','Florida','New York');

// City lists
var cities = new Array();
cities['Canada'] = new Array();
cities['Canada']['Alberta']          = new Array('Edmonton','Calgary');

cities['Canada']['British Columbia'] = new Array('Victoria','Vancouver');
cities['Canada']['Ontario']          = new Array('Toronto','Hamilton');
cities['Mexico'] = new Array();
cities['Mexico']['Baja California'] = new Array('Tijauna','Mexicali');
cities['Mexico']['Chihuahua']       = new Array('Ciudad Juárez','Chihuahua');
cities['Mexico']['Jalisco']         = new Array('Guadalajara','Chapala');
cities['United States'] = new Array();
cities['United States']['California'] = new Array('Los Angeles','San Francisco');
cities['United States']['Florida']    = new Array('Miami','Orlando');
cities['United States']['New York']   = new Array('Buffalo','new York');
cities['India'] = new Array();
cities['India']['Tamil Nadu'] = new Array('Chennai','Coimbatore','Vellore','Madurai');
cities['India']['Karanataka']    = new Array('Bengaluru / Bangalore','Mangalore','Mysoru / Mysore','Hubli');
cities['India']['Kerala']   = new Array('Calicut','Cochin','Ernakulam','Trivandrum');
cities['India']['Andhra Pradesh'] = new Array('Hyderabad / Secunderabad','Nellore','Vijayawada','Visakhapatnam');

function setStates() { 
  cntrySel = document.getElementById('country');
  stateList = states[cntrySel.value];
  changeSelect('state', stateList, stateList);
  setCities();
}
function setCities() {
  cntrySel = document.getElementById('country');
  stateSel = document.getElementById('state');
  cityList = cities[cntrySel.value][stateSel.value];
  changeSelect('city', cityList, cityList);
}
function changeSelect(fieldID, newOptions, newValues) {
  selectField = document.getElementById(fieldID);
  selectField.options.length = 0;
  for (i=0; i<newOptions.length; i++) {
    selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
  }
}
// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } 
else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(function() {
  setStates();
});
 
 
 //Div format new Rajiv
 function toggleLayer( whichLayer )
{
	var elem, vis;
	if( document.getElementById ) // this is the way the standards work
		elem = document.getElementById( whichLayer );
	else if( document.all ) // this is the way old msie versions work
		elem = document.all[whichLayer];
	else if( document.layers ) // this is the way nn4 works
		elem = document.layers[whichLayer];
	vis = elem.style;
	// if the style.display value is blank we try to figure it out here
	if( vis.display == '' && elem.offsetWidth != undefined && elem.offsetHeight != undefined )
		vis.display = ( elem.offsetWidth != 0 && elem.offsetHeight != 0 ) ? 'block':'none';
	vis.display = ( vis.display == '' || vis.display == 'block' ) ? 'none':'block';
}

function disableSubmit(whichButton)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		document.getElementById(whichButton).disabled = true;
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		document.all[whichButton].disabled = true;
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		document.layers[whichButton].disabled = true;
	}
}

function confirmDelete()
{
    var agree=confirm("Are you sure you wish to delete this entry?");
    if (agree)
        return true;
    else
        return false;
}

function returnObjById( id )
{
	if (document.getElementById)
		var returnVar = document.getElementById(id);
	else if (document.all)
		var returnVar = document.all[id];
	else if (document.layers)
		var returnVar = document.layers[id];
	return returnVar;
}

function setHandler( tagType, clsName, eventType, func )
{
	elements = document.getElementsByTagName( tagType );
	for( var t = 0; t < elements.length; t++ )
	{
		if( elements[t].className.indexOf( clsName ) >= 0 )
		{
			var code = "elements[t]." + eventType + " = " + func;
			eval( code );
		}
	}
}

function toggleColor( )
{
	var style2 = this.style;
	style2.backgroundColor = style2.backgroundColor? "":"#FFFF00";
}

function toggleBgColor( elem )
{
	var style2 = elem.style;
	style2.backgroundColor = style2.backgroundColor? "":"#FFFF00";
}

function externalLinks( )
{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++)
	{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
}

function initpage( )
{
	setHandler( 'tr', 'toggle', 'onclick', 'toggleColor' );
	setHandler( 'span', 'heading', 'onmouseover', 'toggleColor' );
	setHandler( 'span', 'heading', 'onmouseout', 'toggleColor' );
	externalLinks( );
}
if( top.location != self.location )
		top.location = self.location;
window.onload = initpage;


//new js for category like that
// close layer when click-out
var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;
  
  // open hidden layer
  function m1open(id)
  {	
  	// cancel close timer
	
  	m1cancelclosetime();
  	// close old layer
  	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';  
  	// get new layer and show it
  	ddmenuitem = document.getElementById(id);
  	ddmenuitem.style.visibility = 'visible';
  
  }
  // close showed layer
  function m1close()
  {
      if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
  }  
  function m1cancelclosetime()
  {
  	if(closetimer)
  	{
      	window.clearTimeout(closetimer);
  		closetimer = null;
  	}
  }
 
