function smutEngine() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Fname.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Fname.value=txt;
}

function smutEngine2() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Lname.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Lname.value=txt;
}

function smutEngine3() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Email.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Email.value=txt;
}

function smutEngine4() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Phone.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Phone.value=txt;
}

function smutEngine5() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Question.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Question.value=txt;
}

function smutEngine6() {
smut="#@&*%!#@&*%!#@&*%!";
cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
+"asshole pedophile man-boy man/boy dong twat viagra viag html url buy href cheap cheapest Cheapest Meds meds vohu5m "
+"pharmacy ";
txt=document.info.Other.value;
tstx="";
for (var i=0;i<30;i++){
pos=cmp.indexOf(" ");
wrd=cmp.substring(0,pos);
wrdl=wrd.length
cmp=cmp.substring(pos+1,cmp.length);
while (txt.indexOf(wrd)>-1){
pos=txt.indexOf(wrd);
txt=txt.substring(0,pos)+tstx.substring(0,wrdl)
+txt.substring((pos+wrdl),txt.length);
   }
}
document.info.Other.value=txt;
}



function Del(Word) {
a = Word.indexOf("<");
b = Word.indexOf(">");
len = Word.length;
c = Word.substring(0, a);
if(b == -1)
b = a;
d = Word.substring((b + 1), len);
Word = c + d;
tagCheck = Word.indexOf("<");
if(tagCheck != -1)
Word = Del(Word);
return Word;
}
function Check() {
ToCheck = document.info.Fname.value;
Checked = Del(ToCheck);
document.info.Fname.value = Checked;
return true;
}
function Check2() {
ToCheck = document.info.Lname.value;
Checked = Del(ToCheck);
document.info.Lname.value = Checked;
return true;
}
function Check3() {
ToCheck = document.info.Email.value;
Checked = Del(ToCheck);
document.info.Email.value = Checked;
return true;
}
function Check4() {
ToCheck = document.info.Phone.value;
Checked = Del(ToCheck);
document.info.Phone.value = Checked;
return true;
}
function Check5() {
ToCheck = document.info.Question.value;
Checked = Del(ToCheck);
document.info.Question.value = Checked;
return true;
}
function Check6() {
ToCheck = document.info.Other.value;
Checked = Del(ToCheck);
document.info.Other.value = Checked;
return true;
}


Names = new Array(
"cheap@viagra.com",
"cheap@viagra.net",
"cheap@viagra.biz",
"cheap@viagra.info",
"cheapest@viagra.com",
"cheapest@viagra.net",
"cheapest@viagra.biz",
"cheapest@viagra.info",
"viagra uk",
"Cheapest ED Meds on Net:",
"[url=http://head.mybb.ru]purchase viagra[/url]",
"[url=http://circle.mybb.ru]buy generic viagra[/url]",
"[url=http://right.mybb.ru]viagra price[/url]",
"[url=http://elect.mybb.ru]viagra pharmacy[/url]",
"[url=http://pumping.mybb.ru]viagra uk[/url]",
"Cheapest ED Meds on Net: [url=http://head.mybb.ru]purchase viagra[/url] [url=http://circle.mybb.ru]buy generic viagra[/url] [url=http://right.mybb.ru]viagra price[/url] [url=http://elect.mybb.ru]viagra pharmacy[/url] [url=http://pumping.mybb.ru]viagra uk[/url] vohu5m",
"Cheapest ED Meds on Net:"+"[url=http://head.mybb.ru]purchase viagra[/url] [url=http://circle.mybb.ru]buy generic viagra[/url] [url=http://right.mybb.ru]viagra price[/url] [url=http://elect.mybb.ru]viagra pharmacy[/url] [url=http://pumping.mybb.ru]viagra uk[/url] "+"vohu5m"
)

function CheckEmail() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Email.value.toLowerCase()
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Email.value=""
		}
		awdrgy++
	}
}

function CheckLname() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Lname.value
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Lname.value=""
		}
		awdrgy++
	}
}

function CheckFname() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Fname.value
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Fname.value=""
		}
		awdrgy++
	}
}

function CheckPhone() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Phone.value
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Phone.value=""
		}
		awdrgy++
	}
}

function CheckQuestion() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Question.value
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Question.value=""
		}
		awdrgy++
	}
}

function CheckOther() {
	//Change FORM and FIELD to the form name and field name throughout this function
	namechk=document.info.Other.value
	awdrgy = 0
	aLeRt = 0
	while (awdrgy<=Names.length-1 && aLeRt!=1) {
		if (namechk==Names[awdrgy]) {
			aLeRt = 1
			alert("You do not have privileges to use this form")
			document.info.Other.value=""
		}
		awdrgy++
	}
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid Email Address")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid Email Address")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid Email Address")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid Email Address")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid Email Address")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid Email Address")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid Email Address")
		    return false
		 }

 		 return true					
	}

function val() {
var E1 = false;
var E2 = false;
var E3 = false;
var E4 = false;
var E5 = false;
var E6 = false;
var E7 = false;
var E8 = false;
var E9 = false;
var E10 = false;
var E11 = false;
var E12 = false;
var E13 = false;
var E14 = false;
var blankRE=/^[\s]+$/;
if ((document.info.Fname.value !="") || blankRE.test(document.info.Fname.value)){
E1 = true;}
if (!E1){
alert("Please enter your First Name");
document.info.Fname.focus();
return (false);}

if ((document.info.Lname.value !="") || blankRE.test(document.info.Lname.value)){
E2 = true;}
if (!E2){
alert("Please enter your Last Name");
document.info.Lname.focus();
return(false);}

var emailID=document.info.Email
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}


if (document.info.referer.value != ""){
E4 = true;}
if ((document.info.referer[13].selected == true) && (document.info.Other.value == "")){
alert("You chose Other as how your heard about us but forgot to describe Other")
document.info.Other.focus();
return (false);
}

if (document.info.Other.value !=""){
document.info.referer[13].selected = true;
E4 = true;
}
if (!E4){
alert("Please tell us how you heard about us.");
return (false);
}

'if ((document.info.Other.value !="") && (document.info.referer[13].selected == true)){'
'[document.info.referer.selectedIndex].value == "Other"){'
'if ((document.info.Other.value !="") || blankRE.test(document.info.Other.value)){'
'E5 = true;}'
'if (!E5){'
'alert("You chose "+document.info.referer.options[document.info.referer.selectedIndex].value+" as how your heard about us but forgot to describe Other")'
'return(false);}'
}