function FormSubmit() {
	var name = document.postForm.name.value;
	var email = document.postForm.email.value;
	var comments = document.postForm.comments.value;
	if (name == "") {
		alert("\nThe NAME field is blank.\n\nPlease enter your name.");
		document.postForm.name.focus();
		return false;
	}
	var pattern = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
	if (!pattern.test(email)) {
		alert("\nPlease enter a valid email.");
		document.postForm.email.focus();
		return false;
	}  
	if (comments == "") {
		alert("\nThe COMMENTS field is blank.\n\nPlease enter your comments.");
		document.postForm.comments.focus();
		return false;
	}
	return window.open ('', 'mailWindow', 'height=322,width=440,toolbar=no,status=no,scrollbars=no,resizable=no');
}

document.write('<table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFE9D1">');
document.write('<form name="postForm" action="http://app.chinaradio.cn/mailsender/mail2.php" method="POST" target="mailWindow" onsubmit="return FormSubmit()">');
document.write('<tr><td bgcolor="#FFFFFF">');
document.write('<p>&nbsp;&nbsp;&nbsp;<b>Your Name:</b>&nbsp;&nbsp;&nbsp;');
document.write('&nbsp;&nbsp;&nbsp;<input name="name" type="text" size="15" maxlength="48"><br>');
document.write('&nbsp;&nbsp;&nbsp;<b>E-mail:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="email" type="text" size="15" maxlength="48">');
document.write('<br>&nbsp;&nbsp;&nbsp;<b>Comments:</b><br>&nbsp;&nbsp;&nbsp;<textarea name="comments" cols="22" rows="8"></textarea>');
document.write('</p>');
document.write('<p align="center">');
document.write('<input type="submit" name="Submit" value="Submit">');
document.write('<input type="reset" name="Reset" value="Reset">'); 
document.write('<input type="hidden" name="subject" value="ÍøÕ¾·´À¡">');
document.write('<input type="hidden" name="title" value="' + document.title + '">');
document.write('<input type="hidden" name="url" value="' + window.location.href + '">');
document.write('</p></td></tr>');
document.write('</form>');
document.write('</table>');
