/*
function yminiPageLoad(ymini_feedback) {
  var ymini_feedback_safarifix
  ymini_feedback_safarifix = ymini_feedback;
  //ymini_feedback_safarifix = "no results";
  if (ymini_feedback_safarifix == "no results") {
    alert(ymini_feedback_safarifix);
  }
}
*/

function yminiPageLoad(ymini_feedback) {
  if (ymini_feedback == "no results") {
    //alert(ymini_feedback);
	alert("There were no positions found.");
    /*
    if (confirm("There were no positions found. To submit your resume click 'Ok' or click 'Cancel' to change your criteria and search again.")) {
      var page_name = "\"prospective-employee-ymini-applicant-email.asp\"";
      //Design the new page for Web user for sending resume without any 
      // Selected Job Position
    } else {
      window.location="prospective-employee-ymini.asp";
    }
    */
  }
  //alert(ymini_feedback);
}


    /* ################ AJAX BEGIN ################ */
    var xmlhttp
    var regen = false;
    
    function ajaxPost(ajax_url, ajax_var) {
      if (window.XMLHttpRequest) { // IE7+, Firefox, Safari, Chrome, Opera
        xmlhttp = new XMLHttpRequest();
      } else if (window.ActiveXObject) { // IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } else {
        alert('Problem with XMLHTTP');
        return false;
      }
      xmlhttp.onreadystatechange = ajaxFeedBack;
      xmlhttp.open('POST', ajax_url, true);
      xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
      xmlhttp.setRequestHeader("Content-length", ajax_var.length);
      xmlhttp.setRequestHeader("Connection", "close");
      xmlhttp.send(ajax_var);
      xmlhttp.close
    }
    
    function ajaxFeedBack() {
      if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
        db_feedback = xmlhttp.responseText;
        document.getElementById("t_s_pt_id_div").innerHTML = db_feedback;
        /*
        if (db_feedback == "wrongcode") {
          alert("Wrong Code");
          document.getElementById('C0D3').focus();
		} else if (db_feedback == "error") {
          document.getElementById('ajax-form-before').style.display = "none";
          document.getElementById("contentheader").innerHTML = "<h1 style='color: red;'>Submission Error</h1>";
          document.getElementById('ajax-form-after-error').style.display = "block";
          alert("Submission Error");
		} else {
          document.getElementById('ajax-form-before').style.display = "none";
          document.getElementById('ajax-form-after-success').style.display = "block";
          alert("Submission Successful");
		}
        */
      }
    }
    
    function ajaxReadForm() {
      var ajax_post_var = "t_s_pc_id=" + encodeURI(document.getElementById('t_s_pc_id').value);
      ajaxPost('/prospective-employee-pos-cat-ajax.asp', ajax_post_var);
    }
    /* ################# AJAX END ################# */
    function formReset() {
      document.jobsearch.reset();
      ajaxReadForm();
    }

//function noResults() {
//  alert("It works2");
//}
