function showmenu(item) {
		document.all(item).style.visibility="visible"
		}
	
function hidemenu(item) {
		document.all(item).style.visibility="hidden"
		}


function gomenu(form)	{
		window.parent.location.href
		}

function Start(page) {
			OpenWin = this.open(page, "Udskriv", "width=600, height=350, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=yes");
			}

function Start2(page) {
	 		OpenWin = this.open(page, "Udskriv", "width=800, height=600, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=yes");
  		}

function doIt(_v) {
	  window.parent.location.href = _v;
		}

function check(form) {
	if(form.navn.value == "") {
		alert ("Udfyld venligst dit navn :-)")
		return false
		}

if(form.email.value == "") {
		alert ("Udfyld venligst din e-mail adresse :-)")
		return false
		}

	return true
}

function popup(url, title, width, height) {	
	myLeft = (screen.availWidth - width) / 2;
	myTop = (screen.availHeight - height) / 2;
	
	window.open(url,'subWindow','height='+height+',width='+width+',top='+myTop+',screenY='+myTop+',left='+myLeft+',screenX='+myLeft+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no')
	}
	
function validering()
  {
  error = 0;

  placering=0;
  tekst=(document.forms[0].email.value).toLowerCase();
  placering=tekst.indexOf("@");
  if(tekst ==""){
    alert ("Der skal stå en e-mail adresse i tekstfeltet");
    error = 1;
  }
  else{
    tegn=tekst.indexOf(" ");
    if(tegn!=-1){
      alert ("Der må ikke være mellemrum i adressen");
      error = 1;
    }
    else{
      if (tekst.indexOf("æ")!=-1 || tekst.indexOf("ø")!=-1 || tekst.indexOf("å")!=-1 ||
        tekst.indexOf("Æ")!=-1 || tekst.indexOf("Ø")!=-1 || tekst.indexOf("Å")!=-1 ||
        tekst.indexOf(";")!=-1 || tekst.indexOf(",")!=-1){
        alert ("Der er ugyldige tegnsæt i din e-mail adresse. Må ikke indeholde: æ ø å Æ Ø Å , ;");
        error = 1;
      }
    else{
      if (placering<1 || tekst.length<=(placering+1)){
        alert ("e-mail adressen er forkert - forsøg igen");
        error = 1;
      }
    }
  }
}
if(error == 0)
document.forms[0].submit();	
}

function swap(target, fname) {
	document[target].src = "images/" + fname;
}
	
