if (window == top) top.location.href = "http://www.inkopslistan.com";

function TJK_noWayBack(){// http://www.MadCoWWWebDesign.com - Thierry Koblentz
 history.go(1);
}
TJK_noWayBack();

//function hidestatus(){
//	window.status=''
//	return true
//}

//if (document.layers)
//document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

//document.onmouseover=hidestatus
//document.onmouseout=hidestatus

function loadLeft(x) {
    parent.frames["leftFrame"].location.href=x;
}

function loadMain(x) {
    parent.frames["mainFrame"].location.href=x;
}

function loadTop(x,y) {
    parent.frames["topFrame"].location.href=x;
	parent.frames["mainFrame"].location.href=y;
}

function skrivut(x){
	popupWin=window.open(x,'Listan','scrollbars=yes, resizable=yes, status=yes, menubar=no, width=975,height=650,left=5,top=5'); 
}
function sidhjalp(z){
	popupWin=window.open(z,'Hjalp','scrollbars=yes, resizable=yes, status=yes, menubar=no, width=540,height=640,left=5,top=5'); 
}
function appendantal()
{
// Tar från första länken på sidan och lägger till värde som finns i antal formuläret
//newuk = document.form1.antal.value.replace(/&/,"")
document.form1.Kommentar.value.replace("&","")
document.links[0].href= document.links[0].href + "&ua=" + document.form1.antal.value + "&uk=" + document.form1.Kommentar.value;
}

function toggleLayer(first,sec)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(first).style;
var style3 = document.getElementById(sec).style;
style2.display = style2.display? "":"none";
style3.display = style3.display? "":"none";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[first].style;
var style3 = document.all[sec].style;
style2.display = style2.display? "":"none";
style3.display = style3.display? "":"none";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[first].style;
var style3 = document.layers[sec].style;
style2.display = style2.display? "":"none";
style3.display = style3.display? "":"none";
}
}

function ShowOneLayer(first)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(first).style;
style2.display = style2.display? "":"none";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[first].style;
style2.display = style2.display? "":"none";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[first].style;
style2.display = style2.display? "":"none";
}
}

function hideMeny(whichLayer,resizeThis)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
var style3 = document.getElementById(resizeThis).style;
style2.display = style2.display? "":"none";
style3.width = style3.width? "":"1160px";
//style2.width = style2.width? "400px":"200px%";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"none";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"none";
}
}
