var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);

//Skift farve ved links
function mOvr(src) {
	var firstChild
	if (IE4)
		src.style.cursor = 'hand';
	else if (NS4)
		src.style.cursor = 'pointer';
	src.bgColor = '#ffffff';
	src.firstChild.style.color = '#9b2426';
}

function mOut(src) {
	src.style.cursor = 'default';
	src.bgColor = '#eeeeee';
	src.firstChild.style.color = '#000000';
}
function mOvrAktiv(src) {
	var firstChild
	if (IE4)
		src.style.cursor = 'hand';
	else if (NS4)
		src.style.cursor = 'pointer';
	src.bgColor = '#ffffff';
	src.firstChild.style.color = '#9b2426';
}

function mOutAktiv(src) {
	src.style.cursor = 'default';
	src.bgColor = '#eeeeee';
	src.firstChild.style.color = '#9b2426';
}

function mOvr1(src) {
	var firstChild
	if (IE4)
		src.style.cursor = 'hand';
	else if (NS4)
		src.style.cursor = 'pointer';
	src.bgColor = '#ffffff';
	src.firstChild.style.color = '#9b2426';
}
function mOut1(src) {
	src.style.cursor = 'default';
	src.bgColor = '#e6e6e6';
	src.firstChild.style.color = '#000000';
}
function mOvr1Aktiv(src) {
	var firstChild
	if (IE4)
		src.style.cursor = 'hand';
	else if (NS4)
		src.style.cursor = 'pointer';
	src.bgColor = '#ffffff';
	src.firstChild.style.color = '#9b2426';
}
function mOut1Aktiv(src) {
	src.style.cursor = 'default';
	src.bgColor = '#e6e6e6';
	src.firstChild.style.color = '#9b2426';
}
//Vores farveboks på produkt og modelside. Check at farve er valgt
function checkCheckBox(f) {
 if (f.farve.value == "" ) {
  alert('Du skal vælge en farve!');
  return false;
 }
 else
 if (f.storrelse.value == "" ) {
  alert('Du skal vælge en størrelse!');
  return false;
 }
 else
 if (f.broen.value == "" ) {
  alert('Du skal vælge en værdi for broen!');
  return false;
 }
 else
 if (f.staenger.value == "" ) {
  alert('Du skal vælge en en værdi for stænger!');
  return false;
 }
 else
return true;
}