//*************
function ConfDel(url,itemName) {
	var agree=confirm("Delete this item: <" + itemName + "> ? (All related records will be deleted.)");
	if (agree) {
		location.href = url;
	}
	else {
		return;
	}
}


//*************
function RefreshParentWin(URLstr){
	opener.location.href = URLstr;
}

function openPopupWin(url, width, height){
	winName = "Popup_"+width+height;
	winSpecs = "toolbar=Yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width="+width+",height="+height;

	popupWin=open(url,winName,winSpecs);
	if (popupWin.opener == null) popupWin.opener = self;
}

function closePopupWin(url){
	if (url == ""){
		opener.location.reload();
	}else{
		opener.location.href = url;
	}
	window.close();
}

function SubmitToNewWin(url,width,height,formname){
	winName = "login";
	winSpecs = "toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width="+width+",height="+height;

	popupWin=open('',winName,winSpecs);
	
	//objForm = eval("document." + formname);
	//objForm.target = winName;
	//objForm.submit();	
	document.forms[0].target = winName;
	document.forms[0].submit();	
}