<!--
function xlink(url) {
window.open(url,"_blank")
}
function logoffHtml() {
window.open("/ServerHttp?&c=1&cmd=14","_blank","top=0,left=0,width=10,height=10,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
}
function pagePrint(data) {
document.forms['printform'].data.value=data;
document.forms['printform'].submit();
}
function pagePrint2(data) {
document.forms['printform'].data.value=data;
document.forms['printform'].cmd.value="1";
document.forms['printform'].submit();
}
function viewInfo(id) {
window.open("/infobox.jsp?infoId="+id,"_blank","width=500,height=234,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
} 
function viewProfileName(name,from) { 
window.open("/Profile?cmd=214&nick="+name+"&from="+from,"cS2profile");
}
function VP(id,from,newWindow) {
window.open("/Profile?cmd=14&id="+id+"&from="+from,newWindow?"_blank":"S2profile");
}
function viewDiary(id,from) {
window.open("/Message?cmd=60&id="+id+"&from="+from,"S2profile");
} 
function goUrl(inURL) {
document.location.href=inURL; 
}
function resetGo() {
goStarted = false;
}
function oCount(c) {
document.getElementById("menuOnlineCount").innerHTML= c;
}
function soundAlert() {

	if (document.all) document.getElementById("mailSound").src="/s/a1.wav";

}
function viewLuck() { 
window.open("/Profile?r=1283957694898&cmd=314&from=0","S2profile");
}
function viewProfile(id,from) { 
if (id=="") return;
window.open("/Profile?r=1283957694898&cmd=14&id="+id+"&from="+from,"S2profile");
} 
function doVote(voteId) {
window.open("/vote.jsp?voteId="+voteId,"_blank","width=500,height=400,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
} 
function mailC(c) {
document.getElementById("menuMailCount").innerHTML= c;
c2 = c.substring(2,c.length-1);
if (document.title.indexOf("|") >0) {
	document.title = document.title.substring(0,document.title.indexOf("|")-1);
}
document.title = document.title + " | Indbakke: "+c2;
}
function gbC(c) {
document.getElementById("menuGBCount").innerHTML= c;
c2 = c.substring(2,c.length-1);
if (document.title.indexOf("|") >0) {
	document.title = document.title.substring(0,document.title.indexOf("|")-1);
}
document.title = document.title + " | Gæstebog: "+c2;

}
function goMain2(in2) {
	if (isDeactivated)
		if (in2==3 || in2==7 || in2==11 || in2==12 || in2==13) {
			msgAlert(2);
			return;
		}
	if (!isIn)
		if (in2==3 ||in2==7 || in2==11 || in2==12 || in2==13) {
			msgAlert(1);
			return;
		}
	if (!goStarted) {
		goStarted = true;
		var inUrl = "";
		if (in2 == 3) inUrl = '/chat.jsp';
		else if (in2 == 4) inUrl = '/Message?cmd=100';
		else if (isIn && in2 == 7) inUrl = '/shop.jsp?menuId=116';
		else if (isIn && in2 == 11)	inUrl = '/Search?cmd=0';
		else if (isIn && in2 == 12)	inUrl = '/Games?cmd=0';
		else if (isIn && in2 == 13)	inUrl = '/Search?cmd=500&gen=0';
		document.location.href=inUrl; 
		setTimeout('resetGo();',1000);
	}
}
function doS(f) {
	f1=f[f.selectedIndex].value;
	if (isDeactivated && f1!=10 && f1!=11) {
		msgAlert(2);
		return;
	} else
	if (f1==1) { viewGb(ownProfileId,0);
	} else
	if (f1==2) { goUrl("/Message?cmd=90");
	} else
	if (f1==3) { goUrl("/Search?cmd=30");
	} else
	if (f1==4) { goUrl("/Search?cmd=52");
	} else
	if (f1==5) { goUrl("/Search?cmd=5");
	} else
	if (f1==6) { goUrl("/Message?cmd=20&menuId=600");
	} else
	if (f1==7) { viewProfile(ownProfileId,0);
	} else
	if (f1==8) { viewOwnDiary();
	} else
	if (f1==9) { goUrl("/Search?cmd=700");
	} else
	if (f1==10) { viewInfo(55);
	} else
	if (f1==11) { goUrl("/info.jsp?menuId=18");
	} else
	if (f1==12) { goUrl("/Message?cmd=20&menuId=614");
	} 
	f.selectedIndex=0;
	f.blur();
}
function viewOwnProfile() { 
viewProfile(ownProfileId,0);
}
function viewOwnDiary() {
viewDiary(ownProfileId,0);
}

function clickIE(){
if (document.all){ ("");return false;}
}
function clickNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {("");return false;}}
}
function norightclick() {
if (true) {
if (document.layers){ document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else {
document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
}
}
function bookmarkPage(obj) {
	if (document.all) {
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage('http://www.love.dk');
	} else {
		alert("Tryk <CTRL> + D, efter du har klikket OK til denne besked.");
	}
}
function showMsg(source,n){
msgW = 442;
document.getElementById("messageSpan").innerHTML = "<iframe height=190 style='border:0px' SCROLLING=NO frameborder=0 width="+msgW+" src='"+source+"?r=1283957694898&"+n+"'/><br/><br/>";
document.getElementById("messageSpan").style.display="block";
document.getElementById("messageSpan2").style.display="block";
window.focus();
}
function hideMsg(){
document.getElementById("messageSpan").style.display="none";
document.getElementById("messageSpan2").style.display="none";	
}
function openM() {
document.location.href = "/Message?cmd=90";
}
function sendSmile() {
window.open("/sendtip.jsp?pid=","_blank","width=500,height=270,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes");
}

function flashActive() {
var hasFlash = false;
if (navigator.plugins && navigator.plugins.length) {
var plugin = navigator.plugins['Shockwave Flash'];
if (plugin) {
hasFlash = true;
}
if (navigator.plugins['Shockwave Flash 2.0']) {
hasFlash = true;
}
} else if (navigator.mimeTypes && navigator.mimeTypes.length) {
var mimeType = navigator.mimeTypes['application/x-shockwave-flash'];
hasFlash = mimeType && mimeType.enabledPlugin;
} else {
try {
var ax = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.7');
hasFlash = true;
} catch (e) {
try {
var ax = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
hasFlash = true;
} catch (e) {
try {
// Try the default activeX
var ax = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
hasFlash = true;
} catch (e) {
// No flash
}
}
}
}
return hasFlash;
}
-->