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.title.value == "" ) {
		window.alert( 'You need to fill in your title.' );
		return false;}
		if( document.form1.description.value == "" ) {
		window.alert( 'You need to fill in a description.' );
		return false;}
		if( document.form1.url.value == ""  || document.form1.url.value == "http://") {
		window.alert( 'You need to fill in your URL. E.g http://www.surfwebtips.com' );
		return false;}
		if( document.form1.kat.value == "" ) {
		window.alert( 'You need to select a category.' );
		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;}
		if( document.form1.reciprocal.value == "" || document.form1.reciprocal.value == "LINK TO US") {
		window.alert( 'You need to fill in a reciprocal link. The URL of the page where you link to us from your website.' );
		return false;}
		if(!document.form1.checkbox2.checked) {
		window.alert( 'If you agree to meet the requirements, please check the box I agree.' );
		return false;}
	 else 
	 document.form1.name.value = document.form1.name.value.split(/["]/).join("'");
	 document.form1.title.value = document.form1.title.value.split(/["]/).join("'");
	 document.form1.description.value = document.form1.description.value.split(/["]/).join("'");
	 window.setTimeout('document.form1.submit();',100);} 
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.title.value == "" ) {
		window.alert( 'You need to fill in your title.' );
		return false;}
		if( document.form1.url.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.url.value + "' title='" + document.form1.title.value +
							 "' target='_blank'>" + document.form1.title.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(); }
function Open(){
	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 Open1(){
	win=window.open("http://www.surfwebtips.com/reciprocalup2.htm","myWin","height=500,width=500,toolbars=0,address=0,scrollbars=1");}
function Open10(){
	win=window.open("http://www.surfwebtips.com/linkexchangeexplained2.htm","myWin","height=500,width=500,toolbars=0,address=0,scrollbars=1");}
function Open5(){
	win=window.open("http://www.surfwebtips.com/demo-link-exchange.htm","myWin","height=850,width=950,toolbars=0,address=0,scrollbars=1");}
function Open6(){
	win=window.open("http://www.surfwebtips.com/demo-link-check.htm","myWin","height=850,width=950,toolbars=0,address=0,scrollbars=1");}	
<!-- 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;}