	$(window).load(function() {
        $('#slider').nivoSlider();
    });
	function goToByScroll(id){
	      $('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
	}
	function ErrorCheckFields(){
		var ErrorMessage = new Array();
		var re = /[\w\_\-\.]@[\w\_\-\.]/;
		if( (!document.getElementById("name")) || (document.getElementById("name").value.length<1) ) { ErrorMessage.push("Please enter your Name."); }
		if( (!document.getElementById("email")) || (document.getElementById("email").value.length<1) ) { ErrorMessage.push("Please enter a valid Email."); }
		if( document.getElementById("email") ) {
			var ts = document.getElementById("email").value;
			if( ts.length && (!re.test(ts)) ) { ErrorMessage.push("The text field \"Email:\" requires a valid email address."); }
		}
		if(ErrorMessage.length) { alert(ErrorMessage.join("\n\n")); return false; }
		else { return true; }
	}
	function addtext(order) {
		document.contactform.comment.value = "";
		if (order==1) {
			document.contactform.comment.value += "I'm interested in ordering the Standard Website Package.";
		} else if (order==2) {
			document.contactform.comment.value += "I'm interested in ordering the Premium Website Package.";
		} else {
			document.contactform.comment.value += "I'm interested in ordering the Elementary Website Package.";
		}
	}
