function setFrame()
{
    var start=document.URL.indexOf("?");
    var url=document.URL
    if(start>0)
    {
    	var end=url.length;
    	var end2=url.indexOf("&",start);
    	if(end2<end && end2>0) end=end2;
    	window.frames["content"].location="content/"+url.substring(start+1,end)+".html";	
    }
    
}
function getElem(p2)
{
	if(document.getElementById) return document.getElementById(p2);
	else if(document.all) return document.all[p2];
}
function adjustIFrameSize (iframeID)
{
	var iframeWindow = getElem(iframeID).contentWindow;
	var iframeElement = getElem(iframeID);
	if (iframeWindow.document.body.scrollHeight && iframeWindow.document.body.scrollWidth)
	{
		iframeElement.style.height = iframeWindow.document.body.scrollHeight + 20 + 'px';
		//iframeElement.style.width = iframeWindow.document.body.scrollWidth + 'px';
		iframeElement.scrolling='no';
	}
	else if (iframeWindow.document.documentElement.scrollHeight && iframeWindow.document.documentElement.scrollWidth)
	{
		iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 20 + 'px';
		//iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 'px';
		iframeElement.scrolling='no';
	}
}
