
//visa datum
function show_date() {
	var days = new Array("S&ouml;ndag", "M&aring;ndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "L&ouml;rdag");
	var months = new Array("Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December");
	var now = new Date();
	day = now.getDay();
	date = now.getDate();
	month = now.getMonth();
	year = now.getYear();
	if (year < 1900) { year += 1900 }
	document.write(days[day] + " den " + date + " " + months[month] + " " + year);
}


function clearText(thefield){
if (thefield.defaultValue==thefield.value) thefield.value = "";
}


// tar bort klickfunktion pŒ alla lŠnkar pŒ en sida
function disable_links(){
	for(var i=0; i < document.links.length;i++) { 
		document.links[i].onclick=function () { return false; }
	} 
	return true; 
}

// funktioner fšr att ta bort markeringen runt klickade lŠnkar
function blured() {
	for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all) {
	document.onmousedown = blured;
}

// funktion fšr att šppna fšnster
function OpenBrWindow(theURL) {
	window.open(theURL,'popwin','scrollbars=yes,toolbar=yes,resizable=yes,width=540,height=500');
}

// funktion fšr att skriva ut akuellt fšnster
function printWindow(){
	bV = parseInt(navigator.appVersion)
	if (bV >= 4) window.print()
}

// funktion fšr att markera allt innehŒll i en textarea
function selectAll(theField) {
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
}