function validate_email(field,alerttxt){
		with (field){
			apos=value.indexOf("@")
			dotpos=value.lastIndexOf(".")
			if(apos<1||dotpos-apos<2){
				alert(alerttxt);
				return false
			}else{
				return true
			}
		}
	}
	
	function validate_required(field,alerttxt){
		with (field){
			if (value==null||value==""){
				alert(alerttxt);
				return false
			}else{
				return true
			}
		}
	}
	
	function fn_onClick(thisname, msg){
		with(thisname){
			if(thisname.value==msg){
				thisname.value="";
			}
		}
	}
	
	function fn_onBlur(thisname, msg){
		with(thisname){
			if(thisname.value==""){
				thisname.value=msg;
			}
		}
	}
	
	/*function clientLogin_validate(thisform){
		with (thisform){
			if (username.value==null||username.value==""||username.value=="Username:"){
				alert("Please fill your username!");
				username.focus();
				return false
			}
			if (password.value==null||password.value==""||password.value=="Password:"){
				alert("Please fill your password!");
				password.focus();
				return false
			}
		}
	}*/
	
	function newsletter_validate(thisform){
		with (thisform){
			if (newsletterEmail.value==null||newsletterEmail.value==""||newsletterEmail.value=="Please enter your email:"){
				alert("Please fill your e-mail address!");
				newsletterEmail.focus();
				return false
			}
			if (validate_email(newsletterEmail,"Not a valid e-mail address!")==false){
				newsletterEmail.focus();
				return false
			}
		}
	}
