var re = /^(\.php)|(\.sh)|(\.js)/;  // disallow shell scripts and php
function check_types() {
	with(document.forms[0])
	{
		for(i=0 ; i < elements.length ; i++)
		{
			if(elements[i].value.match(re))
			{
				alert('Sorry, ' + elements[i].value + ' is not allowed');
				return false;
			}
		}
	}
	return true;
}