function check_mailadress(){
fm=this.document.frm
s = fm.discussion.value
n = fm.sname.value
 
 if(s != ""){
 
    var email = s;
    var blanks = ''*200;
   var naughty = new Array("abomination","bastard","cunt","fuck","shit","wanker","piss","twat","anal astronaut","anal commander","anal maniac","antiman","armpit braider","ass bandit","ass goblin","ass jockey","ass monkey","ass pirate","ass rammer","ass spelunker","ass viking","asshole bender","Auntie","avaleuse","avaleur","back door bandit","ballbuster","bastard","battle axe","batty boy","Bean Queen","bender","bent","bimbo","bitch","Bog Queen","bone smuggler","booty bandit","box lunch","Bronco","Buccaneer","bum shoveller","bumhole explorer","bumhole surfer","bummer","bunty boy","butthole","butt","buddies","cake boy","cake eater","cunt","corn-holer","cock goblin","chulo","chick with dick","chimp-pansy","chupapene","cock","cunning linguist","Cowboy Coitus","dike","dick","dagger","degenerate","dirt track rider","douche","dyke","dickhead","egg roll dick","essex girl","eunuch","fag","fagela","faggot","fagnostic","fairy","fanny","felcher","femme","flamer","fnc","frenchman","friend of dorothy","fruit","fuck","udge packer","Fudge nudger","galboy","gameboy","gaandu","gawwad","gay american","gaydar","gay wad","gimp","ginger","ginger pubes","goo gobbler","gobbler","gump","hag","hagfish","half rice","harlot","heblew","hermaphrodite","hetero","homme","himbo","hoover","homosexual","homo","homophobe","hustler","hussy","hyacinth","illegitimate","intersexual","john","jammy feminist","jezebel","jizz jockey","jobby jabber","joto","julie andrews","katzelmacher","klinger","kiddie fiddler","kosher ghost","knob jockey","kommando","ladyboy","lebanese","lemon","lesbian","lesbo","lezzer","librarian","limp wrist","lot lizard","lucky charms","lucky pierre","mariposa","mince","mary poppins","motherfucker","mucus fucker","nancy","nance","nelly","nonce","nympho","nunita","nailchomper","oklahomo","old lady","on the down low","pansy","pipeuse","pillow biter","pillow muncher","pitcher","playo","playo ","pussy","puta","queefer","queer","queer bait","rectal wrangler","rectum raider","richard","rug doctor","rug","rump ranger","salad tosser","salami smuggler","sclass","satyr","shirt lifter","shit","silicone sister","sissy boy","south beach diet","spunk","suceuse","sucuer","sukokov","swisher","tacos & hot dogs","tall drink of cock sucker","tallywhacker toker","tibo","todger dodger","tosser","tradesman","tramp","troia","tuppence licker","turd burglar","turk","tutti frutti","twinkletoes","twisted sister","uke","underwear model","uphill gardener","vag","vagitarian","vamp","theda bara","vicio aleman","wanker","woofta","woofter","wuss","zulu","yummy mummy","gabrielle","xena","woman on the other bus","whussy poofer","whore","wife beater","weapons of ass destruction");
    var sneaky = s.toLowerCase();
    var illegal = "You have entered illegal characters.\nOnly characters listed here allowed.\n\nLetters of Alphabet [lower and upper case]\nNumbers\nOne @ symbol only\nFull stops\nHyphens [Minus sign]\nUnderscores\n\n";
    //mail check
    if (email <= blanks){
      alert("Please enter your Detail address.");
      return false;
      }
    else if (email.charAt(0) == " "){
       alert('You have typed a space at the - START - of your Detail address');
       return false;
    }

    //CHECK FOR ILLEGAL CHARACTERS 2
    if ((email.indexOf('`',0) != -1) || (email.indexOf(String.fromCharCode(94)) != -1) || (email.indexOf(String.fromCharCode(92)) != -1) || (email.indexOf('[',0) != -1) || (email.indexOf(']',0) != -1)){
     alert(illegal);
     return false;
    }

    //CHECK FOR SWEARING
    for (i=0; i < naughty.length; i){
     if (sneaky.indexOf(naughty[i]) != -1){
     alert('Please remove the swear word - '+naughty[i].toUpperCase());
     return false;
     } 
    i++;
    }
	
   for (i=0; i < naughty.length; i++){
   if (email.charAt(i) ==" ")
   email.charAt(i)="";
   }
   //alert(email);

   //GENERAL FORMATING
   return true;
 }else{
 	alert('Please enter a Detail address');
    return false;
 }
}

function openWindow(page, width, height) {

var is4 = parseInt(navigator.appVersion.charAt(0)) >= 4


   if (is4) {
	heighti = (screen.height/2)-225
		widthi = (screen.width/2-15)-335
    } else {
	heighti = 0
	widthi = 0
    }
	// alert(width)
if (!widthi) widthi = 300;
if (!heighti) heighti = 200;
var voteWin;

    if (!window.voteWin) {
        // has not yet been defined
        voteWin = window.open(page,"win2","top="+heighti+",left="+widthi+",width="+width+",height="+height+",resizable=no,scrollbars=no");
        voteWin.focus();
    }
    else if (!voteWin.closed) 
                voteWin.close();
     else {
	
       // voteWin = window.open(page,"win2","top="+height+",left="+width+",width,height,resizable=no,scrollbars=no");
        voteWin = window.open(page,"win2","top="+heighti+",left="+widthi+",width="+width+",height="+height+",resizable=no,scrollbars=no");
	   
        voteWin.focus();
	}
	
}


function checkall(){
           fm=this.document.frm
		   s = fm.discussion.value
		   n = fm.sname.value
		   if ((n == null) || (n.length == 0) || n.charAt(0)== " "){
	       alert("Your must enter your Scree Name")
	       fm.sname.focus()
		   return false
		   }


		   if ((s == null) || (s.length == 0) || s.charAt(0)== " "){
	       alert("Your must enter some content")
	       fm.discussion.focus()
		   return false
		   }
	return true	
  }

function searchfrm(){
           fm=this.document.searchpg
		   s = fm.keyword.value
		   //n = fm.sname.value
		   if ((s == null) || (s.length == 0) || s.charAt(0)== " "){
	       alert("Your must enter some content")
	       fm.keyword.focus()
		   return false
		   }
	return true	
  }
		
function sendForVote(nameID, vote){
	newWindow = window.open('https://findnl.com/sfd/vote_new.php?nameID='+nameID+'&vote='+vote,'newWin','width=300,height=100');
}

