//  Vanliga popuper som används på de flesta sidorna
function popup()
{
	window.open('/popup/modem.html','Godkända Modem','width=425,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}
function popupHelp()
{
	window.open('/popup/help/abuse.jsp','help','width=400,height=400,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}

function popupModem()
{
	window.open('/popup/modem.html','Godkända Modem','width=425,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}

function popupMG()
{
	window.open('/tjanster/telefoni/pop/minsida.jsp','villkor','width=300,height=200,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}

// Allänna villkor

function popUp(doc)  
{ 	
	win=window.open(doc,'_blank','width=330,height=400,resizable=1,scrollbars=1,menubar=0');
}
	
function popView(doc)  
{ 	
	win=window.open(doc,'_blank','width=500,height=400,resizable=1,scrollbars=1,menubar=0');
}

function popHelp(doc)  
{ 	
	win=window.open(doc,'_blank','width=400,height=450,resizable=0,scrollbars=1,menubar=0');
}

function popModem(doc)  
{ 	
	win=window.open(doc,'_blank','width=490,height=550,resizable=0,scrollbars=1,menubar=0');
}

function popWin(doc)  
{ 	
	win=window.open(doc,'_blank','width=400,height=550,resizable=0,scrollbars=1,menubar=0');
}

function popTavling(doc)  
{ 	
	win=window.open(doc,'_blank','width=450,height=600,resizable=0,scrollbars=1,menubar=0');
}


function popPrint(doc)  
{ 	
	win=window.open(doc,'_blank','width=630,height=550,resizable=0,scrollbars=1,menubar=0');
}

function popLeverans(doc)  
{
	window.open(doc,'_blank','width=680,height=525,resizable=0,scrollbars=0,menubar=0');
}



function newWindow(page,x,y,resize,scroll,menu,name) 
{
	if (navigator.userAgent.indexOf("MSIE")==-1) 
	{
		if (resize) 
		{
			var a = "yes"; 
		}
		else 
		{
			var a = "no"; 
		}
		if (scroll) 
		{
			var b = "1"; 
		}
		else 
		{
			var b = "0"; 
		}
		if (menu) 
		{
			var menu = ",menubar"; 
		}
		else 
		{
			var menu = ""; 
		}
		var abc=window.open('', name,'resizable='+ a +',status=no,scrollbars='+ b +',toolbar=no,location=no,width=' + x + ',height=' + y + menu);
		var abc=window.open(page ,name);
	}
	else 
	{
		if (resize) 
		{
			var a = "resizable"; 
		}
		else 
		{
			var a = ""; 
		}
		if (scroll) 
		{
			var b = "yes"; 
		}
		else
		{

			var b = "no"; 
		}
		if (menu) 
		{
			var menu = ",menubar=yes"; 
		}
		else 
		{
			var menu = ""; 
		}
		var abc=window.open(page ,name,'toolbar=no,status=no,location=no, '+ a +', scrollbars='+ b +' ,width=' + x + ',height=' + y + menu); 
	}
}