function showStatus()
{
	var width = 430;
	var height = 320;
	window.open('http://vps.nomadnet.net.au','Window1', 'menubar=no,width=' + width + ',height=' + height + ',toolbar=no,location=no');
	
//	return false;
}



 

/*************************************************
 * Open up a email form without having to use user@domain.country codes explicitly
 * Usage:
 *    mailSender( accountName <required>, domain <optional>, subject <optional>)
 *          accountName is the part in front of @ sign in the email address
 *          domain is the part after the @ sign. Defaults to schoensleben.ch
 *          subject is well, the subject
 *************************************************/
function mailSender( accountName, domain, subject)
{
	if( typeof( accountName) == 'undefined')
	{
		alert('function mailSender: Error, no accountName parameter provided!');
		return;
	}

	if( typeof( domain) == 'undefined')
		domain = 'nomadnet' + '.' + 'net.au';

	if( typeof( subject) == 'undefined')
		subject = '';

	if( subject.length != 0)
		subject = '?subject=' + subject;

	var dot = / dot /g;
	domain = domain.replace( dot,'.');

	var retval = 'mailto:' + accountName + '@' + domain + subject;

	//alert( retval);
	window.location = retval;
}






function pageWidth()
{
	return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ?       document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;
}


function pageHeight()
{
	return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;
}


function getLeftSide( width)
{
	var retval = ( pageWidth() - width) / 2;
	
	if( window.screenY)
		retval += window.screenX;
		
	else if( window.screenLeft)
		retval += window.screenLeft;

	
	if( retval < 0)
		retval = 0;
	
	return retval;
}


function getTopSide( heigth)
{
	var retval = (pageHeight() - heigth) / 2;
	
	if( window.screenY)
		retval += window.screenY;
		
	else if( window.screenTop)
		retval += window.screenTop;
	
	if( retval < 0)
		retval = 0;
	
	return retval;
}

