﻿//Disable the control that submits the form
function submitFormOnce(sender) {
   if (sender.disabled==false) {
        sender.disabled=true;
        return true;            //added to replace document.aspnetForm.submit(); for cross browser support
    } else {
        return false;
    }
}

function checkForEnter(str) {
    if (window.event.keyCode == 13) {
		return false;
        top.window.location='search.aspx?search=' + str;
	}
}

//Confirms that the button action is t/f
function confirmClick(sMsg) {
    if (confirm(sMsg)) {
        //alert('Action confirmed!');
        document.aspnetForm.action='';
        document.aspnetForm.submit();
    } else {
        //alert('** Block Action **');
        return false;
    }
}