added zone array and modulated some functions
zonification added
Separating PHP from Javascript