// JavaScript Document
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
animatedcollapse.addDiv('kelly', 'fade=1,height=100px')
animatedcollapse.addDiv('michael', 'fade=1,height=120px')

animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()
function ValidateForm()
{
    if(document.getElementById('txtName').value=="") 
    {
        alert('Please Enter Name');
        return false;
    }
   var mobileno = document.getElementById('txtMNo').value
   if(mobileno.indexOf(" ")!=-1)
   {
	alert('Please Enter Mobile No With out spaces');
	return false;
   }
   if(mobileno=="")
   {
       alert('Please Enter Mobile No');
        return false;
   }
    var checkVal = '';
  if(mobileno.length>13 || mobileno.length==11 || mobileno.length<10)
  {	
	alert('Please enter correct Mobile no.');	
	return 	false;	
  }
  else if(mobileno.length==13) 
  {
	var checkVal = mobileno.substring(0,4);
	if(checkVal!="+919" && (checkVal!="+918" && checkVal!="+917"))
	{
 		alert('Mobile no should starts with  +918 or +919 or +917');
		return 	false;
	}
  }
  else if(mobileno.length==12)
  {
	var checkVal = mobileno.substring(0,3);
	if(checkVal!="919" && (checkVal!="918" && checkVal!="917"))
	{
		alert('Mobile no should starts with 918 or 919 or 917');		
		return 	false;
	}
 }
 else if(mobileno.length==10)
 {
 	var checkVal = mobileno.substring(0,1);
	if(checkVal!="9" && (checkVal!="8" && checkVal!="7"))
	{
		alert('Mobile no should starts with 9 or 8 or 7');
		return 	false;		
	}
 }

   return true;
	
}
function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}
