Started porting popup functions.

Signed-off-by: Alexander Kastius <alexander.kastius@student.hpi.uni-potsdam.de>
Fixed Conflicts:
	wwwroot/inc/template.php

Signed-off-by: Alexander Kastius <alexander.kastius@student.hpi.uni-potsdam.de>