var url = "http://www.vhb.com/atapply/getdups.aspx?";
var result = "";


function handleHttpResponse() {
				
	if (http.readyState == 4) {
	// Split the comma delimited response into an array
		result = http.responseText.indexOf("true");
		var checkBox = document.getElementById('cbStaffingAgency');
	// document.getElementById('empid').value = results[1];
		if ((result != -1) && (!checkBox.checked))
		{
			alert('It appears that you have already applied for this job!\nIf you are a recruiter please check the recruiter checkbox in the application form below\notherwise, you will not be able to submit your application!');
		}
		result = "";
	}
}
		  
function checkDuplicate(job) {
}
				
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object