var URL = window.location.href;
var vStartBase = URL.indexOf("reviews/");
var vEndBase = URL.indexOf("/index.html");
var vPWD = URL.substring(vStartBase,vEndBase);
//start google map
    function load() {
	if (GBrowserIsCompatible()) {
		var point = (new GLatLng(vFSLat,vFSLon));
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.setCenter(new GLatLng(vFSLat,vFSLon), 13);
		map.addOverlay(new GMarker(point));
      }
    }
//end google map	
function doToStoreInfo(){
	document.write('<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 WIDTH="100%"><TR><TD CLASS="border"><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%"><TR VALIGN=TOP><TD CLASS="body" ALIGN=CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=6 WIDTH="100%"><TR VALIGN=TOP><TD CLASS="txt">');
}

function doToReviews(vPWD){
	document.write('<BR>&nbsp;<BR><A HREF="' + vPWD + '/index.html#reviews">Read All Reviews</A><BR><A HREF="' + vPWD + '/index.html#writeareview">Write a Review Below</A><br><a href="mailto:info@fishstorereview.com?subject=problem&body=%0A%0A%0A%0Aurl:' + vPWD + '">Report a problem with this listing</a></TD><TD ALIGN=RIGHT><div id="map" style="width: 350px; height: 250px"></div></TD></TR></TABLE><table border=0 cellpadding=0 cellspacing=6 width="100%"><tr><td class="border"><img src="/x.gif" width=1 height=1 border=0></td></tr></table><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=6 WIDTH="100%"><TR VALIGN=TOP><TD CLASS="txt"><A NAME="reviews"></A><B>Reviews</B></TD></TR></TABLE>');
}

function doToForm(vPWD){
	document.write('<table border=0 cellpadding=0 cellspacing=6 width="100%"><tr><td class="border"><img src="/x.gif" width=1 height=1 border=0></td></tr></table><A NAME="writeareview"></A><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=6 WIDTH=400><TR><TD CLASS="txt" ALIGN=CENTER COLSPAN=2><B>Submit Your Review</B> (<A HREF=javascript:fPopper("/reviews/popup.html","450","450")>tips, disclaimer, privacy policy</A>)</TD></TR>');
}

function doForm(vPWD){
document.write('<TR><form method=POST action="/reviews/wwwboard.pl"><INPUT TYPE=hidden NAME="basedir" VALUE="/home/ammiles/fishstorereview.com/' + vPWD + '"><INPUT TYPE=hidden NAME="baseurl" VALUE="http://www.fishstorereview.com/' + vPWD + '"><TD CLASS="txt" NOWRAP>Rating:</TD><TD><SELECT name="subject"><OPTION>select one...<OPTION VALUE="05">half a fish: this store makes me sad!<OPTION VALUE="10">one fish<OPTION VALUE="15">one and a half fish<OPTION VALUE="20">two fish<OPTION VALUE="25">two and a half fish<OPTION VALUE="30">three fish<OPTION VALUE="35">three and a half fish<OPTION VALUE="40">four fish<OPTION VALUE="45">four and a half fish<OPTION VALUE="50">five fish: a piscean paradise!</SELECT></TD></TR><TR VALIGN=TOP><TD CLASS="txt" NOWRAP>Your Review:</TD><TD CLASS="txt"><textarea COLS=40 ROWS=10 name="body"></textarea></TD></TR><TR><TD CLASS="txt" NOWRAP>Your Name:</TD><TD><input type=text name="name" size=40></TD></TR><TR><TD CLASS="txt" NOWRAP>Your Email:</TD><TD><input type=text name="email" size=40></TD></TR><TR><TD CLASS="txt" ALIGN=CENTER COLSPAN=2>&nbsp;<BR><input type=submit value="Submit Your Review"><BR>&nbsp;<br><!--<span style="font-size:6pt;color:#e9e9e9">' + vPWD + '</span>--></TD></FORM></TR></TABLE>');
//	document.write('<tr><td><b>Water change!</b> Review submission is temporarily disabled due to technical maintenance. Please try again in 48 hours or so.</td></tr></table>');
}

function doToClose(){
	document.write('</TABLE></TD></TR></TABLE>');
}
