20130509 home combine

updated the alertDivInit to create dialog dynamically
updated 90% templates data post function to use the new method, except
those complicated data post