function changeCountry(intCountry) {
	var nos = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19);
    var countries = new Array('','au','nz','uk','us');
    var total_count=nos.length;
    var total_countries=countries.length;
    var i=0;
    //intCountry = cEle.options[cEle.selectedIndex].value;
    //for(i=1;i<total_countries;i++){
        //document.getElementById(countries[i].toUpperCase()).src = "images/icn_flag_"+countries[i]+"_"+(intCountry==i?'on':'off')+".gif";
   //}
   for(i=0;i<total_count;i++){
        for(j=1;j<total_countries;j++){
          if(document.getElementById(countries[j]+nos[i]))
              document.getElementById(countries[j]+nos[i]).style.display = (intCountry==j?'block':'none')
        }
   }
   return(false);
}

function priceCountry(intCountry) {
var nos = new Array(2,3,4,5,6,7,8,9,10,11,12);
    var countries = new Array('','au','nz','uk','us');
    var total_count=nos.length;
    var total_countries=countries.length;
    var i=0;
    for(i=0;i<total_count;i++){
        for(j=1;j<total_countries;j++){
          document.getElementById(countries[j]+nos[i]).style.display = (intCountry==j?'block':'none')
        }
   }
   return(false);
}

function countrySelect(t){
  var nm ='countrySelectIn';
  var disp = document.getElementById(nm).style.display;
  var focusId = '';
  try{
	   /*	var allInputs = document.getElementsByTagName('INPUT');
		if(allInputs && allInputs.length && typeof(allInputs.length)!='undefined')
			for(var no=0;no<allInputs.length;no++){
				if(!allInputs[no].onkeyup)allInputs[no].onfocus = closeSrDD(t);
			}
		var allSelects = document.getElementsByTagName('SELECT');

		if(allSelects && allSelects.length && typeof(allSelects.length)!='undefined')
			for(var no=0;no<allSelects.length;no++){
				allSelects[no].onfocus = closeSrDD(t);
			} */
	}catch(err){}
  if(disp=='none')
    document.getElementById(nm).style.display = '';
  else
    document.getElementById(nm).style.display = 'none';
  focusId = 'countrySelectDD';
 // document.getElementById(focusId).selectedIndex=0;
  document.getElementById(focusId).focus();
}

function closeSrDD(t){
  var o = document.getElementById('countrySelectDD');
  document.getElementById('countrySelectIn').style.display = 'none';
  if(t == 'c' && document.getElementById('countrySelectDisplay').innerHTML!=o.options[o.selectedIndex].text){
      document.getElementById('countrySelectDisplay').innerHTML = o.options[o.selectedIndex].text;
      changeCountry(o.options[o.selectedIndex].value);
  }
  //if(t!=o.options[o.selectedIndex].text)changeCountry(=o.options[o.selectedIndex].value);
}
