Hello sorry to ask you noob questions like this but this is only way i can learn i never do nothing before with java or coding i Am very new in this kind of thing.

I using this script for GEO Country redirection



<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>


<script language="JavaScript">

var country= geoip_country_code();

if(country == "US")
{
<!--
window.location = "http:USTRAFFIC"
//-->
}

else
{
<!--
window.location = "http:OTHER"
//-->
}

</script>

what i like to do is have not only US traffic but also CA,GB,AU ..i try to edit this but i fail every time i don't know how to change codes..

What i really need is this ..on second site i use this referrer redirection its ok but..what i need is to send this traffic randomly on multiple URL's not just one is that possible ? or even put this two codes to work on one site that US,CA,GB traffic will be send to Random URL's from specific referral like twitter

<script>
var user_ref = document.referrer || '';

if (user_ref != '' && user_ref.indexOf('REFERRER.com') > -1) {
document.location.href = 'http://USTRAFFIC.com';
}
</script>

Thank you for your time and any help you can give me. Edi