// Author:		Chris Wellings
// Created:		31 Aug 2004
// Purpose:		To support the system status pop-up page


// historyChange - Changes the history of the displayed page
function historyChange(pstrcref, pstrSystemName, pbCurrent) 
{
	document.frmHistoryChange.cref.value = pstrcref;	
	document.frmHistoryChange.inpCurrent.value = pbCurrent;
	document.frmHistoryChange.inpSystemName.value = pstrSystemName;	
	
	document.frmHistoryChange.submit();	
}

// emailNewContent - Shows email confirmation, then emails email address if user confirms pop-up
function emailNewContent(pstrcref, pstrSystemName, pbSendEmail)
{
	document.frmHistoryChange.cref.value = pstrcref;	
	document.frmHistoryChange.inpSendEmail.value = pbSendEmail;
	document.frmHistoryChange.inpSystemName.value = pstrSystemName;	
		
	 var response = window.confirm('This email will be sent to: ' + document.frmEmailInformation.inpSendTo.value + '. \n' + document.frmEmailInformation.inpMessage.value + ' \nPlease confirm that you wish to send this email.');
     if (response) {
		document.frmHistoryChange.submit();	
     }
}

// printWindow - Prints window
function printWindow()
{
   var lngVersion = parseInt(navigator.appVersion)
   if (lngVersion >= 4) window.print()
}

