function formcheck()
{
	var qty = document.orderForm.quantity.value;
	var customLength = document.orderForm.custom.value.length;
	var os1Length = document.orderForm.os1.value.length;
		
	if (qty < 15)
	{
		alert("Sorry the minimum order is 15 invitations. Please correct and resubmit.");
		return false;
		}
	else if (customLength > 256)
		{
			alert("Sorry too many characters entered in details section. Max characters for this box is 256. Please use the additional form box to add more info or you may contact us to add more details if they still don't fit.")
			document.orderForm.custom.focus();
			return false;
		}
	else if (os1Length > 200)
		{
			alert("Sorry too many characters entered in the additonal details section. Max characters for this box is 200. Please re-edit the text on this box, if they still don't fit, you may email us with any additional details.")
			document.orderForm.os1.focus();
			return false;
		}
	else {
		return true;
		}
}

function formcheck2()
{
	var customLength = document.orderForm2.custom.value.length;
	var os1Length = document.orderForm2.os1.value.length;
		
if (customLength > 256)
		{
			alert("Sorry too many characters entered in details section. Max characters for this box is 256. Please use the additional form box to add more info or you may contact us to add more details if they still don't fit.")
			document.orderForm2.custom.focus();
			return false;
		}
	else if (os1Length > 200)
		{
			alert("Sorry too many characters entered in the additonal details section. Max characters for this box is 200. Please re-edit the text on this box, if they still don't fit, you may email us with any additional details.")
			document.orderForm2.os1.focus();
			return false;
		}
	else {
		return true;
		}
}

var x;

function displayInvite(x)
{
	document.images.invitation.src = "images/invitations/birthday-party-invitations/" + x;
}

function displayInviteShower(x)
{
	document.images.invitation.src = "images/invitations/baby-shower-invitations/" + x;
}

function displayInviteAnnouncement(x)
{
	document.images.invitation.src = "images/invitations/photo-birth-announcements/" + x;
}