//function:		openPopup
//purpose:		Opens a new popup window
//parameter:	strURL - the URL to give the new window
//parameter:	strWindowTitle - the title to give the new window
//parameter:	intWidth - the width of the new window
//parameter:	intHeight - the height of the new window
function openPopup(strURL, strWindowTitle, intWidth, intHeight) {
	var windowPopup;
	var strSettings;
	
	windowPopup = null;
	strSettings = 'width=' + intWidth + ',height=' + intHeight + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,dependent=no';
	try {
		windowPopup = window.open(strURL, strWindowTitle, strSettings);
		windowPopup.focus();
	} catch(err) {}
}

//Created 04/08/2008 Anton Gerassimov
//This function checks if the user has changed their email
//and displays a confirmation message which returns a true or false
function checkChangedEmail(newEmailClientID, originalEmailClientID) {
    var originalEmail;
    var newEmail;
    
    originalEmail = document.getElementById(originalEmailClientID);
    newEmail = document.getElementById(newEmailClientID);
    
    if (newEmail.value !== originalEmail.value) {
        return confirm("Warning: A verification email will be sent to:\n\n" + newEmail.value + "\n\nPlease make sure your new email address is correct\nas you will be logged out and required to verify\nyour new email address before logging back in.");
    }
    else {
        return true;
    }

    
    
}
