function spamcheck(text) 
{
var where = document.getElementById(text);

	if (where.value.indexOf('href')>=0 || where.value.indexOf('URL')>=0) {
	where.style.background='#DCA0A0'
	document.getElementById('error').innerHTML="If you use href or URL the form will not be submitted, please use http://www.example.com/ link text| and I will manually create the link. This is for spam prevention, sorry for the inconvenience."
	}

	else if (where.value.indexOf('viagra')>=0 || where.value.indexOf('cialis')>=0 || where.value.indexOf('fuck')>=0) {
	where.style.background='#DCA0A0'
	document.getElementById('error').innerHTML="You have used a word commonly found in spam messages, so your message will be treated as such and not processed."
	}

	else {
	where.style.background='#BAC6DB'
	document.getElementById('error').innerHTML=""
	}
}