function viewImage(location,width,height,scrollbars,resizable)
{
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	
	if (height > screenHeight - 80)
		height = screenHeight - 80;
		
	if (width > screenWidth - 80)
		width = screenWidth - 80;
	
	var loc = location;
	var winLeft = (screen.width - width) / 2;
	var winTop = (screen.height - height) / 2;
	
	var options = "width="+width+",height="+height+",left="+winLeft+",top="+winTop;
	if (scrollbars)
		options+=",scrollbars=yes";
	if (resizable)
		options+=",resizable=yes";
	
	winpops=window.open(loc,"",options);
}

function viewFFStoreImage(imageid,width,height)
{
	var loc = "http://www.funnctional.com/funnstore/app?service=image/" + imageid;
	viewImage(loc,width,height,false,false);
}

function submitLink(form, elementId) { form._linkSubmit.value = elementId; if (form.onsubmit == null || form.onsubmit()) form.submit(); }