///////////////////////////////////////////////////////////
// Usage IEprompt("dialog descriptive text", "default starting value");
// 
// IEprompt will call promptCallback(val)
// Where val is the user's input or null if the dialog was canceled.
///////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////
// You must create a promptCallback(val) function to handle
// the user input.  If you don't this script will fail and
// Bunnies will die.
///////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////
// These are global scope variables, they should remain global.
///////////////////////////////////////////////////////////
var _dialogPromptID=null;
var _blackoutPromptID=null;
///////////////////////////////////////////////////////////

function IEprompt(innertxt, def) {

	that=this;

	this.wrapupPrompt = function (canceled) {
		// wrapupPrompt is called when the user enters or cancels the box.

		// get the text box value
		val=document.getElementById('iepromptfield').value;
		// clear out the dialog box
		_dialogPromptID.style.display='none';
		// clear out the screen
		_blackoutPromptID.style.display='none';
		// clear out the text field
		document.getElementById('iepromptfield').value = '';
		// if the cancel button was pushed, force value to null.
		if (canceled) { val = '' }
