





function dw_loadExternal(url, ifrmId, divId, bLoadMsg) 
	{
	ifrmId = ifrmId || 'buffer'; divId = divId || 'display'; 
	if ( window.frames[ifrmId] ) 
		{
		window.frames[ifrmId].location = url;
		var lyr = document.getElementById? document.getElementById(divId): null;
		if ( lyr && bLoadMsg ) 
			{ // Option to display message while retrieving data 
			lyr.innerHTML = '<p>Retrieving data. Please wait ...</p>';
			lyr.style.display = 'block'; 
			}
		return false;
		} 
	return true; // other browsers follow link
	}



function dw_displayExternal(fname, bname ,ifrmId, divId, fp) 
	{
	ifrmId = ifrmId || fname; divId = divId || bname; 
    
	var lyr = document.getElementById? document.getElementById(divId): null;
	if ( window.frames[ifrmId] && lyr ) 
		{
		lyr.innerHTML = window.frames[ifrmId].document.body.innerHTML;
		lyr.style.display = 'block'; 
		if ( typeof fp == 'function' ) 
			{
			fp();
			}
        		// Demonstrated in tooltip demo
		if ( typeof window.frames[ifrmId].doOnIframedLoad == 'function' ) 
			{
			window.frames[ifrmId].doOnIframedLoad();
			}
		}
	}



function buddy_pop() 
	{
	var url = "recent.php";
	window.open(url, 'BrowserBuddy', 'width=650,height=420,resizable=yes,scrollbars=no');
	BrowserBuddy.focus();
	return false;
	}




var win = null;
function launch(mypage,myname,w,h,scroll)
	{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win = window.open(mypage,myname,settings);
	}




function go(what)
	{

var selectedopt=what.options[what.selectedIndex];
document.func.navi.options[0].selected = true;

if (selectedopt.value.substring(0,6)=='Select')
	{
	return false;
	}

else
if (selectedopt.value.substring(0,3)=='irc')
	{
	launch('irc.php', 'IRC_Gateway', '800', '550', 'yes');
	}

	
else

if (document.getElementById && selectedopt.getAttribute("target")=='bl_launch')
	{
	launch('juke/vidjuke.php', 'BluTube', '790', '520', 'yes');
	}


else
	{
	/* window.open(selectedopt.value)
	else */ if (selectedopt.getAttribute("target")&&selectedopt.getAttribute("target")!=''&&selectedopt.getAttribute("target")!='_self')
	window.open(selectedopt.value, selectedopt.getAttribute("target"))
	else
	window.location=selectedopt.value
	}


}



                        








function go2()                                                                         
	{                                                                                
	var destination;                                                                 
	box = document.forms[0].navi;                                                    
	destination = box.options[box.selectedIndex].value;                              
	if (destination) parent.main.location.href = ''+destination;
	}

