function highlight(field)
{
	field.focus();
	field.select();
}

function pop_bild(bildnr,width,height)
{
	newWin = window.open('/bildpop.php?l='+ bildnr+'','bild','width='+ width +',height='+ height +',toolbar=0,menubar=0,location=0,scrollbars=0,resizable=0');
	newWin.focus();
}

/*
	if (document.images[negID].style.display)
		{
		show = (document.images[posID].style.display == 'none') ? 'inline' : 'none';
		document.images[posID].style.display = show;
		show = (document.images[posID].style.display == 'none') ? 'inline' : 'none';
		document.images[negID].style.display = show;
		}
*/
/*
function thebgcolor(which) {
	var thetabell = ('cykeldata' + which);
	
//if (document.getElementById(thetabell).style.background == '')
//	{
		show = (document.getElementById('cykeldata5').style.background == '#d7d7d7') ? '' : '';
		document.getElementById(thetabell).style.background = show;
		show = (document.getElementById(thetabell).style.background == '') ? '#d7d7d7' : '';
		document.getElementById(thetabell).style.background = show;
	
//	}
//	else{
//		show = (document.getElementById(thetabell).style.background == '#d7d7d7') ? '' : '';
//		document.getElementById(thetabell).style.background = show;
//	}

		/*
	if(document.getElementById(thetabell).style.background == '') {
			document.getElementById(thetabell).style.background = '#d7d7d7';
		}
		else{
			document.getElementById(thetabell).style.background = '#d7d7d7';
		}
		*/
//}


/*
function hilite(id) { 
// clear colors 
document.getElementById("cell1").style.backgroundColor = "#fff"; 
document.getElementById("cell1").style.backgroundColor = "#fff"; 
document.getElementById("cell1").style.backgroundColor = "#fff"; 
// highlight selected cell in red 
document.getElementById(id).style.backgroundColor = "red"; 
}

function bgChange(selObj) {
  newColor = selObj.options[selObj.selectedIndex].text;
  document.bgColor = newColor;
  selObj.selectedIndex = -1;
  }
  */
