function submitForm(intPgNum, intID, strCollection, strImageNumber)
{
if (intID != 0)
	{
	document.frmImages.action = "image.asp?ID=" + intID + "&Collection=" + strCollection + "&ImageNumber=" + strImageNumber;
	}

document.frmImages.hidePgNum.value = intPgNum;
document.frmImages.submit();
}