function MM_over(id, color)
{
	document.getElementById('td_'+id).style.backgroundColor = '#'+color;		
	document.getElementById('td_'+id).style.borderColor = '#'+color;
}
function MM_out(id)
{
	document.getElementById('td_'+id).style.backgroundColor = '#D7D7D7';	
	document.getElementById('td_'+id).style.borderBottomColor = '#B3B3B0';
	document.getElementById('td_'+id).style.borderRightColor = '#B3B3B0';
	document.getElementById('td_'+id).style.borderLeftColor = '#E7E7E3';
	document.getElementById('td_'+id).style.borderTopColor = '#E7E7E3';	
}
function makeSure(txt) {
	var answer = confirm(txt);
	if (answer == true) {
		return true;
	} 
	else {
		return false;
	}
}
function shop_accept()
{
	
	if(document.getElementById('shop_ok').checked == true)
	{
		document.getElementById('shop_next').disabled = false;
	}
	else
	{
		document.getElementById('shop_next').disabled = true;
	}
}
function confirm_delete() 
{
  is_ok = confirm('Du er ved at slette, er det ok?');
  if(is_ok == true) {
    return true;
  } 
  else {
    return false;
  }
}
function popImageviewer(img) {

	newWin = window.open("","ResizeBillede","top=100,left=100,width=300,height=200,status=no,toolbar=no");

	txt = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'
			+ '<ht'+'ml>'
			+ '<he'+'ad>'
			+ '	<tit'+'le>Vis billede</tit'+'le>'
			+ '<scr'+'ipt>'
			+ 'function resPic() {'
			+ '		h=document.images[0].height; w=document.images[0].scrollWidth;'
			+ '		window.resizeTo(w+6,h+67);'
			+ '}'
			+ '</scr'+'ipt>'
			+ '</he'+'ad>'
			+ '<bo'+'dy style="overflow:hidden;border:0px;margin:0px">'
			+ '<table width="100%" cellpadding="0" cellspacing="0" border="0">'
			+ '		<tr>'
			+ '			<td id="topTD" height="20" bgcolor="white" onmouseout="style.backgroundColor=\'white\'" onmouseover="style.backgroundColor=\'#A0A0A4\'" onclick="javascript:window.close();" style="cursor:pointer;" align="center"><strong style="font-size:8pt;font-family:tahoma;">Luk vindue</strong></td>'
			+ '		</tr>'
			+ '		<tr>'
			+ '			<td height="1" bgcolor="black"></td>'
			+ '		</tr>'
			+ '		<tr>'
			+ '			<td><img src="'+img+'" style="top:0px;left:0px;border:0px;" onload="resPic();"></td>'
			+ '		</tr>'
			+ '</table>'
			+ '</bo'+'dy>'
			+ '</ht'+'ml>';

      newWin.document.write(txt);
      newWin.document.close();	
}