function checkFeedbackForm() {
	theForm=document.feedbackForm;
	if(theForm.Name.value=="") {
		alert("Please enter your name.");
		theForm.Name.focus();
		return false;
	}
	if(theForm.Email.value=="") {
		alert("Please enter your email address.");
		theForm.Email.focus();
		return false;
	}
	if(theForm.Feedback.value=="") {
		alert("Please enter your feedback.");
		theForm.Feedback.focus();
		return false;
	}
	if(!$("input:radio[name=SoundAdvice]:checked").val()) {
		alert("Do you consider that you receive sound financial or pensions advice?");
		return false;
	}
	if(!$("input:radio[name=ProfessionalManner]:checked").val()) {
		alert("Do our staff deal with you in a professional manner?");
		return false;
	}
	if(!$("input:radio[name=CommunicateOften]:checked").val()) {
		alert("Do we communicate often enough?");
		return false;
	}
	if(!$("input:radio[name=PleasedWithManagement]:checked").val()) {
		alert("Are you pleased with the management of your investments?");
		return false;
	}
	if(!$("input:radio[name=SatisfiedWithService]:checked").val()) {
		alert("Overall are you satisfied with the service you receive?");
		return false;
	}
	if(!$("input:radio[name=RecommendArgent]:checked").val()) {
		alert("Would you recommend Argent to colleagues or relatives?");
		return false;
	}
	theForm.submit();
}

function checkNewsletterForm() {
	theForm=document.newsletterForm;
	if(theForm.cd_TITLE.value=="") {
		alert("Please enter your title.");
		theForm.cd_TITLE.focus();
		return false;
	}
	if(theForm.cd_FIRSTNAME.value=="") {
		alert("Please enter your first name.");
		theForm.cd_FIRSTNAME.focus();
		return false;
	}
	if(theForm.cd_LASTNAME.value=="") {
		alert("Please enter your last name.");
		theForm.cd_LASTNAME.focus();
		return false;
	}
	if(theForm.Email.value=="") {
		alert("Please enter your email address.");
		theForm.Email.focus();
		return false;
	}
	if(!$("input[@name=cd_INVESTMENT-NEWS_radio]:checked").val()) {
		alert("Would you like to receive Inverstment news?")
		return false;
	}
	if(!$("input[@name=cd_PENSIONS-ADVICE_radio]:checked").val()) {
		alert("Would you like to receive Pensions advice?")
		return false;
	}
	theForm.submit();
}

function checkContactFormat() {
	theForm=document.contactForm;
	if(theForm.Title.value=="") {
		alert("Please enter your title.");
		theForm.Title.focus();
		return false;
	}
	if(theForm.FirstName.value=="") {
		alert("Please enter your first name.");
		theForm.FirstName.focus();
		return false;
	}
	if(theForm.LastName.value=="") {
		alert("Please enter your last name.");
		theForm.LastName.focus();
		return false;
	}
	if(theForm.Phone.value=="") {
		alert("Please enter your contact phone number.");
		theForm.Phone.focus();
		return false;
	}
	if(theForm.Email.value=="") {
		alert("Please enter your email address.");
		theForm.Email.focus();
		return false;
	}
	if(theForm.Comments.value=="") {
		alert("Please enter your enquiry.");
		theForm.Comments.focus();
		return false;
	}
	theForm.submit();
}

function checkCommentFormat() {
	theForm=document.commentForm;
	if(theForm.Name.value=="") {
		alert("Please enter your name.");
		theForm.Name.focus();
		return false;
	}
	if(theForm.Email.value=="") {
		alert("Please enter your email address.");
		theForm.Email.focus();
		return false;
	}
	if(theForm.Comments.value=="") {
		alert("Please enter your comment.");
		theForm.Comments.focus();
		return false;
	}
	theForm.submit();
}

function winOpenCenter(url,name,statbar,scroll,locate,resize,xWidth,yWidth)	{
	var adjustedleft = 8//optional
	var adjustedheight = 30//adjust height because of windows taskbar
	var screenwidthremainder = screen.availWidth%2//really not needed, but won't hurt
	var screenheightremainder = screen.availHeight%2
	var screenwidth = screen.availWidth - screenwidthremainder
	var screenheight = screen.availHeight - screenheightremainder
	var winheight = yWidth //set new window height properties
	var winwidth = xWidth //set new window width properties
	var winleft = parseInt(screenwidth/2) - (winwidth/2) - adjustedleft//optional
	var wintop = parseInt(screenheight/2) - (winheight/2) - adjustedheight
	var win = window.open(url,name,'width=' +winwidth+ ',height=' +winheight+',status=' +statbar+',resizable='+resize+',scrollbars='+scroll+',location='+locate+',top='+wintop+',left='+winleft);
	return win;
}

