function show(num) 
{
    if (num == 'resolutie') {
        resolutie.style.display="block";
	}
    if (num == 'home') {   	
	    frames["ContentFrame"].location.href = 'body1.htm';			
	}
    if (num == 'natio') {
        speler.style.display="block";
	internationaal.style.display="none";
	}
    if (num == 'inter') {
        speler.style.display="none";
	internationaal.style.display="block";
 	frames["ContentFrame"].location.href = '/int/index.asp';
//        open.window("/int/index.asp");
	}
    if  (num == 'medailles') {
	    frames["ContentFrame"].location.href = 'scripts/medailles_xml.aspx';
	}
    if  (num == 'caps') {
  	    frames["ContentFrame"].location.href = 'scripts/caps_xml.aspx';
	}
    if  (num == 'champions') {
  	    frames["ContentFrame"].location.href = 'scripts/champions_xml.aspx';
	}

    if (num == 'hoe') {
        speler.style.display="none";
	internationaal.style.display="none";
	frames["ContentFrame"].location.href = 'info.htm';
	}

}
			
function msg(txt) {
	top.status = txt;
	return true;
}

function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;

    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;

    var newstr = string.substring(0,i) + by;

    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);

    return newstr;
}

function openResult() 
{
var control = document.forms["formSpeler"].keuze;
var temp = "iets";

if (control.options[control.selectedIndex].value != ' ') {
   temp = "player_info_xml.aspx?Id=" + control.options[control.selectedIndex].value + "&CatId=13";
   frames["ContentFrame"].location.href = temp;
   }
}

function openResult2() 
{
var control = document.forms["form1"].DropDownList1;
var control2 = document.forms["form1"].DropDownList2;
var temp = "iets";

if (control.options[control.selectedIndex].value != ' ') {
   temp = "scripts/country_info_xml.aspx?Id=" + control.options[control.selectedIndex].value + "&Name=" + control.options[control.selectedIndex].text;
   temp = replace(temp,' ','%20');
   control2.options.selectedIndex = 0;
   //temp = 'body1.htm';
   frames["ContentFrame"].location.href = temp;
   }
}

function openResult3() 
{
var control = document.forms["form1"].DropDownList2;
var control2 = document.forms["form1"].DropDownList1;
var temp = "iets";
if (control.options[control.selectedIndex].value != ' ') {
   temp = "scripts/wk_info_xml.aspx?Jaar=" + control.options[control.selectedIndex].value;
   control2.options.selectedIndex = 0;
   frames["ContentFrame"].location.href = temp;
   }
}

function changelang(lang) 
{
  parent.top.location.href = "default.aspx?lang=" + lang;

}
function IMG1_onclick() {
  changelang('dutch')
}

function IMG2_onclick() {
  changelang('english')
}

function IMG3_onclick() {
  changelang('french')
}

