function validate(thisform)
{

if(document.getElementById('FirstName').value=="")
		{
		   	alert("Please Enter First Name");
			document.getElementById('FirstName').focus();
			return false;
		}
if(document.index_form.Email.value=="")
		{
			alert("Please Enter Email");
			document.index_form.Email.focus();
			return false;
		}
		
if(!mailchk(document.index_form.Email.value))
		{
			alert("Invalid Email");
			document.index_form.Email.focus();
			return false;
		}
if(document.index_form.Phone.value=="")
		{
			alert("Please Enter Phone");
			document.index_form.Phone.focus();
			return false;
		}
if(isNaN(document.index_form.Phone.value))
		{
			alert("Please enter Numeric Phone no (E.g., 12483413783)");
			document.index_form.Phone.focus();
			return false;
		}
if (document.index_form.Services.value == '-None-')
		{
			alert("Select the services." );
			document.index_form.Services.focus();
			return false;
		}
		
var str=document.index_form.Description.value;
if(str.match("viagra") || str.match("VIAGRA") ||  str.match("Viagra") || str.match("cialis") ||  str.match("CIALIS") || str.match("Cialis") )
{
	alert("This word is not allowed");
	document.index_form.Description.focus();
	return false;
}

		
if(document.index_form.verify.value == "" )
	{
		alert("Please enter verification code");
		document.index_form.verify.focus();
		return false;
		
	}		
if(!valid(document.index_form.verify.value))
{

	alert("Please enter exact verification code.");
		document.index_form.verify.value = "";

	document.index_form.verify.focus();
	return false;
}
}
var imagevalue="";
function fun()
{
  scrollPics();
 imagevalue = document.getElementById('one').innerHTML = random_generator(3);
 
}
function home_fun()
{
scrollPics();
getaquoteDelay(this, 'loadContact');
	
}
function random_generator(digits){
var input = new Array ("A", "B", "C", "D", "E","F","G","H","I","J","K","L","M","N","O","P","Q",
"R","S","T","U","V","W","X","Y","Z");
var random_generator="";// Initialize the string to store random numbers
for(var i=1;i<digits+1;i++){ // Loop the number of times of required digits
if(Math.floor(Math.random() * 2) == 1){// to decide the digit should be numeric or alphabet
// Add one random alphabet
random_generator +=input[Math.floor(Math.random() * 2)]; // One char is added

}else{

// Add one numeric digit between 1 and 10
random_generator +=Math.floor(Math.random()*10); // one number is added
} // end of if else

} // end of for loop

return random_generator;
} // end of function

function valid(){
  var verify = document.index_form.verify;

if(imagevalue == verify.value)
	return true;
}
function mailchk(ww)
	{ 
	var m = ww;
	var n = ww;
	var cnt=0,spc=0,dot=0;
	for(var i=1;i<=m.length;i++)
	  {
		 if(m.charAt(i)=="@")  cnt++;
		 if(m.charAt(i)==" ")  spc++;
		 if(m.charAt(i)==".")  dot++;
	  }
	  lnm=m.length
	  if(cnt==0||cnt>1||spc!=0||dot==0 ||lnm<=2 )
	  { 
		return false;
	  } 
	  else
	  {
		return true;
	  }
	}	
 var m=0;
  var n=1090;
  var speed4=100;
function scrollPics() {
     document.getElementById('div1').style.left=m+'px';
     document.getElementById('div2').style.left=n+'px';
   m--;
   n--;
if(m==-1090) {
   m=1090;
 }
if(n==-1090) {
   n=1090;
 }
setTimeout('scrollPics()',speed4);
 } 


<!-- Start : Popup window display site onload -->

function getaquoteDelay(){
	setTimeout("getQuoteWIndow(this, 'loadContact')", 1000);
	
	}
function getQuoteWIndow(curobj, subobj){
	
if (subobj){
	
var subobj=document.getElementById(subobj)
subobj.style.display="block";
return true;
}
else
return false;
}

function onloadContactClose(subobj)
{
   document.getElementById(subobj).style.display="none";
 }

<!-- End : Popup window display site onload -->
