<!--
function winpop(win)
{
	bakom=window.open(win, "bakom", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=540,height=400");
	bakom.focus();
}

function barnen(win)
{
	bakom=window.open(win, "bakom", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=750,height=550");
	bakom.focus();
}

function custompop(win, width, height, status, menu)
{
	bakom=window.open(win, 'bakom', 'toolbar=no,location=no,directories=no,status=' + status +  ',menubar=' + menu + ',scrollbars=yes,resizable=yes,copyhistory=no,width=' + width + ',height=' + height);
	bakom.focus();
}

function lockedCat() {
	alert("Du behöver vara inloggad för att se denna informationen");
}

function clearField (field, defaultValue) { 
    if (field.value == defaultValue) 
        field.value = ''; 
} 

function popup (url, name, width, height, status, menu, resizable) {
	var prop = 'toolbar=no,location=no,directories=no,scrollbars=yes,copyhistory=no,';
	prop += 'status='+ (status ? 'yes' : 'no') +',';
	prop += 'resizable='+ (resizable ? resizable : 'yes') +',';
	prop += 'menu='+ (menu ? 'yes' : 'no') +',';
	prop += 'width='+ (width ? width : 500) +',';
	prop += 'height='+ (height ? height : 400);

	var win = window.open(typeof(url) == 'string' ? url : url.href, name, prop);

	win.focus();
	
	return false;
}

function visa(id) { 
	if(document.getElementById) {
		var obj = document.getElementById(id);
	} 
	else { 
    	if(document.all){
			var obj = document.all(id);
		} 
    	if(obj.style.display == 'none'){
			obj.style.display = '';
		} 
    	else {
			obj.style.display = 'none';
		} 
	}
} 
//-->
