function setLanguage( inForm, lang) {
	docRef = document.location.href;
	var chkLg = ( docRef.indexOf( 'lang=') > 0) ? true : false;
	var chkQm = ( docRef.indexOf( '?') > 0) ? true : false;
	var chkBm = ( docRef.indexOf( '#') > 0) ? true : false;
	if ( chkLg) {
		docRef = docRef.substring( 0, docRef.indexOf( 'lang=')+5) +lang +docRef.substring( docRef.indexOf( 'lang=')+7, docRef.length)
		}
	else 	if ( chkQm) {
		docRef = docRef.replace( /\?/, '?lang=' +lang +'&')
		}
	else if ( chkBm) {
		docRef = docRef.replace( /\#/, 'lang=' +lang +'#');
		}
	else {
		docRef = docRef +'?lang=' +lang;
		}
	if ( chkBm) {
		var bookmark = docRef.substring( docRef.indexOf( '#')+1, docRef.length);
		docRef = docRef.replace( /\#/, '&bookmark=' +bookmark +'#')
		}
	document.location.href = docRef;
	}

function pkUpdate( formName, fieldName) {
	document.location.href = pageDocScript +'?pkJob=juster&vNavn=' +fieldName +'&antal=' +formName.fieldName.value;
	}

function setCookie( cName, cValue, cExpires) {
	if ( !cExpires) {
		cExpires = new Date();
		cExpires.setDate( cExpires.getDate()+1);
		}
	document.cookie = cName +"=" +escape( cValue) +"; expires=" +cExpires.toGMTString() +"; path=/";
	}

function getCookie( cName) {
	var cOut = "";
	var dCook = document.cookie +';';
	var cIndex = dCook.indexOf( cName +'=');
	var lIndex = (cIndex <= dCook.lastIndexOf( ";")) ? dCook.indexOf(";", cIndex) :  dCook.length;
	if ( cIndex>=0 ) {
		cOut = dCook.substring( dCook.indexOf("=", cIndex)+1, lIndex);
		}
	return unescape( cOut);
	}

function delCookie( cName) {
	cExpires = new Date();
	cExpires.setDate( cExpires.getDate()-1);
	document.cookie = cName +"=; expires=" +cExpires.toGMTString() +"; path=/";
	}

function fjernAlt() {
	if (confirm('Ønsker du at tømme indkøbskurven helt?')) {
		wLoc = window.location.href;
		if ( wLoc.indexOf( '?') > 0) {
			window.location.href = wLoc +'&pkJob=fjernalt';
			}
		else {
			window.location.href = wLoc +'?pkJob=fjernalt';
			}
		}
	}

function winUp( inText) {
	var html = '';
	html += '<html>\n';
	html += '<head>\n';
	html += '<title>Info</title>\n</head>\n';
	html += '<style type="text/css">body, p, td, input { font-size: 11px;	font-family:\'Arial\',sans-serif; } </style>\n';
	html += '<scr' +'ipt type="text/javascript">\n';
	html += 'function enterSubmit( e) {\n';
	html += '	var keycode = 0;\n';
	html += '	if (window.event) {\n';
	html += '		keycode = window.event.keyCode;\n';
	html += '		}\n';
	html += '	else if (e) { \n';
	html += '		keycode = e.which;\n';
	html += '		}\n';
	html += '	if (keycode == 13)\n';
	html += '		{\n';
	html += '		window.close();\n';
	html += '		}\n';
	html += '	}\n';
	html += 'var knapTimer = setInterval( \'enterSubmit()\',2000)\n';
	html += '</scr' +'ipt>\n';
	html += '</head>\n';
	html += '<body onLoad="document.infoForm.infoKnap.focus()" onUnLoad="clearTimeout( knapTimer)">\n<form name="infoForm">\n<div align="center">\n';
	html += inText.replace(/\n/g,'<br />\n') +'\n';
	html += '<p><input type="button" name="infoKnap"  value="Ok - luk infoboks" onClick="window.close();" onBlur="this.focus();" /></p>\n';
	html += '</div>\n</form>\n</body>\n';
	html += '</html>\n';
	winInfo = window.open( '', 'Info', 'width=330,height=20,left=400,top=330');
	winInfo.document.open();
	winInfo.document.write( html);
	winInfo.document.close();
	winInfo.focus();
	}


function combiShared_SetCookie( cName, cValue, cExpires) {
	if ( !cExpires) {
		cExpires = new Date();
		cExpires.setDate( cExpires.getDate()+90);
		}
	document.cookie = cName +"=" +escape( cValue) +"; expires=" +cExpires.toGMTString() +"; path=/";
	}

function combiShared_GetCookie( cName) {
	var cOut = "";
	var dCook = document.cookie +';';
	var cIndex = dCook.indexOf( cName +'=');
	var lIndex = (cIndex <= dCook.lastIndexOf( ";")) ? dCook.indexOf(";", cIndex) :  dCook.length;
	if ( cIndex>=0 ) {
		cOut = dCook.substring( dCook.indexOf("=", cIndex)+1, lIndex);
		}
	return unescape( cOut);
	}

function combiShared_DelCookie( cName) {
	cExpires = new Date();
	cExpires.setDate( cExpires.getDate()-1);
	document.cookie = cName +"=; expires=" +cExpires.toGMTString() +"; path=/";
	}

function cryptmail( inMail) {
	top.location.href = 'mailto:' +inMail.replace(/\_\#\_/,'@');
	}

function scriptmail( inMail) {
	top.location.href = 'mailto:' +inMail.replace(/\_\#\_/,'@');
	}


