function openURL( url, target )
{
	try
	{
		var popup = window.open( url, target );
		if ( popup == null )
			return false;

		if ( window.opera )
			if (!popup.opera)
				return false;
	}
	catch(err)
	{
		return false;
	}
	return true;
}

function openWindow(source)
{
	// open the window
	win3 = window.open("", "", "width=320,height=210,scrollbars=yes");

	// write to window
	win3.document.writeln(source);
	
	/*var winW = screen.availwidth - 20 - 10;//Def border width = 10
    var winH = screen.availheight - 20 - 59;//Def border height+status bar = 59
    
	try
	{  
		alert("width=" +  winW + ",height=" +  winH + ",toolbar,location,status,scrollbars,menubar,resizable")
		var winpopup = window.open("","","width=" +  winW + ",height=" +  winH + ",toolbar,location,status,scrollbars,menubar,resizable")
		var tmp = winpopup.document;
		
		tmp.write(source);
		tmp.close();
	}
	catch(err)
	{
		return false;
	}*/
	return true;
}
