﻿

function showPage(strPage, width, height, target) {

	//content = '<html><title></title><body><center><a href=javascript:top.window.close()><img src=' + strPic + ' border=0></a></center></body></html>';
	//msgWin.document.write(content);
	//msgWin.document.close();

	msgWin = window.open(strPage, target, 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=' + width + ',height=' + height);
	msgWin.focus();


}

function selectAllRecords(strTargetForm) {
	var i;
	for (i = 0; i < document.forms[strTargetForm].length; i++) {
		if (document.forms[strTargetForm].elements[i].name == 'SelectBox') {
			document.forms[strTargetForm].elements[i].checked = true;
		}
	}
}

function deselectAllRecords(strTargetForm) {
	var i;
	for (i = 0; i < document.forms[strTargetForm].length; i++) {
		if (document.forms[strTargetForm].elements[i].name == 'SelectBox') {
			document.forms[strTargetForm].elements[i].checked = false;
		}
	}
}

function confirmSubmit(strTargetForm) {
	if (confirm('Are you sure?')) {
		document.forms[strTargetForm].submit();
	}
}

function refreshParent(parentURL) {
	opener.window.document.location = parentURL;
}

