// JScript ÀÉ

function Event1()
{
    var x = document.form1.Checkbox1.checked;
    if(x==true)
    {
        document.getElementById("AboutRefund").style.display = "inline";
    }
    else
    {
        document.getElementById("AboutRefund").style.display = "none";
    }
}

var SelectCountry ;

function showListLayer() 
{ 
    SelectCountry = document.all.Country.options[document.all.Country.selectedIndex].value; 
       
        if(document.all)
        {
            document.all.Countryget.innerText = SelectCountry;
            //alert(document.all.Countryget.innerText);
        }
        else
        {
            document.getElementById('Countryget').textContent = SelectCountry;
            //alert(document.getElementById('Countryget').textContent);
        }
} 

function GetShow()
{
	window.open("Instruction.html","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=yes,width=650,height=400");
}

function CodeCheck()
{
    var x,y,z;
      
    if(document.all)
    {
        x = document.all.checkCode.innerText;
        y = document.all.Countryget.innerText;
        //z = document.all.Country.selectedIndex;
    }
    else
    {
        x = document.getElementById('checkCode').textContent;
        y = document.getElementById('Countryget').textContent;
        //z = document.getElementById('Country').selectedIndex;
    }
    
    if(x = null || x == "0" || x == "")
    {
        document.getElementById("DivClaim").style.display = "inline";
    }
    else
    {
        document.getElementById("DivClaim").style.display = "none";
    }
    
    //alert(x);
    
    if(y != "")
    {
       // alert(y);
        if(document.all)
        {
            document.all["Country"].options[document.all["Country"].selectedIndex].text = y;
            //document.all.Country.options[document.all.Country.selectedIndex].value == document.all["Country"].options[document.all["Country"].selectedIndex].text;
            //alert(document.all["Country"].options[document.all["Country"].selectedIndex].text);
        }
        else
        {
            document.getElementById('Country').options[document.getElementById('Country').selectedIndex].text = y;
        }
    }
    else
    {
        if(document.all)
        {
            document.all["Country"].options[document.all["Country"].selectedIndex].text = "Please Select";
            //document.all.Country.options[document.all.Country.selectedIndex].value = "Please Select";
        }
        else
        {
            document.getElementById('Country').options[document.getElementById('Country').selectedIndex].text = "Please Select";
        }
    }
}

function allClose()
{
    for(var x = 1; x <= 13; x++)
    {
        document.getElementById("Radio" + x).checked=false;
    }
    document.getElementById("DivText").style.display="none"; 
}

function Check1()
{
    allClose();
    document.getElementById("Radio1").checked=true;
}

function Check2()
{
    allClose();
    document.getElementById("Radio2").checked=true;
}

function Check3()
{
    allClose();
    document.getElementById("Radio3").checked=true;
}

function Check4()
{
    allClose();
    document.getElementById("Radio4").checked=true;
}

function Check5()
{
    allClose();
    document.getElementById("Radio5").checked=true;
}

function Check6()
{
    allClose();
    document.getElementById("Radio6").checked=true;
}

function Check7()
{
    allClose();
    document.getElementById("Radio7").checked=true;
}

function Check8()
{
    allClose();
    document.getElementById("Radio8").checked=true;
}

function Check9()
{
    allClose();
    document.getElementById("Radio9").checked=true;
}

function Check10()
{
    allClose();
    document.getElementById("Radio10").checked=true;
}

function Check11()
{
    allClose();
    document.getElementById("Radio11").checked=true;
}

function Check12()
{
    allClose();
    document.getElementById("Radio12").checked=true;
    document.getElementById("DivText").style.display="inline";
}

function Check13()
{
    allClose();
    document.getElementById("Radio13").checked=true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
