hi i used this and worked:
<script type="text/javascript">
<!--//
function validate(form){
var goodEmail = /^[\w-]+(@hotmail\.com)$/.test(form.email.value);
if(!goodEmail){
alert('Please enter a valid hotmail email address.');
form.email.value = '';
form.email.focus();
return false;
} return true;
}
//-->
</script>
</head>
<body>
<form method="post" action="" onsubmit="return validate(this)">
Email address: <input type="text" name="email"><br>
<input type="submit" value="Submit">
</form>
------------
thanks for your response.
bye
