
//Generic alert to be used with links to delete things.  Simply a confirmation of intent to delete.
function deleteCheck() {
	return confirm("This will permanently delete this object.  Are you sure you want to do this?");
}

//Verify intention to delete Activity
function activityDeleteAlert() {
	return confirm("Do you wish to delete this Strategy?  Deleted strategies CANNOT be restored!");
}

//Verify intention to remove link to calendar item
function calStrLinkRemCheck() {
	return confirm("You are about to remove this calendar event's link to this strategy!  The calendar event itself will NOT be deleted.");
}

//Verify intention to remove link to ppp item
function pppStrLinkRemCheck() {
	return confirm("You are about to remove this Publication/Press/Product item's link to this strategy!  The Publication/Press/Product item itself will NOT be deleted.");
}

//Generic alert to be used with links to delete things.  Simply a confirmation of intent to delete.
function deleteCheckGroup() {
	return confirm("This will delete this directory group.  The group itself will be deleted, NOT the directory entries (people) that have been added to the group.    Are you sure you want to do this?");
}

//Verify intention to submit activity for approval
function budgetWkshtSubmitAlert() {
	return confirm("Do you wish to submit this Budget Worksheet for Approval?  The Budget Worksheet will be locked to prevent editing or deletion until it has been approved or disapproved.");
}

//Verify intention to submit activity for approval
function activitySubmitAlert() {
	return confirm("Do you wish to submit this Activity for Approval?  Assuming all fields have been filled in, the activity will be locked to prevent editing or deletion until it has been approved or disapproved.");
}

//Pop-up help Information Window
function gimmeAWin(filename) {
	helpWindow = window.open(filename,"HelpWindow","width=400,height=400,scrollbars=yes");
}




//after X minutes show logout alert & then after Y minutes, log the person out
function timeOutWarningMessage() {
	var nowDate = new Date();
	
	warningMsg = "Warning: Your login session on TRAIN should expire in approximately 5-10 minutes.\n\nTo prevent this, you must interact with the system in an active fashion.  For example, clicking on a link or saving data in a form.\n\n (Message Displayed:" + nowDate + ")";

	alert(warningMsg);
}


function sessionLogOutWarning() {
	

	warningTime = 6600000;  // 110 Minutes (1Hr, 50 minutes)
	//warningTime = 6;
	
	//give warning
	window.setTimeout("timeOutWarningMessage()", warningTime);

}