	function RefreshCaptchaImage(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}

function DoThis() {
	var myTextField = document.getElementById('contactForm');
	// alert(myTextField.value);
	document.getElementById('contactForm').value = window.top.location;
	// alert(myTextField.value);

}

function OnSubmitForm(comNum, comTitle) { 
//Allows for multiple actions for multiple submit buttons
  if(document.pressed == 'Send') {
		document.contactForm.action ="SiteContactEmailForm.asp?emailto=ebooks@ashm.org.au&EmailFrom=ARV@ashm.org.au&emailsubject=Comment No."+ comNum + " - " + comTitle;
  } else if(document.pressed == 'Back') {
        document.contactForm.action ="SiteContact.asp?comNum="+ comNum +"&comTitle="+ comTitle;
    }
  return true;
}

function loadCommentFeedback(comNum, comTitle) {
	showPopWin("SiteContact.asp?comNum=" + comNum + "&comTitle=" + comTitle, 600, 450, null);
}
