function showbigpicture(filename)
{
	eURL = 'showbig.asp?' + filename;
	Height = 200;
	Width = 200;
	var intX = screen.availHeight / 2 - ( Height / 2) ;
	var intY = screen.availWidth / 2 - ( Width / 2 );
	var strFeatures = 'width=' + Width + ',height=' + Height + ',top=' + intX + ',left=' + intY +',statusbar=no,menubar=no,toolbar=no,resizable=yes,scrollbars=no,hotkeys=no';
	Win1 = window.open( eURL, 'showbigpicture', strFeatures );
}

function PrintThis()
{
	if (document.all)
	{
		document.PrintForm.TheHTML.value = document.all("Main").innerHTML;
	}
	else
	{
		document.PrintForm.TheHTML.value = document.getElementById("Main").innerHTML;
	}
	document.PrintForm.submit();
}

function OpenWindow(URL, Width, Height, Param, Center)
{
	if (URL)
	{
		// setting default values
		if (!Width) Width = 400;
		if (!Height) Height = 300;
		if (!Param) Param = "toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=no, width=" + Width + ", height=" + Height;
		if (!Center || Center==true)
		{
			Param += ", top=";
			Param += (screen.height)?(screen.height-Height)/2:0;
			Param += ", left=";
			Param += (screen.width)?(screen.width-Width)/2:0;
			window.open(URL, "HoldDaHeltFest", Param);
		}
		else
		{
			window.open(URL, "HoldDaHeltFest", Param);
		}
	}
}


function AddToOrder(ID)
{
	if (ID)
	{
		var NewUrl;
		NewUrl = "AddToOrder.asp?ID=" + ID;
		OpenWindow(NewUrl, 400, 150);
	}
}

