
function GetFilename()
{
 var wnd = window;
 
 if (wnd.parent != null) 
 		{wnd = wnd.parent;
		
		}

 var SearchS = ''; 
 var StrPara;
 if (wnd.location != null) 
 {
 	 eval ("try {SearchS = wnd.location.search;} catch (id) {SearchS = '';}");
 } 
 
 StrPara = new String (SearchS);
 
 // Get the name of the file to be loaded from a URL query string...
 var fileName = ''
 // Get the string after the question mark.
 var URL = StrPara.substring(1);
 if (URL)
 {
  // Split it into an array of scroller/filename pairs.
  URL = URL.split('&');
  // Search through that array looking for this scroller name.
  for (var i = 0; i < URL.length; i++)
    if (URL[i].split('=')[0] == 'item') 
   		fileName = unescape(URL[i].split('=')[1]);
 }
 
 return fileName;
}

var aFileName = GetFilename();

if( aFileName )
{
	aFileName = aFileName + ".htm";
//	alert( aFileName );
	window.open( aFileName, target='main' );
}
