//<![CDATA[
var hd = document.getElementById('hd');

        var img1 = document.getElementById('imgcontactus1');
		var img2 = document.getElementById('imgcontactus2');

        if (hd.value!='')
        {
        img1.src='/images/flags/' + hd.value;
		img2.src='/images/flags/' + hd.value;

        }
    else
        {
        img1.src='/images/flags/us.gif';
		img2.src='/images/flags/us.gif';

        }
        searchCountryName();
		searchCountryNameheader();




function searchCountryName()
{
	//debugger;
    var input=geoip_country_name();
    input = input.toUpperCase()
    var output=document.getElementById('ddlCountrycontactus').options;
    for(var i=0;i<output.length;i++) {
    if(output[i].text.indexOf(input)==0)
        {
        output[i].selected=true;
        }
    if(geoip_country_name()==''){
      output[0].selected=true;
      }
    }
}
function searchCountryNameheader()
{
	//debugger;
    var input=geoip_country_name();
    input = input.toUpperCase()
    var output=document.getElementById('ddlCountrycontactusheader').options;
    for(var i=0;i<output.length;i++) {
    if(output[i].text.indexOf(input)==0)
        {
        output[i].selected=true;
        }
    if(geoip_country_name()==''){
      output[0].selected=true;
      }
    }
}

function IntegerValidation(obj)
    {
        var numcheck = /^\d*$/
       // var numcheck10 = /^\d{10}$/
        if(numcheck.test(obj))
        {
           return true;
        }
        else
        {
            return false;
        }
     }

  //]]>
