//<!--
function check_go(checkName,page,photoID) {
	if (document.getElementById(checkName).value != "") {
		location.href = '/NetBuildPro/process/22/Pressphotographs.html?viewpage=' + page + '&sSelected=' + document.getElementById(checkName).value + '&iPhotoID=' + photoID;
	}
}

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function checkInputValidity () {
	var errors = new String();
		errors = "";
	if (document.emailform.Publication_Name.value == "") {
		errors = errors + "Please provide the publication name\n\n";
	}
	if (document.emailform.Publication_Address.value == "") {
		errors = errors + "Please provide the publication address\n\n";
	}
	if (document.emailform.Date_of_Publication.value == "") {
		errors = errors + "Please provide the date of publication\n\n";
	}
	if (document.emailform.Date_Photographs_Required.value == "") {
		errors = errors + "Please provide the date photographs required\n\n";
	}
	if (document.emailform.Journalist_Name.value == "") {
		errors = errors + "Please provide the journalist / researcher name\n\n";
	}
	if (document.emailform.Telephone_No.value == "") {
		errors = errors + "Please provide your telephone number\n\n";
	}
	if (document.emailform.Email.value == "") {
		errors = errors + "Please provide an email address\n\n";
	} else if (document.emailform.Email.value.indexOf('@', 0) == -1) {
		errors = errors + "Please provide a valid email address\n\n";
	}
	if (!document.emailform.I_Agree.checked) {
		errors = errors + "Please agree to the copyright and credit agreement\n\n";
	}
	if (document.emailform.Agree_Name.value == "") {
		errors = errors + "Please provide person's name who agreed to the copyright and credit agreement\n\n";
	}
	if (errors != "") {
		alert(errors);
		return false;
	}
}

// -->

