function checkContact() {
	theForm = document.ContactUsForm;
	for (i=0;i<theForm.elements.length;i++) {
		if (theForm.elements[i].value) {
			theForm.elements[i].value = theForm.elements[i].value.replace(/\'/gi,'`');
		}
	}

	if (AssessAll(theForm.fname,"09","Please enter your first name") == false) return false;
	if (AssessAll(theForm.lname,"09","Please enter your last name") == false) return false;
	if (AssessAll(theForm.email,"15","Please enter your email address") == false) return false;
	if (AssessAll(theForm.subject,"09", "Please enter a subject") == false) return false;
	if (AssessAll(theForm.notes,"09", "Please enter your comments") == false) return false;

	theForm.subject.value = "Website Enquiry: "+theForm.subject.value;

	theForm.url.value="http://www.proost.com.au/index.php?page=viewStory&title=Thank+You+For+Contacting+Us";
	return true;
}


function NewsLetterFormCheckIt() {
	if (document.NewsLetterForm.email){
		if (AssessAll(document.NewsLetterForm.email,"15","Please enter your email address") == false) return false;
	} else {
		alert('You have not supplied an email input field');
		return false;
	}
	return true;
}

function searchBy(subcat) {
	eval('document.searchform01.searchString').value = subcat;
	eval('document.searchform01').submit();
}

function CurrencyConvert(url)
{ 
	CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0=0,menubar=0,scrollbars=0,resizable=1,height=170,width=600');
	CurrencyWindow.focus();
	CurrencyWindow.location.href = url;
}

function formclassicPopupWindow(url, width, height)
{ 
	formclassicPopup = window.open ('', 'formclassicPopup', 'toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=1,width='+width+',height='+height);
	formclassicPopup.focus();
	formclassicPopup.location.href = url;
}