function validContact(contactForm) {		 		if (contactForm.firstname.value == '') {		alert("Please enter your first name");		contactForm.firstname.focus();		return false;	}	if (contactForm.firstname.value == 'Full Name'){		alert("Please enter your Full Name");		contactForm.firstname.focus();		return false;	}				if (contactForm.emailAddr.value == '') {		alert("Please enter your email address");		contactForm.emailAddr.focus();		return false;	}	if (contactForm.emailAddr.value == 'Email') {		alert("Please enter your email address");		contactForm.emailAddr.focus();		return false;	}		if (!validEmail(contactForm.emailAddr.value)) {		contactForm.emailAddr.focus();		return false;	}		if (contactForm.telephone.value == '') {		alert("Please enter your telephone");		contactForm.telephone.focus();		return false;	}		if (contactForm.telephone.value == 'Telephone') {		alert("Please enter your telephone");		contactForm.telephone.focus();		return false;	}		if (contactForm.message.value == 'Message') {		alert("Please enter your message");		contactForm.message.innerHTML='';		contactForm.message.focus();		return false;	}		 	  			return true;	}   // checks for valid telephone charactersfunction validNum(telno) {		var pattern = "0123456789+-)(. ";	var i = 0;		do {		var pos = 0;		for ( var j = 0 ; j < pattern.length ; j++ )			if ( telno.charAt(i) == pattern.charAt(j) )				pos = 1;		i++;	}	while ( pos == 1 && i < telno.length )		if ( pos == 0 ) return false;		return true;}// check email address patternfunction validEmail(addr) {		var regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;		if ( !regex.test(addr) ) {		alert("Invalid email address, please try again");		return false;	}		return true;}// validation for Send to Friendfunction val_send_to_friend(contactForm) {	if (!validEmail(contactForm.addr.value)) {		contactForm.addr.value = '';		contactForm.addr.focus();		return false;	}	return true;}     