function formcheck() {
		if( document.form1.name.value == "" ) {
		window.alert( 'You need to fill in a name of your web site.' );
		return false;}
		if( document.form1.name.value.length > 30) {
		window.alert( 'Plesase check your web site name. The field has a maximum of 30 characters.' );
		return false;}	
		if( document.form1.caption.value == "" ) {
		window.alert( 'You need to fill in your title.' );
		return false;}
		if( document.form1.hyperlink.value == "" ) {
		window.alert( 'You need to fill in your URL.' );
		return false;}
		if( document.form1.description.value == "" ) {
		window.alert( 'You need to fill in a description.' );
		return false;}			   
		if( !document.form1.email.value || document.form1.email.value.replace( /[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)+/i, "" ) ) {
		window.alert( 'You need to fill in your email address.' );
		return false;}
	 else window.setTimeout('document.form1.submit();',100);}
function formcheck3() {
		if( !document.form2.email.value || document.form2.email.value.replace( /[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)+/i, "" ) ) {
		window.alert( 'You need to fill in your email address.' );
		return false;}
		if( document.form2.password.value == "" ) {
		window.alert( 'You need to fill in your password.' );
		return false;}			   
	 else window.setTimeout('document.form2.submit();',100); }		   
    function Open(){//http://www.surfwebtips.com/
	win=window.open("http://www.surfwebtips.com/linkhelpemail.htm","myWin","height=300,width=300,toolbars=0,address=0,scrollbars=1");}
	function Open2(){//http://www.surfwebtips.com/
	win=window.open("http://www.surfwebtips.com/linkhelpB.htm","myWin","height=300,width=300,toolbars=0,address=0,scrollbars=1");}
function formcheck2() {
var preview;
		if( document.form1.name.value == "" ) {
		window.alert( 'You need to fill in a name of your web site.' );
		return false;}
		if( document.form1.caption.value == "" ) {
		window.alert( 'You need to fill in your title.' );
		return false;}
		if( document.form1.hyperlink.value == "" ) {
		window.alert( 'You need to fill in your URL.' );
		return false;}
		if( document.form1.description.value == "" ) {
		window.alert( 'You need to fill in a description.' );
		return false;}			   
		if( !document.form1.email.value || document.form1.email.value.replace( /[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)+/i, "" ) ) {
		window.alert( 'You need to fill in your email address.' );
		return false;}
	 else  
		preview = "<a href='" + document.form1.hyperlink.value + "' caption='" + document.form1.caption.value +
							 "' target='_blank'>" + document.form1.caption.value + "</a><br />" + document.form1.description.value;
		preview_window = open("","previewwindow","width=300,height=300,left=10,top=10,scrollbars");
		preview_window.document.open();
		preview_window.document.write("<html><head><title>Preview of your text link</title></head>");
		preview_window.document.write("<body bgcolor=\"#DBEAF5\">");
		preview_window.document.write("<br />This is what <strong>your text link will look like</strong> once your Link Exchange Partners have pasted it onto their web sites:");
		preview_window.document.write("<br /><br />" + preview);
		preview_window.document.write("</body></html>");
		preview_window.document.close(); }
<!-- Original:  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Dynamic 'fix' by: Nannette Thacker -->
<!-- Web Site: http://www.shiningstar.net -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;}