//       Define the location of count.asp
//     Using a path, you may use this code in any subfolder
       var file='/statestik/count.asp';
//     var file='http://www.fedeskur.dk/statcountex/count.asp';
       var d=new Date();
       var s=d.getSeconds();
       var m=d.getMinutes();
       var x=s*m;
       f='' + escape(document.referrer);
       if (navigator.appName=='Netscape'){b='NS';}
       if (navigator.appName=='Microsoft Internet Explorer'){b='MSIE';}
       if (navigator.appVersion.indexOf('MSIE 3')>0) {b='MSIE';}
       u='' + escape(document.URL); w=screen.width; h=screen.height;
       v=navigator.appName;
       fs = window.screen.fontSmoothingEnabled;
       if (v != 'Netscape') {c=screen.colorDepth;}
       else {c=screen.pixelDepth;}
       j=navigator.javaEnabled();
       info='w=' + w + '&h=' + h + '&c=' + c + '&r=' + f + '&u='+ u + '&fs=' + fs + '&b=' + b + '&x=' + x;
	
       function counter() 
       {
       document.write(' Krik Marine.<img src="' + file + '?'+info+ '" width=0 height=0 border=0></p>');
       }


MinIE4 = (document.all)? true:false
function keyDown(e) {
	if (MinIE4) 
        if (window.event.shiftKey) {
	if (window.event.ctrlKey) {
        if (window.event.keyCode == 69) //E = Skift mellem Edit mode og normal mode
	location.href = '/source/asp/functions/login.asp?EditMode=Edit&FromUrl=' + self.location.href;
}	
}
}

if (MinIE4) document.onkeydown = keyDown


function callHelpDialog(HelpID) {
	// showModelessDialog("frame.htm",window,"status:false;dialogWidth:300px;dialogHeight:850px");
	HelpPage="/order/showhelp.asp?HelpID=" + HelpID;
	showModalDialog(HelpPage,window,"status:no;help:no;edge:sunken;resizable:yes;dialogWidth:800px;dialogHeight:600px");
}

function callDialog(VareID) {
 VareInfoPage="/order/showimage.asp?VareID=" + VareID;
 showModalDialog(VareInfoPage,window,"status:no;help:no;edge:sunken;resizable:yes;dialogWidth:400px;dialogHeight:300px");
}

// hvis brugeren trykker på Enter, blver det lavet om til et tryk på TAB
function fChkKey(){
	if (event.keyCode == 13 )
	event.keyCode = 9
}

