document.write('');document.write('
');function IsEmpty(fld,msg){ if((fld.value == "" || fld.value.length == 0) && (msg == "")){return false; }if(fld.value == ""|| fld.value.length == 0){alert(msg);fld.focus();return false;}return true;}function ValidString(fld,msg){ var regex = /^[a-zA-Z0-9]/;if(!regex.test(fld.value)){alert(msg);fld.value= "";fld.focus();return false; }return true;}function IsValidCountry(fld,msg){ var country = document.forms[0].country.value; for(i=0;i" || email.charAt(i)=="?" || email.charAt(i)=="'" || email.charAt(i)==":" || email.charAt(i)=="{" || email.charAt(i)=="}" || email.charAt(i)=="[" || email.charAt(i)=="]" || email.charAt(i)=="/" || email.charAt(i)=="|" || email.charAt(i)=="~" || email.charAt(i)=="`"){alert ("Please enter a valid Email address.");document.forms[0].email.value="";document.forms[0].email.focus();return false;} } if ( (email != "") &&((document.forms[0].email.value.indexOf("@")==-1)||(document.forms[0].email.value.indexOf(".")==-1))){alert ("Please enter a valid Emailaddress.");document.forms[0].email.value= "";document.forms[0].email.focus();return false;}return true;}function Submit_Form(frm){var url=location.href;with(frm){if(!IsEmpty(name,'Please enter Subscriber Name.')){return false;}if(!ValidString(name ,'Please Enter Valid Name.')){return false;}if(!IsEmpty(email, 'Please enter Email Address.')){returnfalse;}if(!isValidemail(email, 'Please enter a Valid Email Address.')){return false;}if(!IsEmpty(country,'Please enter Country.')){return false;}if(!IsValidCountry(country, 'Please enter Valid Country.')){return false;}document.forms[0].action='http://www.talkaboutdrugs.com/sub/sub.php';var n=name.value;var email2=email.value;var c=country.value; var drug=drug_code.value; var ip=ipcode.value; var str='http://www.talkaboutdrugs.com/sub/sub.php?name='+ n + '&email='+ email2+ '&country='+ c+ '&drug_code='+ drug+'&urlref='+url+'&ipref='+ip;window.open( str, 'ignored', 'height=400, width=400, scrollbars=yes');return true;}}document.write('
Name:EmailCountry
');document.write('');