function get_win_props(thewidth,theheight)
{
	theprops = '';
	if(screen.width)
	{
		theprops = 'left=' + (screen.width - thewidth) / 2;
		theprops = theprops + ', top=' + (screen.height - theheight) / 2;
		theprops = theprops + ', ';		
	}
	theprops = theprops + 'width='+thewidth+',height='+theheight+',resizable=yes,menubar=yes,scrollbars=yes';
	return theprops;
}

function open_demo()
{
	theLIWindow = open("products.html", "liWin", get_win_props(770,500));
	theLIWindow.focus();
}	

function ad1(theURL, properties)
{
  var desktop = window.open( theURL, "ad1", properties+"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes" );
}

function alertDemoMessage(){
         alert("IMPORTANT NOTICE\nPlease note that you are entering a 'LIVE' environment and a few actions have been disabled due to this being only a demonstration of our applications.\n\nIf you wish to view a full version without any restrictions please contact sales@sur.co.uk. Thank you for your time.");
}

if (document.images) {
}
function StatusMsg(msgStr)
{
  status=msgStr;
}
