function testAlert(name, o) {
	var str = '';
	var cont = '';
	if ((o instanceof Array) || (o instanceof Object)) {
		
		for (prop in o) {
			var v = '';

			try {
				v = o[prop];
			} catch (e) {
				v = '**' + e.message + '**';
			}
			str += prop + ': ' + v + '\r\n';

			if (str.match(/[^\n]*\n[^\n]*/gi).length > 25) {
				alert(name + ': ' + cont + '\r\n\r\n' + str);
				str = '';
				cont = '(continued...)';
			}
		}

		if(cont==''){
			alert(str);
		}
	}else{
		alert(o);
	}
}


function testConsole(msg){
	// firebug-befehl
	if ( typeof( window[ 'console' ] ) != "undefined" ) {
		console.log(msg);
	}
}
