 function sendmail() {
		if( document.form1.name.value == "" ) {
		window.alert( 'You need to fill in your name.' );
		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.url.value == "" ) {
		window.alert( 'You need to fill in a url.' );
		return false;}
		var punkt = document.form1.url.value.indexOf('.');
		if (punkt == -1){
		window.alert( 'Oops, you did not fill in a proper URL (no dot). Please try again.' );
				return false;} 
else
 var name = document.form1.name.value;
 var url = document.form1.url.value;
 var email = document.form1.email.value;
 var extra2 = "";
 var extra = "I apply for the extra feature: No";
 		if(document.getElementById("extra").checked==true) {
		extra = "I apply for the extra feature: Yes";
		extra2 = "Surfwebtips let partners repair their linking to me.%0A%0A"+
		"Default email sent to your partners (who are not linking to you) will look like below. Feel free to edit.%0A"+	
		"------------------------------%0ADear Webmaster!%0A%0AMy name is "+name+" and I'm the webmaster of "+url+
		". We have been link partners for some time now but we have noticed that you are no longer linking to my web site from your given URL link location to me. "+
		"A link to "+url+" could not be found at http://www.theirSite.com%0A%0A"+
        "If you still want to remain my link partner, please place my link into one of your web pages,"+
                " click this link (or copy and paste it into your browser) " +
                "http://www.surfwebtips.com/servlet/staypartners" +
                "%0Aand use the form at that page to specify" +
                " the new URL link location to me. I give you one week to confirm your placement, before I remove the link to you at my web site." +
                "%0A%0AWith best regards,%0A"+name+"%0A------------------------------%0A"+
				"Feel free to attach a htm or html page(your web site look a like) that Surfwebtips set up at http://www.surfwebtips.com/servlet/staypartners";}
  mailto = "check-linking@surfwebtips.com"
  var note = "Don't forget to attach your list (sql, doc, txt etc.)%0A%0A";
  var email = "Surfwebtips reply and payment information will be sent to: "+email;
  
  var brev = "mailto:"+mailto+"?subject=Surfwebtips Link Exchange Service&body=%0A"+
  note+"Hi, my name is "+name+
  " and I would like Surfwebtips to check my linking.%0A%0AMy web site: "+url+"%0A"+extra+"%0A%0A"+"%0A%0ASurfwebtips are going to find my web site on my partners web sites and report link status. "+extra2+"%0A%0A"+email+"%0A%0ABest regards,%0A"+name;
  mailwin = window.open(brev);}
function Open8(){
		if( document.form1.name.value == "" ) {
		window.alert( 'You need to fill in your name.' );
		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.url.value == "" ) {
		window.alert( 'You need to fill in a url.' );
		return false;}
		var punkt = document.form1.url.value.indexOf('.');
		if (punkt == -1){
		window.alert( 'Oops, you did not fill in a proper URL (no dot). Please try again.' );
				return false;} 
else
 var name = document.form1.name.value;
 var url = document.form1.url.value;
 var email = document.form1.email.value;
 var extra2 = "";
 var extra = "I apply for the extra feature: No";
 		if(document.getElementById("extra").checked==true) {
		extra = "I apply for the <strong>extra feature</strong>: Yes";
				extra2 = "Surfwebtips let partners repair their linking to me.<br/><br/>"+
		"<strong>Default email sent to your partners</strong> (who are not linking to you) will look like below. Feel free to edit.<br/>"+	
		"------------------------------<br/>Dear Webmaster!<br/><br/>My name is "+name+" and I'm the webmaster of "+url+
		". We have been link partners for some time now but we have noticed that you are no longer linking to my web site from your given URL link location to me. "+
		"A link to "+url+" could not be found at http://www.theirSite.com<br/><br/>"+
        "If you still want to remain my link partner, please place my link into one of your web pages,"+
                " click this link (or copy and paste it into your browser) " +
                "http://www.surfwebtips.com/servlet/staypartners" +
                "<br/>and use the form at that page to specify" +
                " the new URL link location to me. I give you one week to confirm your placement, before I remove the link to you at my web site." +
                "<br/><br/>With best regards,<br/>"+name+"<br/>------------------------------<br/>"+
				"Feel free to attach a htm or html page(your web site look a like) that Surfwebtips set up at http://www.surfwebtips.com/servlet/staypartners";}
  mailto = "check-linking@surfwebtips.com"
  var note = "Don't forget to <strong>attach</strong> your list<br/>(sql, doc, txt etc.)<br/><br/>";
  var email = "Surfwebtips <strong>reply</strong> and payment information will be sent to: "+email;
  var preview = "<strong>mailto:</strong> "+mailto+"<br/><strong>subject:</strong> Surfwebtips Link Exchange Service<br/><br/>"+
  note+"Hi, my name is "+name+
 " and I would like Surfwebtips to check my linking.<br/><br/><strong>My web site:</strong> "+url+"<br/>"+extra+"<br/><br/>"+"<br/><br/>Surfwebtips are going to find my web site on my partners web sites and report link status. "+extra2+"<br/><br/>"+email+"<br/><br/>Best regards,<br/>"+name;
		preview_window = open("","previewwindow","width=330,height=500,left=10,top=10,scrollbars");
		preview_window.document.open();
		preview_window.document.write("<html><head><title>Email us your request</title></head>");
		preview_window.document.write("<body bgcolor=\"#DBEAF5\">");
		preview_window.document.write("<br /><strong>Copy and paste this information into your email program:</strong>");
		preview_window.document.write("<br /><br />" + preview);
		preview_window.document.write("</body></html>");
		preview_window.document.close(); }
	function Open3(){
	win=window.open("http://www.surfwebtips.com/emailup2.htm","myWin","height=300,width=300,toolbars=0,address=0,scrollbars=1");}
	function Open7(){
	win=window.open("http://www.surfwebtips.com/demo-link-check-directory.htm","myWin","height=850,width=950,toolbars=0,address=0,scrollbars=1");}
