https://www.php-resource.de/forum/php-developer-forum/103855-js-funktion-in-php-umschreiben