function ValidationNews()
{
var ErrMsg = '';
var flag = true;
if ((document.forms[0].ctlReqInfo_txtName.value.length==0) ||
(document.forms[0].ctlReqInfo_txtName.value==null)||(document.forms[0].ctlReqInfo_txtName.value=='Your Name'))
{
ErrMsg+="Please Enter Name \n";
}
if((document.forms[0].ctlReqInfo_txtEmail.value.length==0) || (document.forms[0].ctlReqInfo_txtEmail.value==null)||(document.forms[0].ctlReqInfo_txtEmail.value=='Email Address'))
{
ErrMsg+="Please Enter E-Mail Address \n";
}
else{
bemail1= new RegExp(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/);
bemail2 = bemail1.exec(document.forms[0].ctlReqInfo_txtEmail.value);
if(!bemail2)
{
ErrMsg+="Invalid Email Address \n";
}
}
if((document.forms[0].ctlReqInfo_txtComment.value.length==0) || (document.forms[0].ctlReqInfo_txtComment.value==null)||(document.forms[0].ctlReqInfo_txtComment.value=='Comments'))
{
ErrMsg+="Please Enter Comments \n";
}
if (ErrMsg != '')
{
alert(ErrMsg);
flag=false;
return flag;
}
else
{
flag=true;
return flag;
}
}
|
 |
Benefits of Infomercial Marketing Infomercial Marketing is an advertising medium that has many advantages. Infomercials deliver cost-effective advertising to the largest possible audience. This increases sales of your product, builds brand names, and is the best way to introduce new products.
|