Create am2a.php

Functions