/**
* OpenPHPNuke: Great Web Portal System
*
* Copyright (c) 2001-2010 by
* Heinz Hombergs heinz@hhombergs.de
* Stefan Kaletta stefan@kaletta.de
* Alexander Weber xweber@kamelfreunde.de
*
* This program is free software. You can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
* See LICENSE for details.
*
* This software is based on various code found in the internet
* See CREDITS for details
* If you are an author of a part of opn and not you are not mentioned
* SORRY for that ! We respect your rights to your code, so please send
* an eMail to devteam@openphpnuke.com we will include you to the CREDITS asap
*/

function display_result(val) {

	var repr;
	
	repr  = '';
	repr += 'Type: ' + typeof val + "\n";
	repr += 'Value: ';
	if (typeof val == 'object' ||
		typeof val == 'array') {
		repr += '{ ';
		for (var i in val) 
			repr += i + ': ' + val[i] + ', ';
		repr = repr.substr(0, repr.length-2) + ' }';
	} else {
		repr += val;
	}
	alert(repr);
}