function checkURL() 
{
	if(window.parent.frames.length==0)
	{
		k = window.location.pathname;
		p = k.lastIndexOf("/");
		
		if(p>=0)
			u = k.substr(p+1);
		else
			u = k;
				
		window.location.href="frameset.htm?"+u;
	}
}

function key()
{
	a = window.location.href;

	p = a.lastIndexOf("?");

	if(p>=-1)
		u = a.substr(p+1);

	if(u.length > 0)
		document.frames[1].location.href = u;
}


