



function popUpPrintPage(URL) {
	props=window.open(URL, 'print', 'toolbars=1, scrollbars=1, location=0, statusbars=1, menubars=1, resizable=0, width=609, height=450 left = 100, top = 100');
}


var bredd = 0;

function visa(asd)
{
   
	document.getElementById(asd).style.visibility = "visible";

}

function gom(asd)
{
   
	document.getElementById(asd).style.visibility = "hidden";

}

//funktion med checkruta när man ska deleta artiklar
function check(id)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/editarticle.php?action=delete&id=" + id;
	}

}

//funktion med checkruta när man ska deleta sidor
function checkpage(id)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/editpages.php?action=delete&id=" + id;
	}

}
//funktion med checkruta när man ska deleta sidor
function checkproduct(id)
{
	if (confirm("Are you sure , you want to delete this product?"))
	{
		window.location = "php/editproducts.php?action=delete&id=" + id;
	}

}
//funktion med checkruta när man ska deleta kategori
function checkcategory(id)
{
	if (confirm("Are you sure , you want to delete this category?"))
	{
		window.location = "php/editcategories.php?action=delete&id=" + id;
	}

}
//funktion med checkruta när man ska deleta kategori1
function checkcategory1(id)
{
	if (confirm("Are you sure , you want to delete this category?"))
	{
		window.location = "php/editcategories.php?action=delete1&id=" + id;
	}

}

//funktion med checkruta när man ska deleta bilder
function check_pic(id)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/picarchive.php?admin=pics&action=delete_pic&id=" + id;
	}

}

//funktion med checkruta när man ska deleta bilder_kategorier
function check_pic_cat(id)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/picarchive.php?action=delete_cat&id=" + id;
	}

}
//funktion med checkruta när man ska deleta bilder
function check_pic2(id, page, cat)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/picarchive.php?action=delete&id=" + id + "&page=" + page + "&cat=" + cat;
	}

}
//funktion med checkruta när man ska deleta filer
function checkfiles(id, page, cat)
{
	if (confirm("Är du säker på att du vill ta bort objektet?"))
	{
		window.location = "php/editfiles.php?action=delete&id=" + id + "&page=" + page + "&cat=" + cat;
	}

}
