//testing thing, for determining all pertinent browser information:
function browser_test(){
	var app_nu='error in method', app_sub_nu='', os='missing test', browser='unknown type',an, rv='';
	var spacer='=======================================\n';
	nps=n.productSub;
	nv=n.vendor;

	if(win){os='Windows';}
	else if(mac){os='MacIntosh';}
	else if(lin){os='Linux';}
	else {}

	if(d.layers)
	{
		app_nu = nav.substring(0,4);
		browser='Netscape Navigator';
	}
	else if ( !moz_brow && !moz_brow_nu )
	{
		browser = brow;
		app_nu = nu;
	}
	else if( moz_brow && moz_brow_nu )
	{
		app_nu = (moz_brow_nu_sub) ? moz_brow_nu_sub : moz_brow_nu;
		browser = moz_brow;
		(!app_nu) ? app_nu = nu : '';
	}

	an = browser.substring(0,1);
	an = an.toLowerCase();
	(nps) ? nps='Navigator Product Sub: ' + nps + '\n' : nps='';
	(moz_rv_sub) ? app_sub_nu = 'The subversion number is: ' + moz_rv_sub + '\n' : app_sub_nu = '';
	( moz_brow && moz_brow_nu ) ? rv = 'Gecko rv version number: ' + rv_full + '\n': '';
	(an=='a'||an=='e'||an=='i'||an=='o'||an=='u') ? an='an ' : an='a ';
	
	msg_test='You are using a ' + os + ' operating system\n' +
			'with '+ an + browser + ' ' + app_nu + ' browser\n' + spacer + rv +
			'Navigator User Agent: ' + nua + '\n' +
			'Navigator App Version: ' + nav + '\n' +
			'Navigator App Name: ' + nan + '\n' + nps +
			app_sub_nu;

	alert(msg_test);
}
//needed to get off page to pass xhtml 1 strict
function client_data(info)
{
	if (info == 'width')
	{
		width_height_html = '<h4  class="right-bar">Current Screen Resolution</h4>';
		width = (screen.width)?screen.width:'';
		height = (screen.height)?screen.height:'';
		width_height_html += '<p class="right-bar">' + width + " x " +
			height + " pixels</p>";
		(width && height)?d.write(width_height_html):'';
	}
	else if (info == 'js' )
	{
		d.write('<p class="right-bar">JavaScript is enabled.</p>');
	}
	else if ( info == 'cookies' )
	{
		string = '<h4  class="right-bar">Cookies</h4><p class="right-bar">';
		
		if ( Get_Cookie( 'cookie_test' ) )
		{
			//value = Get_Cookie( 'cookie_test' );
			string += ' Cookies are enabled</p>';
		}
		else {
			string += 'Cookies are disabled</p>';
		}
		d.write( string );
	}
}

