
function confirmDeleteLink(strDeleteURL) {
	var msg = "\nDo you wish to delete this item?\n\nClick OK to delete...\n\nor CANCEL to return without deleting."
	 
	if (confirm(msg)) {
		location.replace(strDeleteURL)
	}  
}

function confirmDelete(frmForm) {
	var msg = "\nDo you wish to delete this item?\n\nClick OK to delete...\n\nor CANCEL to return without deleting.";
	
	if (confirm(msg)) {
		return true;
	}else{
		return false;
	}
}



	function confirmDelete2B(btnButton) {
		var msg = "\nDo you wish to delete this item?\n\nClick OK to delete...\n\nor CANCEL to return without deleting.";
	

		if(btnButton.value=='Edit'){
			return true;
		}else if(btnButton.value=='Delete'){
			if (confirm(msg)) {
				return true;
			}else{
				return false;
			}
		}else{
			return false;
		}
	}

	
	

function sbLoad(strURL, strTarget, strLinkID) {

	document.getElementById('sb1').setAttribute("class", "");
	document.getElementById('sb2').setAttribute("class", "");
	document.getElementById('sb3').setAttribute("class", "");

	open_url(strURL,strTarget); 
	//resultsgo(strTarget);
	document.getElementById(strLinkID).setAttribute("class", "active");
}



function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}