function decision(url,delete_what){
	var message = "Are you sure that you want to delete " + delete_what + "?";
	if(confirm(message)) window.location.href = url;
}
function decisionSubmit(delete_what){
	var message = "Are you sure that you want to delete " + delete_what + "?";
	if(confirm(message)) document.deleteImage.submit();
}
function submitenter(myfield,e){
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	
	if (keycode == 13)  {
		document.login.submit();
		return false;
	} else {
		return true;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function insertEmailAddress(contactName, emailUser, emailHost, subject, initialBodyText)  {
	if(emailHost == undefined || emailHost == "") emailHost = "jonespg.com";
	if(contactName == "") contactName = emailUser + "@" + emailHost;
	if(subject == undefined) subject = "";
	if(initialBodyText == undefined) initialBodyText = "";
	
	// Generate the extra URL information for e-mail subject and body.
	extraURLData = "";
	
	if(subject != "" || initialBodyText != "" ) {
		extraURLData = "?";
		if(subject != "" ) extraURLData += "subject=" + subject + "&";
		if(initialBodyText != "" ) extraURLData += "body=" + initialBodyText;
	}
  document.write( '<a href="' + 'mailto:' + emailUser + '@' + emailHost + extraURLData + '">' + contactName + '</a>' );
}

$(document).ready(function(){

	//Remove outline from links
	$("a").focus(function(){
		$(this).blur();
	});

	$("a").removeAttr("title");
	//$("img").removeAttr("alt");

});

