/**
 *This is here to get around the dumb eolas patent: http://en.wikipedia.org/wiki/Eolas
 */
function writeHTML(theHTML)
{
	document.write(theHTML);
	return true;
}

function filePopup(path,name) {
  opened = "true";
  var option = "width=400,height=200,resize";
  window.open(path,name,option);
}

function windowRefresh(){
  window.location.reload();
}

// If the element's string matches the regular expression it is numbers and letters
function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}
