<!--
function getContentURL(u, def)
{
	var defaultWelcomePage = 'intro.htm'; //most often used default
	qstr = '?go=';
	idx = u.indexOf(qstr);
	cont = (def==null) ? defaultWelcomePage : def;
	if (idx!=-1) 
	{
		cont = u.substring(idx+qstr.length);
		qstr = '&anchor=';
		idx = cont.indexOf(qstr);
		if (idx!=-1) cont = cont.substring(0,idx)+'#'+cont.substring(idx+qstr.length);			
	}

	//strip http and server name from go URL
	var C = new Array();
	C[0] = 'https://adidam.org';
	C[1] = 'http://adidam.org';
	C[2] = 'https://volcano';
	C[3] = 'http://volcano';
	C[4] = 'https://';
	C[5] = 'http://';
	C[6] = 'nntp://';
	C[7] = 'ftp://';
	cont = unescape(cont);
	for(c=0;c<C.length;c++)
	{
		if (cont.indexOf(C[c])>-1) cont = cont.substring(C[c].length);
	}
	if (cont.indexOf('http://')>-1 | cont.indexOf('https://')>-1 | cont.indexOf('nttp://')>-1  | cont.indexOf('ftp://')>-1) cont = defaultWelcomePage;
	return cont; 	
}

function getDynamicFrame(ur, de)
{
	contentURL = getContentURL(ur, de)
	aframe = '<frame src="'+contentURL+'" name="bottomside" frameborder="0" scrolling="auto" noresize>';
	return aframe;
}
function makeFrame(leftCols,leftURL,topRows,topURL,introURL)
{
	//this is a cover function that should be usable on all Gateway frame pages
	aframe = '<frameset cols="'+leftCols+',*" frameborder="no" framespacing="0" border="0">';
	aframe += '<frame src="'+leftURL+'" name="leftside" frameborder="0" scrolling="no" noresize>';
	aframe += '<frameset rows="'+topRows+',*"  frameborder="no" framespacing="0" border="0">';
	aframe += '<frame src="'+topURL+'" frameborder="0" scrolling="no" noresize>';
	aframe += getDynamicFrame(document.URL, introURL);
	aframe += '</frameset>';
	aframe += '</frameset>';
	return aframe;
}
//-->
