function goURL(n) {
  window.location = n;
}


function cache(id) {
  if (document.getElementById) {
    document.getElementById(id).style.display="none";
  } else if (document.all) {
    document.all[id].style.display="none";
  } else if (document.layers) {
    document.layers[id].display="none";
  }
}


//-------------------------------------------------

function show(id) {
var d = document.getElementById(id);
	for (var i = 0; i<=50; i++) {
		if (document.getElementById('detail'+i)) {document.getElementById('detail'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}


//-------------------------------------------------

function displayContent(id, count){
	for(var i=1 ; i <= count ; i++){
		document.getElementById("Content" + i).style.display = "none";
	}
		document.getElementById("Content" + id).style.display = "";
}


//-------------------------------------------------

function NoSpam(user,domain){
   locationstring = "mailto:" + user + "@" + domain;
   window.location = locationstring;
}


//-------------------------------------------------

function showExpAdress(idForm){
	var blocExp = document.getElementById('ExpAdress')
	if (document.forms[idForm].SameAdress.checked) {
		blocExp.style.display = 'none';
		document.forms[idForm].SameAdress.value = 0;
	}
	else {
		blocExp.style.display = 'block';
		document.forms[idForm].SameAdress.value = 0;
	}
}
//-------------------------------------------------

function validateRegister(idForm){
	var blocExp = document.getElementById('ExpAdress')
	//if (document.forms[idForm].SameAdress.checked) {
	if (document.forms[idForm].SameAdress.checked != false) {
		return validateOnSubmit6();
	}
	else {
		return validateOnSubmit5();
	}
}
//-------------------------------------------------

function DisplayShow(id) {
  document.getElementById(id).style.display=document.getElementById(id).style.display=="none"?"block":"none";
}
//-------------------------------------------------


function toggle(block) {
	var obj = document.all? document.all[block] : (document.getElementById? document.getElementById(block) : "")
	if ( obj ) {
		if ( obj.style.display == 'none' ) {
			obj.style.display = 'inline';
		}
		else {
			obj.style.display = 'none';
		}
		setCookie('block_'+block, obj.style.display);
	}
}