url redirect according to visitor ip
<p>I want the url redirect according to visitor's ip, and I have the below code, tested but it is always going to AU, all other else if conditions not working, please help and many thanks...</p>

<pre><code>&lt;script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"&gt;&lt;/script&gt;
&lt;script language="Javascript"&gt; 
    var mylocation=geoplugin_countryCode();
    if (mylocation=="AU") {
    window.location.href='http://www.propertyhere.com/Country/AU/search-to-buy'},
    else if (mylocation=="CA") {
    window.location.href='http://www.propertyhere.com/Country/CA/search-to-buy'},
    else if (mylocation=="CN") {
    window.location.href='http://www.propertyhere.com/Country/CN/search-to-buy'},
    else if (mylocation=="NZ") {
    window.location.href='http://www.propertyhere.com/Country/NZ/search-to-buy'},
    else if (mylocation=="RU") {
    window.location.href='http://www.propertyhere.com/Country/RU/search-to-buy'},
    else if (mylocation=="US") {
    window.location.href='http://www.propertyhere.com/Country/US/search-to-buy'},
    else if {
    window.location.href='http://www.propertyhere.com/network'},
&lt;/script&gt;
</code></pre>
