2 <script src=
"http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA8BIRg00HxcZfMmKWER2WexQ7LC3C_fx_Q1GpOIvzsAGy10bYSxQFXmk4ZqzwBhTQIoqAotMqipvIMQ" type=
"text/javascript"></script>
4 <script type=
"text/javascript">
8 function initialize() {
9 geocoder
= new GClientGeocoder();
12 function populateBizInfo(form
) {
14 var loc
= geocoder
.getLatLng(
21 document
.getElementById("lat").value
= point
.lat();
22 document
.getElementById("lon").value
= point
.lng();
30 <body onload=
"initialize()" onunload=
"GUnload()">
31 <form action=
"/add_biz" method=
"POST">
32 Business Name:
<input type=
"text" name=
"name"><br />
33 Business Address:
<input type=
"text" name=
"address"><br />
35 Monday:
<input type=
"text" name=
"monday_start"> <input type=
"text" name=
"monday_end"><br />
36 Tuesday:
<input type=
"text" name=
"tuesday_start"> <input type=
"text" name=
"tuesday_end"><br />
37 Wednesday:
<input type=
"text" name=
"wednesday_start"> <input type=
"text" name=
"wednesday_end"><br />
38 Thursday:
<input type=
"text" name=
"thursday_start"> <input type=
"text" name=
"thursday_end"><br />
39 Friday:
<input type=
"text" name=
"friday_start"> <input type=
"text" name=
"friday_end"><br />
40 Saturday:
<input type=
"text" name=
"saturday_start"> <input type=
"text" name=
"saturday_end"><br />
41 Sunday:
<input type=
"text" name=
"sunday_start"> <input type=
"text" name=
"sunday_end"><br />
42 Description:
<input type=
"text" name=
"description">
43 Tag:
<input type=
"text" name=
"tags">
44 <input type=
"hidden" id=
"lat" name=
"lat">
45 <input type=
"hidden" id=
"lon" name=
"lon">
46 <input type=
"button" value=
"Add Business" onclick=
"populateBizInfo(this.form)">