
function bookmarksite(title,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(title + " - SMCI", "http://www.smcihvac.com"+url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href','http://www.smcihvac.com'+url);
		elem.setAttribute('title',title + ' - SMCI');
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie
		window.external.AddFavorite('http://www.smcihvac.com'+url, title + ' - SMCI');
}

function validate(myForm) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.Email.value)){
	return (true)
	}
	alert("Invalid e-mail address.  Please type your correct e-mail.")
	return (false)
}

function checkEmail(myForm) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
	return (true)
	}
	myForm.email.focus();
	alert("Please enter a valid return e-mail address to proceed.")
	return (false)
}

