<!--
//
function checksForm()
	{
	if (manuscript.primaryEmail.value.length == 0)
		{
		alert("Primary Email address is a required field");
		manuscript.primaryEmail.focus();
		return false;
		}
	if (manuscript.mid.value.length != 8)
		{
		alert("Original Submission id must be 8 digits");
		manuscript.mid.focus();
		return false;
		}
	return true;
	}
//
//
function checkForm()
	{
	if (manuscript.Author_firstName.value.length == 0)
		{
		alert("Authors first name is a required field");
		manuscript.Author_firstName.focus();
		return false;
		}
	if (manuscript.Author_lastName.value.length == 0)
		{
		alert("Authors last name is a required field");
		manuscript.Author_lastName.focus();
		return false;
		}
	if (manuscript.coAuthorCount.value)
		x = manuscript.coAuthorCount.value;
	else
		x = 0;
	for (xx=0; xx<x; xx++)
		{
		if (manuscript.coAuthor_firstName1.value.length == 0)
			{
			alert("Co Authors first name is a required field");
			manuscript.coAuthor_firstName1.focus();
			return false;
			}
		if (manuscript.coAuthor_lastName1.value.length == 0)
			{
			alert("Co Authors last name is a required field");
			manuscript.coAuthor_lastName1.focus();
			return false;
			}
		}
	if (manuscript.primaryEmail.value.length == 0)
		{
		alert("Primary Email address is a required field");
		manuscript.primaryEmail.focus();
		return false;
		}
	if (manuscript.primaryPhone.value.length < 10)
		{
		alert("Primary Telephone must be at least 10 digits");
		manuscript.primaryPhone.focus();
		return false;
		}
	if (manuscript.primaryCo.value.length == 0)
		{
		alert("Primary Institution is a required field");
		manuscript.primaryCo.focus();
		return false;
		}
	if (manuscript.primaryStreet.value.length == 0)
		{
		alert("Primary Street address is a required field");
		manuscript.primaryStreet.focus();
		return false;
		}
	if (manuscript.primaryCity.value.length == 0)
		{
		alert("Primary City address is a required field");
		manuscript.primaryCity.focus();
		return false;
		}
	if (manuscript.primaryState.value.length == 0)
		{
		alert("Primary State address is a required field");
		manuscript.primaryState.focus();
		return false;
		}
	if (manuscript.primaryZip.value.length < 5)
		{
		alert("Primary Zip Code must be at least 5 digits");
		manuscript.primaryZip.focus();
		return false;
		}
	if (manuscript.primaryCountry.value.length == 0)
		{
		alert("Primary Country address is a required field");
		manuscript.primaryCountry.focus();
		return false;
		}
	if (manuscript.title.value.length == 0)
		{
		alert("Manuscript Title is a required field");
		manuscript.title.focus();
		return false;
		}
	if (manuscript.fileName.value.length == 0)
		{
		alert("Manuscript file name is a required field");
		manuscript.fileName.focus();
		return false;
		}
	if (manuscript.resubmit.value == 1 && manuscript.mid.value.length != 8)
		{
		alert("Original Submission id must be 8 digits");
		manuscript.mid.focus();
		return false;
		}
	if (manuscript.otherSubmit.value == 1)
		{
		alert("Thank you for your submission. Unfortunately, the editors are unable to consider your submission for inclusion in the journal because you indicated that it is currently being considered for inclusion by another journal. In the future, you may resubmit your work if it is no longer being considered for inclusion by any other journals.  Thank you.");
		manuscript.otherSubmit.focus();
		return false;
		}
	return true;
	}
//
//
function checkCount()
	{
	if (manuscript.coAuthorCount.value >= 0 && manuscript.coAuthorCount.value <= 10)
		{
		for (x=1; x<=10; x++)
			{
			if (x <= manuscript.coAuthorCount.value)
				document.getElementById("coAuthor"+x).style.visibility = 'visible';
			else
				document.getElementById("coAuthor"+x).style.visibility = 'hidden';
			}
		if (manuscript.coAuthorCount.value > 0)
			manuscript.coAuthor_firstName1.focus();
		else
			manuscript.primaryEmail.focus();
		return true;
		}
	manuscript.coAuthorCount.value = 0;
	return false;
	}
//
//
//
function changeOwner(ownerid)
	{
	window.location = '?ownerid='+ownerid;
	}
//
//
//
function changeSite(siteID,qString)
	{
//alert(qString);
	window.location = "?siteID="+siteID+"&"+qString;
	}
//
// Check that data has been entered for this field
//		if cnt is set then - length >= cnt
//
function checkReq(ip, cnt)
	{
	if (cnt)
		{
		if (cnt<0)
			{
			if (ip.value.length < (-cnt)) return false;
			}
		else if (ip.value.length != cnt) return false;
		}
	if (ip.value.length == 0)
		return false;
	else
		return true;
	}
//
// Check that the key is alpha numeric
//
function checkAlphaNumeric()
	{
//alert(event.keyCode);
	if ((event.keyCode >= 48 && event.keyCode <= 57)
			||
		(event.keyCode >= 65 && event.keyCode <= 90)
			||
		(event.keyCode >= 97 && event.keyCode <= 122))
		return true;

	return false;
	}
//
// Check that the key is part of a phone #
//		[0-9] or '-'
//
function checkPhone()
	{
	if ((event.keyCode == 45)
			||
		(event.keyCode >= 48) && (event.keyCode <= 57))
		return true;

	return false;
	}
//
// Check that the key is part of a phone #
//		[0-9] or '-'
//
function checkZip()
	{
	if (event.keyCode >= 48 && event.keyCode <= 57)
		return true;

	return false;
	}
//
//
function checkNumeric()
	{
	if (event.keyCode >= 48 && event.keyCode <= 57)
		return true;

	return false;
	}
//
//
-->
