function rf(arg1, arg2){
  var xmlhttp = false;
  if (window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }else if(window.ActiveXObject){
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.open('GET', '/armour-survey/'+arg1, true);
  xmlhttp.onreadystatechange = function(){
    if (xmlhttp.readyState == 4){
      parent.document.getElementById(arg2).innerHTML = xmlhttp.responseText;
    }
  }
  xmlhttp.send(null);
}
function checkEnter(evt){
  var e = evt ? evt : window.event;
  if(!e) return;
  var key = 0;
  if (e.keyCode) { key = e.keyCode; }
  else if (typeof(e.which) != 'undefined') { key = e.which; }
  if (key == 13) {
    return false
  }
  return true;
}
function forgotPass(eml){
var iChars = "!#$%^&*()+=[]\\\';,/{}|\":<>?";

  for (var i = 0; i < eml.length; i++) {
  	if (iChars.indexOf(eml.charAt(i)) != -1) {
  	alert ("Your email has special characters. \nThese are not allowed.\n Please remove them and try again.");
  	return false;
  	}
  }
  rf('forgot/'+eml+'/','err')
}

function roll(which){
  if(which){
    document.getElementById('bod').style.background='url(/armour-survey/img/'+which+'.jpg) no-repeat';
  }
}