function kunEngang(jada) {
	if (document.all || document.getElementById) {
		for (i = 0; i < jada.length; i++) {
			var tempo = jada.elements[i];
			if (tempo.type.toLowerCase() == "submit" || tempo.type.toLowerCase() == "reset")
			tempo.disabled = true;
		}
		return true;
	}
}


function disable(davs){
	document.form1.city1.disabled = davs;
	document.form1.city2.disabled = !davs;
}

function sletok(sletURL) {
  if (confirm("Are you sure you want to delete ?")) {
    document.location = sletURL;
  } 
// ellers ingen ting..
}

function sletok2() {
  if (confirm("Are you sure you want to delete ?"))
    return true;
    else
    return false;
}

var urlvinduet=window;
function nytvinduet(url,name,w,h,extra){ 
	str="height="+h+",width="+w+","+extra; 
	str+=",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/3)+",scrollbars=no,resizable=no"; 
	urlvinduet=window.open(url,name,str); 
}

function admin(url){
	nytvinduet(url,'easytime','400','300','10');
}

function admin2(url){
	nytvinduet(url,'newvindue','400','300','10');
}

function tfilm(url){
	nytvinduet(url,'easytime','640','480','10');
}

function edit(url){
	nytvinduet(url,'easytime','540','700','10');
}

function copyr(url){
	nytvinduet(url,'easytime','400','500','10');
}



function rednclose(url)
{
parent.opener.location = url;
window.close();
}

function reloadnclose()
{
parent.opener.location.reload(true);
window.close();
}