window.onload = function () {
	copy();
}
var created = 2007;
var year;
var yr=new Date()
var year=yr.getYear()
	if (year < 1000)
		year+=1900;
function copy() {
	if (year > created) {
		document.getElementById('copyright').innerHTML = "© "+created+" - "+year+" Goldstar Mortgages";
	}
	return;
}
function checkCallback() {
	if (document.callback.name.value == "") {
		alert("Please enter your name")
		document.callback.name.focus()
		return;}
		validtel = /[0-9\-()]{8,}$/i;
		strtel = document.callback.num.value;
	if (strtel.search(validtel) == -1) {
		alert("Please enter a valid phone number")
		document.callback.num.select()
		return;
	}
	document.callback.submit();
}

function checkForm() {
	if (document.contact.nme.value == "") {
		alert("Please enter your name")
		document.contact.nme.focus()
		return;}
		valid = /^[^@]+@[^@]+.[a-z]{2,}$/i;
		stremail = document.contact.email.value;
	if (stremail.search(valid) == -1) {
		alert("Please enter a valid email address")
		document.contact.email.focus()
		return;}
	if (document.contact.msg.value == "") {
		alert("Please enter your message")
		document.contact.msg.focus()
		return;
	}
	document.contact.submit();
}
