// Module-level variables
  var bFormModified = false;

function ShowPage(PageName) {
  document.fEnroll.action = PageName + '.asp';
  SubmitForm();
}

function SubmitForm()
{

//alert(bFormModified)
  //if (bFormModified) {
    if (ValidateForm()) {
      document.fEnroll.submit();
    }
  //}else {
	//Disabled checking to make sure page has been modified to allow user to go back without filling out current form.
    //var iPageID = document.fEnroll.hdnPageID.value;
    //var hdnElement = document.fEnroll.elements["hdnPage" + iPageID + "Complete"];
    //if (hdnElement.value == 'TRUE')
      //document.fEnroll.submit();
    //else
      //alert('Please complete the values on this form.');
  //}
}

function SetMod()
{
  // Set the Modified status for the form
  bFormModified=true;
  document.fEnroll.hdnFormModified.value="TRUE";
}

function ConfirmCancel(){

	if (confirm('Are you sure you want to cancel?  \nIf you cancel now you will have to begin \nthe enrollment process from the beginning.')){
		window.open ('http://www.columbiamedicalassociates.com', '_self')
	}
}

function LoadEnrollment(){
	window.open('/Services/SpokaneCare/Enrollment/GeneralInfo.asp','_new','height=600,width=800,toolbar=0,status=0,menubar=0');
	//window.close()
}