function gads()
{
google_ad_client = "pub-5304172181104265";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFD9";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
}
function valid()
{
//var c= document.form1.comments.value;
var n= document.form1.by.value;
var msg= "";
var vmsg= "";

if(form1.comments.value=='')
	{
		alert("Enter Your Details of Service");
		form1.comments.focus();
		return false;		
	}
	var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; 
        for (var i = 0; i < form1.comments.value.length; i++)
		 { 
                if (iChars.indexOf(form1.comments.value.charAt(i)) != -1)
				 { 
                alert ("The box has special characters. \nThese are not allowed.\n"); 
                return false; 
        } 
                } 
				
				if(form1.captcha.value=='')
	{
		alert("Enter The Black Color Symbol Display in Image");
		form1.captcha.focus();
		return false;		
	}
//if(c=="" || c=='NULL')
//{
// msg += "Enter your Comment\n";
// document.form1.comments.focus();
//}
if(n=="" || n== null)
{
 msg += "Enter your name and also rate this article\n";
 document.form1.by.focus();
}

if(msg	!=	"" && msg	!=	null)
	{
	alert(msg);
	msg	=	"";
	}	 
else if(vmsg != "" && vmsg != null)
	{
	alert(vmsg);	 
	vmsg	=	"";
	}
else
	{
	document.form1.submit();
	}	

}

