<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs 
			title="Show SVY21 Coordinates" 
			description="SVY21 is a Transverse Mercator projection (with a WGS84 datum) commonly used in Singapore. Thie mapplet will display and locate SVY21 easting, northing coordinates on Google Maps."
			author="dominoc925.blogspot.com"
			author_email="dominicchinguard-web@yahoo.com"
			author_affiliation="dominoc925.blogspot.com"
			screenshot="http://dominoc925-pages.appspot.com/mapplets/cs_svy21_mapplet-screenshot.png"
			thumbnail="http://dominoc925-pages.appspot.com/mapplets/cs_svy21_mapplet-thumbnail.png"
			height="800" scrolling="true">
<Require feature="sharedmap"/>
</ModulePrefs>
<Content type="html"><![CDATA[

<script type="text/javascript" >

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('d K=Y 2H();d B;d 2I=Y 2J();d I=Y 1W(1.2G,1X.2F);K.2C(2D);K.1N(I,11);2E.2K(K,"2L",h(2R,I){d 1r,o;d k,P;k=I.y;P=I.x;d u=1Y(k,P,3);o=O(k,6)+\',\'+O(P,6);l(B){K.22(B)}B=Y 23(I);K.20(B);1T(u);B.1Z(1G(u,o))});h 1T(u){d 1h;1h=1R(\'1h\');1h.a=u};h 1G(u,o){d 1r;1r="<b>2S 2T</b>:<1U>2Q,2P(m):"+u+"<1U>2M,2B(U):"+o;i 1r};h 1O(a){d 1S=(a.2O(/^\\s+|\\s+$/g,\'\').1P>0)?2U:2z;i 1S};h 2v(){d u,E,N,k,P,1i,1m,I,o;u=1R(\'1h\').a;l(1O(u)){1i=u.1V(\',\');l(1i.1P==2){E=1i[0];N=1i[1];l(!1Q(E)&&!1Q(N)){1m=26(E,N,5).1V(\',\');k=1m[0];P=1m[1];o=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(j);a=7.1f(1.0-a*a);i 1b/a}h 2h(j){d a,e;e=p;a=1.0-e*e*7.c(7.G(j),2);a=7.c(a,3.0/2.0);i 1b*(1.0-e*e)/a}h 2f(j){d a,r;r=1s();a=r*7.1j(j);i a*a}h 2d(){d a;a=1.0-7.1f(1.0-7.c(p,2));i a/(1.0+7.1f(1.0-7.c(p,2)))}h 1M(2k){d a,1a;1a=1q(R(1x));i(1a+(2k-1w)/1l)}h 2i(1g){d a,e;e=p;a=1b*(1.0-(e*e/4.0)-(3.0*7.c(e,4)/2t.0)-(5.0*7.c(e,6)/1v.0));i 1g/a}h 2o(L,w){d a;a=L+((3.0*w/2.0)-27.0*w*w/32.0)*7.G(2.0*L);a=a+((21.0*w*w/16.0)-2W.0*7.c(w,4.0)/32.0)*7.G(4.0*L);a=a+(3c.0*7.c(w,3)/3d.0)*7.G(6.0*L);a=a+(2A.0*7.c(w,4)/2y.0)*7.G(8.0*L);i a}',62,203,'|||||||Math|||value||pow|var||latRad||function|return|lat1|lat|if||60|LL|ELLIPSOID_ECCENTRICITY|C1|e2|||EN||e1|||easting||mark||||northing|sin|T1|point|lngRad|map|u1|||roundNumber|lng|lon|CnvDegToRad|||deg|LatSS|LatDD|String|new|LonSS|||else|floor|latLngFormat|||100||LonDD|M0|ELLIPSOID_SEMIMAJORAXIS|LatMM|tan|LonMM|sqrt|M1|txtEN|arrEN|cos|ret|PROJ_SCALEFACTOR|arrLL|round|ENFormat|v1|calc_M|szhtml|SecondEccentricity|PROJ_FALSEEASTINGS|term1|256|PROJ_FALSENORTHINGS|PROJ_NATURALORIGINLATITUDE|CnvRadToDeg|term4|p1|term2|45|term3|dec|PROJ_NATURALORIGINLONGITUDE|balloonText|58|120|lngDeg|720|61|calc_M1|setCenter|not_empty|length|isNaN|_gel|re|displayReadout|br|split|GLatLng|103|CnvLL2EN|openInfoWindow|addOverlay||removeOverlay|GMarker||latDeg|CnvEN2LL|||result|calc_v|calc_C|calc_T|calc_e1|1024|calc_c1|calc_v1|calc_p1|calc_u1|calc_T1|north|num|mm|ss|calc_lat1|PI|rad|calc_A|dd|64|180|locatePosition|6378137|3072|512|false|1097|Lng|setMapType|G_DEFAULT_MAP_TYPES|GEvent|8263|3629|GMap2|bounds|GLatLngBounds|addListener|click|Lat|0818191908426215|replace|Northing|Easting|marker|SVY21|Coordinates|true|3600|55|90|CnvDMS2Deg|572|298|ELLIPSOID_FLATTENING||330|252||72|600|38744|36666666666667|CnvDeg2DMS|00335281066474746|151|96|833333333333|28001|642'.split('|'),0,{}))

</script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Show SVY21 Coordinates</title>

<style>
body {
	background-color:white;
	font-family:Arial, Helvetica, sans-serif;
	color: black;	
	font-size: small;
}

h1 td, h1, h2, h3, h4, h5, h6, small { font-family: arial,sans-serif; }

txtStatus {
	color:#FF0000;
	font-size:xx-small;
}

div.footer {
	text-align:left; 
	font-size: smaller;
	color: #6f6f6f; 
	padding: 3pt;
}
</style>

</head>

<body>
This mapplet is deprecated. Please visit this <a href="http://dominoc925-pages.appspot.com/mapplets/cs_svy21.html">link</a> for the new version. 
<div><p>
<script type="text/javascript"><!--
google_ad_client = "pub-6982797440045696";
/* SgStoresMapplet 234x60, created 6/16/08 */
google_ad_slot = "9974587622";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</p>
</div>


<div id="divLocate">
	<p>Easting, northing:<br />
	  <input type="text" id="txtEN" size="40" onclick="this.select();" />
	  <br />
      <input type="button" id="btnLocate" value="Locate" onclick="javascript:locatePosition();" />
  </p>
</div>
<div id="divStatus">
  <textarea name="txtStatus" cols="40" rows="5" readonly="readonly" style="color:#999999" id="txtStatus" >Click a point on the map. Or type in a SVY21 easting and northing coordinate e.g. 10000.00,20000.00 in the text box above and click the Locate button</textarea>
</div>
<div>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
sc_project=3795228; 
sc_invisible=1; 
sc_partition=40; 
sc_security="9d7c8089"; 
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c41.statcounter.com/3795228/0/9d7c8089/1/" alt="counter create hit" ></a></div></noscript>
<!-- End of StatCounter Code -->
</div>

<hr />


<div class="footer">
&copy; 2010 Version 1.0.0. <a href="http://dominoc.reachby.com">dominoc925.blogspot.com</a>.</div>

<div><p>
<script type="text/javascript"><!--
google_ad_client = "pub-6982797440045696";
/* SgStoresMapplet 234x60, created 6/16/08 */
google_ad_slot = "9974587622";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</p>
</div>

</body>
</html>





]]></Content>
</Module>