var win_alarm = null;
var win_notepad = null;
	
function openAlarm( strWell )
{
	if( win_alarm && !win_alarm.closed )
	{
		// Window Exists and Is Open
		win_alarm.location.href = "alarms.asp?well=" + strWell;
		win_alarm.focus();
	}
	else
	{
		// Window doesn't exist, open it
		win_alarm = window.open("alarms.asp?well=" + strWell, "Alarms"); 
	}
}

function openNotepad( strWell )
{
	if( win_notepad && !win_notepad.closed )
	{
		// Window Exists and Is Open
		win_notepad.location.href = "notepad.asp?well=" + strWell;
		win_notepad.focus();
	}
	else
	{
		// Window doesn't exist, open it
		win_notepad = window.open("notepad.asp?well=" + strWell, "Notepad"); 
	}
}

// This function fixes a problem caused by an 
// Internet Explorer Update that was brought on by a 
// lost lawsuit to Eolas, in which plugins require
// a user to click on them before they are usable.
// This function removes that requirement.
function IE_FIX()
{
	var elem = document.getElementById("IE_FIX");
	document.write(elem.innerHTML);
}

