// <A HREF="" onClick='k("kod"); return false;'>...</A>
// Minimalistiskt fönster med fasta mått.

// Tipsa - t(), t2(), t3()	--	t() och t2() är identiska
function m(kod,url) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tip.cgi?url="+url+"&t="+kod;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=475");
}
function t(kod,url) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tips.cgi?url="+url+"&t="+kod;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=475");
}
function t2(kod,url) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tips.cgi?url="+url+"&t="+kod;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=475");
}
function t3(kod,url,hash) {
	if (url.indexOf('#') > -1) {
//alert("orig-url:"+url);
//alert("(" + url.indexOf('#') + " - Trunc!)");
		url = url.substring(0,url.indexOf('#'));
	}
//alert("t3-kod:" + kod)
//alert("t3-url:" + url)
//alert("t3-hash:" + hash)
	var anrop = "/cgi-bin/tips.cgi?url="+url+"&hash="+hash+"&t="+kod;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=475");
}

function t(kod,url) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tips.cgi?url="+url+"&t="+kod;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=475");
}

// Kommentera - c(), k(), k2()
function c(kod) {
	window.open("/cgi-bin/comment.cgi?k="+kod,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=450");
}
function k(kod) {
	window.open("/cgi-bin/kommentar.cgi?k="+kod,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=450");
}
function k2(kod) {
	window.open("/cgi-bin/kommentar.cgi?k="+kod,"","location=0,resizable=no,status=1,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=500,height=450");
}

// Betyg - b()
function b(url,betyg) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tyck.cgi?p="+url+"&r="+betyg;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=400,height=200");
}
function b3(url,hash,betyg) {
	if (url.indexOf('#') > -1) { url = url.substring(0,url.indexOf('#')) }
	var anrop = "/cgi-bin/tyck.cgi?p="+url+"&h="+hash+"&r="+betyg;
	window.open(anrop,"","location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width=400,height=200");
}


// Minimalistiskt fönster med angivna mått
function w(url,width,height) {
	window.open(url,'','location=0,resizable=no,status=0,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=0,left=0,top=0,width='+width+',height='+height);
}


