/* functions added for adding new communities as drop down */

function writeOptions()
{
	 
	 /* Add community name at the required index in following array.
	    This index must match with the corresponding URL index in changeCommunity() Function below  */
	 var communities=new Array("Africa","North America","Australia","Other"); 
	
	 var curURL=window.location.href;
	 //document.write("<option>Africa&nbsp;</option>");
	 for(i=0;i<communities.length;i++)
	{
	    document.write("<option>"+communities[i]+"</option>");
/*		document.write("<option>"+communities[1]+"</option>");
		document.write("<option>"+communities[2]+"</option>");
		document.write("<option>"+communities[3]+"</option>");*/
	}
	document.getElementById('select_community').selectedIndex=0;
}


function changeCommunity(communityObj)
{
	var w = document.getElementById('select_community').selectedIndex;

/* Add community URL at the required index in following array.
	    This index must match with the corresponding community name index in writeOptions() Function above  */
		
	var communityURL=new Array("http://www.celltrust.com","http://www.celltrust.com.au","http://www.celltrust.com");
	if(w!=-1)
	window.location.href= communityURL[w-1];
}