/*
Script by AnyExample.com
www.anyexample.com/webdev/javascript/ie7_javascript_prompt()_alternative.xml
*/
	
function prompt1(url)
{
    ae_prompt( prompt2, 'Copy the RSS location (CTRL+C) below, then click OK. Once copied, paste (CTRL+V) it into your RSS reader program.', url);
}

function prompt2(n)
{
    //var hello = document.getElementById('hello');
    //hello.innerHTML = '<h1>Hello, ' + n + '!</h1>';
}

		
// This is variable for storing callback function
var ae_cb = null;
	 
// this is a simple function-shortcut
// to avoid using lengthy document.getElementById
function ae$(a) { return document.getElementById(a); }
	 
// This is a main ae_prompt function
// it saves function callback 
// and sets up dialog
function ae_prompt(cb, q, a) {
	ae_cb = cb;
	ae$('aep_t').innerHTML = 'The page at ' + document.domain + ' says:';
	ae$('aep_prompt').innerHTML = q;
	ae$('aep_text').value = a;
	ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = '';
	ae$('aep_text').focus();
	ae$('aep_text').select();
}
	 
// This function is called when user presses OK(m=0) or Cancel(m=1) button
// in the dialog. You should not call this function directly.
function ae_clk(m) {
	// hide dialog layers 
	ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = 'none';
	if (!m)  
		ae_cb(null);  // user pressed cancel, call callback with null
	else
		ae_cb(ae$('aep_text').value); // user pressed OK 
}

