<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Mukesh/Ritesh (mukesh@netedgecomputing.com) -->
<!-- Web Site:  http://www.netedgecomputing.com -->

//---------------------------------------------------------------------------
function TscPrompt(prompttitle, message, CallBackFunc, top, left)
{ 
	promptbox = document.createElement('div'); 
	promptbox.setAttribute ('id' , 'prompt');
	document.getElementsByTagName('body')[0].appendChild(promptbox);
	promptbox = eval("document.getElementById('prompt').style");
	promptbox.position = 'absolute';
	promptbox.top = top;
	promptbox.left = left;
	promptbox.width = 300;
	promptbox.border = 'outset 1 #bbbbbb';
	document.getElementById('prompt').innerHTML = "<table cellspacing='0' cellpadding='0' border='0' width='100%'><tr valign='middle'><td class='titlebar'><center>" + prompttitle + "</center></td></tr></table>";

	document.getElementById('prompt').innerHTML = document.getElementById('prompt').innerHTML + "<table cellspacing='0' cellpadding='0' border='0' width='100%' class='promptbox'><tr><td>" + message + "</td></tr><tr><td><input type='text' id='promptbox' onblur='this.focus()' class='promptbox'></td></tr><tr><td align='right'><br><input type='button' class='prompt' value='OK' onMouseOver='this.style.border=\"1 outset #dddddd\"' onMouseOut='this.style.border=\"1 solid transparent\"' onClick='" + CallBackFunc + "(document.getElementById(\"promptbox\").value); document.getElementsByTagName(\"body\")[0].removeChild(document.getElementById(\"prompt\"))'> <input type='button' class='prompt' value='Cancel' onMouseOver='this.style.border=\"1 outset transparent\"' onMouseOut='this.style.border=\"1 solid transparent\"' onClick='" + CallBackFunc + "(\"_CANCEL_\"); document.getElementsByTagName(\"body\")[0].removeChild(document.getElementById(\"prompt\"))'></td></tr></table>";
	
	document.getElementById("promptbox").focus() 
}
