function backward()
{
	if (which>0)
	{
		which--;
		document.tmpl_img.src = templates[which];
		document.frmHome.full_img_name.value = fulltemplates[which];
	}
}

function forward()
{
	if (which<templates.length-1)
	{
		which++;
		document.tmpl_img.src = templates[which];
		document.frmHome.full_img_name.value = fulltemplates[which];
	}
}

function tmplCategory_Change()
{
	with(document.frmHome)
	{
		action = 'template_gn.php';
		submit();
	}
}