

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//  Original:  Ronnie T. Moore, Editor -
//  Web Site:  The JavaScript Source -

timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=20,top=20,height=" + (HEIGHT+0) + ",width=" + (WIDTH+0) + ",location=no," 
+ "scrollbars=no,menubars=no,toolbars=no,resizable=yes"

text = "<html><head><title>www.antiquaria.se</title></head><body topmargin='0' leftmargin='0' bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><input type='button' value='stäng' name='close' onClick='window.close()' style=position:absolute;right:10px;bottom:10px;padding:1px;font-family:verdana;font-size:9px;><img height='100%' src='" + URL + "'>";

if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text += "</center></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function show(id)
{
if (document.layers)
document.layers[id].visibility = "show"
else if (document.all)
document.all[id].style.visibility = "visible"
}


function hide(id)
{
if (document.layers)
document.layers[id].visibility = "hide"
else if (document.all)
document.all[id].style.visibility = "hidden"
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function resetShoppingBasket() {

	index = document.cookie.indexOf("TheBasket");

	document.cookie="TheBasket=.";

//	self.location = "welcome.html";//MATTES EGEN KOD

//	window.parent.foot.location.reload(true); //MATTES EGEN KOD
}

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

