String.prototype.ncr2c = function( ) {
	return this
		.replace( /&#x([\da-f]{2,4});/gi,
		function( $0, $1 ) { return String.fromCharCode( "0x" + $1 ) } )
}

String.prototype.c2ncr = function( ) {
	return this	.ncr2c( ).replace( /./g,
		function( $0 ) { return "&#x" + $0.charCodeAt( ).toString( 16 ) + ";" } )
}


function getinfo(acrshort, acrlong) {
	acs1 = '<a href="';
	acs2 = '">';
	acs3 = "</a>";
	wert0 = "&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;";
	wert1 = acrshort.c2ncr();
	wert2 = "&#x40;";
	wert3 = "&#x73;&#x74;&#x61;&#x64;&#x74;&#x77;&#x65;&#x72;&#x6b;&#x65;&#x2d;&#x6c;&#x65;&#x6d;&#x67;&#x6f;&#x2e;&#x64;&#x65;";
	if(acrlong == "0") {
		var xretwert = acs1 + wert0 + wert1 + wert2 + wert3 + acs2 + wert1 + wert2 + wert3 + acs3;
	} else {
		var xretwert = acs1 + wert0 + wert1 + wert2 + wert3 + acs2 + acrlong + acs3;
	}
	return xretwert;
}

function getinfokommnetz(acrshort, acrlong) {
	acs1 = '<a href="';
	acs2 = '">';
	acs3 = "</a>";
	wert0 = "&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;";
	wert1 = acrshort.c2ncr();
	wert2 = "&#x40;";
	wert3 = "&#x6b;&#x6f;&#x6d;&#x6d;&#x6e;&#x65;&#x74;&#x7a;&#x2e;&#x64;&#x65;";
	if(acrlong == "0") {
		var xretwert = acs1 + wert0 + wert1 + wert2 + wert3 + acs2 + wert1 + wert2 + wert3 + acs3;
	} else {
		var xretwert = acs1 + wert0 + wert1 + wert2 + wert3 + acs2 + acrlong + acs3;
	}
	return xretwert;
}

