//  Säker E-post-->
function epost(user, domain, suffix){ document.write(user + '@' + domain + '.' + suffix); }
function VisaDok(k) { props=window.open('./popups/popup_dok.php?k=' + k,'Dokumentation', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=440, height=500 left = 5, top = 5');}
function VisaKap(id) { props=window.open('./popups/popup_kap.php?id=' + id,'Dokumentation', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=340, height=350 left = 5, top = 5');}
function VisaEXIF(id) { props=window.open('./popups/popup_exif.php?id=' + id,'EXIF', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=440, height=500 left = 5, top = 5'); }
function VisaEnkat(id) { props=window.open('./popups/popup_enkat.php?id=' + id,'Enkät', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=450 left = 5, top = 5');}
function VisaProdukt(id) { props=window.open('./popups/popup_produkt.php?id=' + id,'Produkt', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=450 left = 5, top = 5');}
function VisaKoposalj(id) { props=window.open('./popups/popup_koposalj.php?id=' + id,'Produkt', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=450 left = 5, top = 5');}
function VisaBildpool(id) { props=window.open('./popups/popup_bildpool.php?id=' + id,'Bildpool', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=450 left = 5, top = 5');}
function SkickaMeddelande(id) { props=window.open('./popups/popup_meddelande.php?id=' + id,'Meddelande', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=320, height=270 left = 5, top = 5');}
function ForumInlagg(id,inlid) { props=window.open('./popups/popup_forum.php?id=' + id + '&inlid=' + inlid,'Foruminlägg', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=320, height=370 left = 5, top = 5');}

function toggle_id(id)
{
	if(id.style.display=="none")
	{ 
		id.style.display=""; 
	} else 
	{ 
		id.style.display="none";	
	}
}
function toggletwo_id(id,id2)
{
	if(id.style.display=="none")
	{ 
		id.style.display=""; 
		id2.style.display="none";
	} else 
	{ 
		id.style.display="none";
		id2.style.display=""; 	
	}
}
function togglethree_id(id,id2,id3)
{
	if(id.style.display=="none")
	{ 
		id.style.display=""; 
		id2.style.display="none";
		id3.style.display="";
	} else 
	{ 
		id.style.display="none";
		id2.style.display=""; 
		id3.style.display="none";	
	}
}
function close_id(id) {	id.style.display="none"; }
function open_id(id) {id.style.display=""; }
function checkbox_select_all(FormName, Name, CheckValue)
{
	var objCheckBoxes = document.forms[FormName].elements[Name];
	var countCheckBoxes = objCheckBoxes.length;
	for(var i = 0; i < countCheckBoxes; i++)
	{	
		if (CheckValue == '1') 
		{
			objCheckBoxes[i].checked = true;
		} 
		else 
		{
			objCheckBoxes[i].checked = false;
		}
	}
}
function close_menu(header_id,sub_id) 
{	
	sub_id.style.display="none"; 
	header_id.bgColor='';
}
function open_menu(header_id,sub_id) 
{
	sub_id.style.display=""; 
	header_id.bgColor='#DDDDDD';
}
