javascript code for checking forms, rewrote all the phps to use inner templates
from the upgraded template machine

Signed-off-by: Fabian Jeschko <fabian.jeschko@students.uibk.ac.at>