function divHeight()
{
	var box1H = document.getElementById("box1-m").offsetHeight + "px";
	var box2H = document.getElementById("box2-m").offsetHeight + "px";
	var box3H = document.getElementById("box3-m").offsetHeight + "px";
	if(box1H > box2H && box1H > box3H)
	{
		var maxHeight = box1H;
		document.getElementById("box2-m").style.height = maxHeight;
		document.getElementById("box3-m").style.height = maxHeight;
	}
	else if(box2H > box1H && box2H > box3H)
	{
		var maxHeight = box2H;
		document.getElementById("box1-m").style.height = maxHeight;
		document.getElementById("box3-m").style.height = maxHeight;
	}
	else
	{
		var maxHeight = box3H;
		document.getElementById("box1-m").style.height = maxHeight;
		document.getElementById("box2-m").style.height = maxHeight;
	}
}
function morecontent() {
document.getElementById('graydiv').style.display = 'block';
document.getElementById('lightbox').style.display = 'block';
}
function fnValidateForm()
{
   //alert (document.frmQuickContact.txtName.value);
   
   sBlank = false ;
   sControl = "" ;

   
   
   if ( document.getElementById("txtMessage").value == "" )
   {
      sBlank = true ;
      sControl = "txtMessage" ;
   }
   if ( document.getElementById("txtEmail").value == "" )
   {
      sBlank = true ;
      sControl = "txtEmail" ;
   }   
   if ( document.getElementById("txtName").value == "" )
   {
      sBlank = true ;
      sControl = "txtName" ;
   }   
   
   if (sBlank == true)
   {
      alert ( "Please complete all the mandatory fields");
      document.getElementById(sControl).focus();
      return false ;  
   }
   
   // added by gaurav
   var emailID=document.frmQuickContact.txtEmail;
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID");
		emailID.focus();
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value="";
		emailID.focus();
		return false;
	}
   document.frmQuickContact.submit(); 
      
}
<!-- End of Changed by Maithily Padukone -->

// added by gaurav starts
//function to validate email address
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 E-mail ID");
		   return false;
		}
      
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		 return true					
	}
//added by gaurav ends
