var vpath = "http://www.tata-aig-life.com/";

if (top.frames.length!=0)
top.location=self.document.location;

findBrowser();

function findBrowser(){
if (($.browser.msie) && ($.browser.version == "6.0")){
<!--[if IE 6]>
var clear=vpath+'images/clear.gif'; //path to clear.gif
document.write('<script type="text/javascript" id="ct" defer="defer" src="javascript:void(0)"><\/script>');var ct=document.getElementById("ct");ct.onreadystatechange=function(){pngfix()};pngfix=function(){var els=document.getElementsByTagName('*'),ip=/\.png/i,al="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",i=els.length,uels=new Array(),c=0;while(i-->0){if(els[i].className.match(/unitPng/)){uels[c]=els[i];c++;}}if(uels.length==0)pfx(els);else pfx(uels);function pfx(els){i=els.length;while(i-->0){var el=els[i],es=el.style,elc=el.currentStyle,elb=elc.backgroundImage;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter=al+el.src+"',sizingMethod='crop')";el.src=clear;}else{if(elb.match(ip)){var path=elb.split('"'),rep=(elc.backgroundRepeat=='no-repeat')?'crop':'scale',elkids=el.getElementsByTagName('*'),j=elkids.length;es.filter=al+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';if(j!=0){if(elc.position!="absolute")es.position='static';while(j-->0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}};};
  <!--[endif]-->

 }	
}

var t;
var timer; 
function show_adv(n)
		{
			var a = n;
			for(var i=1; i<=5; i++){
			
			if(i!=n){
				
				$('#option'+i).fadeOut(1000);
				//$('#option'+i).remove();
				}
			}
			clearTimeout(t);
			$('#option'+n).fadeIn(500);
		}
		
function hide_adv()
		{
			for(var i=1; i<=5; i++){
			$('#option'+i).fadeOut(500);
			}
			//document.getElementById('adv').style.display="none";
		}
		
function delay(){
	t = setTimeout("hide_adv()", 500);	
}
	
	
//Select options	


function showTitle(n){
	
	for(var i=1; i<=2; i++){
		document.getElementById('meetAdvisor'+i).style.display='none';
		}
	
	var a = n;
	document.getElementById('option1').style.display='none';
	document.getElementById('meetAdvisor'+n).style.display='block';
	
switch(a){
case 2:
$(' a .changeTitle').html("Become an Agent");
 break;

case 1:
$('a .changeTitle').html("Meet an Advisor");
 break;

}

	
}

function show_options(n)
{
	for(var i=1; i<=6; i++){
		if(i!=n){
		$('#options'+i).fadeOut(1000);
		//$('#option'+i).remove();
		}
	}
clearTimeout(t);
$('#options'+n).fadeIn(500);		
}
function hide_options()
{
	for(var i=1; i<=6; i++){
		$('#options'+i).fadeOut(500);
	}
}
		
function delays(){
	t = setTimeout("hide_options()", 500);
}

//Select options end here 

var t1;
var selectNum ;
function submenuDisplay(n) {
	//$('#subMenuOuter').slideDown("normal");
	/*document.getElementById('subMenu1').style.display='block';*/
	for(var i=1; i<=6; i++){
		
		
		if(i==n)
		{
			//alert('menu'+n);
			
			document.getElementById('subMenu'+i).style.display='block';
			document.getElementById('menu'+i).className = 'selectedover';	
		}
		else{
	document.getElementById('subMenu'+i).style.display='none';
	document.getElementById('menu'+i).className = '';
		}
		}
	
	clearTimeout(t1);
	//$('#subMenu'+x).stop(true, true).fadeIn("slow");		
}

function temp(n) {
	
	selectNum=n;
		for(i=1; i<=6; i++){ 	
		
		
		
		if(i==n)
		{
			document.getElementById('subMenu'+n).style.display='block';	
			document.getElementById('menu'+n).className='selectedover';
		}
		
		else{
			
			document.getElementById('subMenu'+i).style.display='none';
			document.getElementById('menu'+i).className='';
			}
		
		}
	t1 = setTimeout("hideSubmenu()",300);
	
	}
function hideSubmenu(){
		//alert(selectNum);
	for(i=1; i<=6; i++)
	{
		
				
			document.getElementById('subMenu'+i).style.display='none';
				document.getElementById('menu'+i).className='';
			}
		
		
		
}


function newsNavs(a)
{
	var a;
	for(i=1; i<=2; i++)
	{
	  document.getElementById('tabNews' + i).style.display='none';
	  document.getElementById('tab-head' + i).className='sel';	
	}
		document.getElementById('tabNews' + a).style.display='block';
		document.getElementById('tab-head' + a).className='';		
}

var newsCount=1;
var intervalId;
var duration = 3500;
function executeCallback(){
$('#news'+newsCount).css('display','none');
newsCount++;
$('#news'+newsCount).fadeIn('slow');
	if(newsCount>2){
		newsCount=1;
		$('#news'+newsCount).fadeIn('slow');
	}
}

$(document).ready(function() {

intervalId = setInterval("executeCallback()", duration);
navintervalId = setInterval("executeCallback1()", duration1);
});


function newsNext()
{
	document.getElementById('news'+newsCount).style.display='none';
	newsCount++;
	$('#news'+newsCount).fadeIn('slow');
	if(newsCount>2)
	{
		newsCount--;
		document.getElementById('news'+newsCount).style.display='none';
		newsCount = 1;
		$('#news'+newsCount).fadeIn('slow');
	}
}

function newsBack()
{
	document.getElementById('news'+newsCount).style.display='none';	
	newsCount--;
	$('#news'+newsCount).fadeIn('slow');
	if(newsCount<1)
	{
		newsCount++;
		document.getElementById('news'+newsCount).style.display='none';
		newsCount = 2;
		$('#news'+newsCount).fadeIn('slow');
	}
}

var navcount=1;
var navintervalId;
var duration1 = 4500;

function executeCallback1()
{
$('#navs'+navcount).css('display','none');
navcount = navcount + 1;
$('#navs'+navcount).fadeIn('slow');
	if(navcount>2){
	navcount=1;
	$('#navs'+navcount).fadeIn('slow');
	}

}

function navsNext()
{
	document.getElementById('navs'+navcount).style.display='none';
	navcount++;
	$('#navs'+navcount).fadeIn('slow');
	if(navcount>2)
	{
		navcount--;
		document.getElementById('navs'+navcount).style.display='none';
		navcount = 1;
		$('#navs'+navcount).fadeIn('slow');
	}
}

function navsBack()
{
	document.getElementById('navs'+navcount).style.display='none';	
	navcount--;
	$('#navs'+navcount).fadeIn('slow');
	if(navcount<1)
	{
		navcount++;
		document.getElementById('navs'+navcount).style.display='none';
		navcount = 2;
		$('#navs'+navcount).fadeIn('slow');
	}
}


/*var minValue=11;
var maxValue=16;
var defaultfont=
    $(document).ready(function(){
		var ChildElements=$('.middleContent *');
		$("#incFont").click(function(){
			var fontSizeNew=parseInt(($('.middleContent *').css("font-size")).replace(/px/,""));
			if(fontSizeNew!=maxValue){fontSizeNew += 1;}
			$('.middleContent *').css("font-size",fontSizeNew+"px");
        });
		
        $("#decFont").click(function(){
			var fontSizeNew=parseInt(($('.middleContent *').css("font-size")).replace(/px/,""));
			if(fontSizeNew!=minValue){fontSizeNew -= 1;}
			$('.middleContent *').css("font-size",fontSizeNew+"px");
        });x
});
*/

$(document).ready(function(){
 var j=12,k=11,l=18;
		
		$('#incFont').click(function(){
			if(k<=13)
			{
				$("#decFont").removeClass("opcity20");
				$("#decFont").addClass("opcity100");
				$("#resetFont").removeClass("opcity20");
				$("#resetFont").addClass("opcity100");
			if(k==13){
				$(this).removeClass("opcity100");
				$(this).addClass("opcity20");	
				}
			j++, k++, l++;	
			
			}
		$('.middleContent h2').css("font-size",l);
		$('.middleContent p').css("font-size",k);
		$('.middleContent ul li').css("font-size",k);
		$('.starKidTabs ul li').css("font-size",'11px')
		$('.contentSpace div').css("overflow","auto");
		$('.keyContent ul').css("font-size",k);
		$('.keyContent strong').css("font-size",k);
		$('.productContent').css("height", "auto");
		$('.productChildContent').css("height", "auto");
        });
		
        $("#decFont").click(function(){
			if(k>=10)
			{
				$("#incFont").removeClass("opcity20");
				$("#incFont").addClass("opcity100");
				$("#resetFont").removeClass("opcity20");
				$("#resetFont").addClass("opcity100");
				if(k==10)
				{
					$(this).removeClass("opcity100");
					$(this).addClass("opcity20");
				}
				j--,k--,l--; 
				
			}
			
			
		$('.middleContent h2').css("font-size",l);
		$('.middleContent p').css("font-size",k);
		$('.middleContent ul li').css("font-size",k);
		$('.starKidTabs ul li').css("font-size",'11px')
		$('.keyContent ul').css("font-size",k);
		$('.keyContent strong').css("font-size",k);
        });
		
		$("#resetFont").click(function ()
		{
			j=12,k=11,l=18;
			$("#decFont").removeClass("opcity20");
			$("#decFont").addClass("opcity100");
			$("#incFont").removeClass("opcity20");
			$("#incFont").addClass("opcity100");
			$("#resetFont").removeClass("opcity100");
			$("#resetFont").addClass("opcity20");
			$('.middleContent h2').css("font-size",l);
			$('.middleContent p').css("font-size",k);
			$('.contentSpace div').css("overflow","hidden");
			$('.middleContent ul li').css("font-size",k);
			$('.starKidTabs ul li').css("font-size",'11px')
			$('.keyContent ul').css("font-size",k);
			$('.keyContent strong').css("font-size",k);
			$('.productContent').css("height", "430px");
			$('.productChildContent').css("height", "325px");
		});


		
});


function MeBook()
{
var MyURL = document.URL;
var MyTitle=document.title;
//alert(MyURL);
bookmarksite(MyTitle, MyURL);
}

function bookmarksite(title,MyURL)
{
	if (window.sidebar) // firefox
	{//alert(MyURL);
		window.sidebar.addPanel(title, MyURL, "");
	}
	else if( window.external ) { // IE Favorite
	window.external.AddFavorite(MyURL, title); }
	else 
	if(window.opera && window.print)
	{ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',MyURL);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else
	if(document.all)// ie
	{
		if(window.external){ window.external.AddFavorite( MyURL, title); return false; } // IE
		//window.external.AddFavorite(MyURL, title);
	}
}
/******************* Image Slider on home page *********************/

var display_time = 7000;
var interval_id;
var transition_speed = 1000;

var FEATURE_LOCK = false;

(function($) {
	$(document).ready(function() {
		$('body').addClass('js');
		if ($('#features div.feature-story').length > 1) {
			if (!FEATURE_LOCK)
				interval_id = setInterval('feature_rotate()', display_time);
			
			$('#features a.feature-link').click(function(event) {
				clearInterval(interval_id);
				
				var feature_id = $(this).attr('href').replace('#feature-', '');
				
				feature_rotate(feature_id);
				$('#features').unbind();
				$(this).blur();
				event.preventDefault();
			});
			
			if (!FEATURE_LOCK) {
				$('#features').mouseenter(function(event) {
					clearInterval(interval_id);
				});
				
				$('#features').mouseleave(function(event) {
					clearInterval(interval_id);
					interval_id = setInterval('feature_rotate()', display_time);
				});
			}
		}
	});
})(jQuery);

function feature_rotate(index) {
	var feature_active;
	var feature_link;
	var feature_new = false;
	
	feature_active = $('#features div.active');
	if (typeof(index) != "undefined") {
		feature_new = $('#features #feature-' + index);
		if (feature_new.attr('id') == feature_active.attr('id'))
			return;
		feature_link = $('#feature-links #feature-link-' + index);
	}
	
	feature_active.removeClass('active').fadeOut(transition_speed);
	$('#feature-links .feature-link').removeClass('active');
	
	if (!feature_new) {
		if (feature_active.next().length > 0) {
			feature_new = feature_active.next();
			var feature_id = feature_new.attr('id').replace('feature-', '');
			feature_link = $('#feature-links #feature-link-' + feature_id);
		} else {
			feature_new = $('#features #feature-1');
			feature_link = $('#feature-links #feature-link-1');
		}
	}
	
	feature_link.addClass('active');
	feature_new.addClass('active').fadeIn(transition_speed);
}


	

function contBodyTabs(a)
       {
		var a;
		for(i=1; i<=4; i++)
			
			{
				document.getElementById('cont'+ i).style.display='none';
				document.getElementById('tab'+ i).className='';
			}
			//alert('sss');
			document.getElementById('cont'+ a).style.display='block';
			document.getElementById('tab'+ a).className='selectItem';
			//document.getElementById('claim').style.display='none';
		}
		
		

function bodyTab(a)
       {
		var a;
		for(i=1; i<=3; i++)
			
			{
				document.getElementById('cont'+ i).style.display='none';
				document.getElementById('tab'+ i).className='';
			}
			//alert('sss');
			document.getElementById('cont'+ a).style.display='block';
			document.getElementById('tab'+ a).className='selectItem';
			document.getElementById('claim').style.display='none';
		}
		
function closeTab(a)
   {
		var a;
		for(i=1; i<=3; i++)
			
			{
				document.getElementById('cont'+ i).style.display='none';
				document.getElementById('claim').style.display='block';
				document.getElementById('tab'+ i).className='';
			}
			
		}
		
		
function bodyTabLife(a)
       {
		var a;
		for(i=1; i<=4; i++)
			
			{
				document.getElementById('cont'+ i).style.display='none';
				document.getElementById('tab'+ i).className='';
			}
			//alert('sss');
			document.getElementById('cont'+ a).style.display='block';
			document.getElementById('tab'+ a).className='selectItem';
			document.getElementById('claim').style.display='none';
		}
function starKidTab(a)
{
	for(i=1;i<=3;i++)
	{
		//document.getElementById('content'+ i).style.display='none';
		document.getElementById('list'+ i).className='';
	}
	document.getElementById('content1').style.display='block';
	document.getElementById('list'+ a).className='sel';	
	
	scrollGroup();
	starKidTabInner(a);
}

function groupKeyTabs(a)
{
	var len = $('ul.gKeyButtons li').length;
		for(i=1;i<=len;i++)
	{
		//document.getElementById('content'+ i).style.display='none';
		document.getElementById('list'+ i).className='';
	}
	document.getElementById('content1').style.display='block';
	document.getElementById('list'+ a).className='sel';	
	
	scrollGroup();
	groupTabInner(a);
	 
}
function groupKeyTabsEdil(a)
{
	for(i=1;i<=2;i++)
	{
		//document.getElementById('content'+ i).style.display='none';
		document.getElementById('list'+ i).className='';
	}
	document.getElementById('content1').style.display='block';
	document.getElementById('list'+ a).className='sel';	
	
	starKidTabInnerEdil(a);
}


/*function myScroll(){
	
	$(function()
			{
				// this initialises the demo scollpanes on the page.
					$('.keyContent').jScrollPane({scrollbarWidth:15, scrollbarMargin:10});
					
			});
	}*/

function groupTabInner(n)
{

var len = $('div.starKidTabs li').length;

	for(i=1;i<=len;i++)
	{
		document.getElementById('innerContent'+ i).style.display='none';
		document.getElementById('kidInfo'+ i).className='';
	}
	document.getElementById('innerContent'+ n).style.display='block';
	document.getElementById('kidInfo'+ n).className='selTabs';
	scrollGroup();
}
function groupTabInnerEdil(n)
{

	for(i=1;i<=2;i++)
	{
		document.getElementById('innerContent'+ i).style.display='none';
		document.getElementById('kidInfo'+ i).className='';
	}
	document.getElementById('innerContent'+ n).style.display='block';
	document.getElementById('kidInfo'+ n).className='selTabs';
	scrollGroup();
}


function starKidTabInner(n)
{
	var length = $('div.starKidTabs li').length;
	
	for(i=1;i<=length;i++)
	{
		document.getElementById('innerContent'+ i).style.display='none';
		document.getElementById('kidInfo'+ i).className='';
	}
	document.getElementById('innerContent'+ n).style.display='block';
	document.getElementById('kidInfo'+ n).className='selTabs';
	scrollGroup();
}
function starKidTabInnerEdil(n)
{
	//alert(n);
	for(i=1;i<=2;i++)
	{
		document.getElementById('innerContent'+ i).style.display='none';
		document.getElementById('kidInfo'+ i).className='';
	}
	document.getElementById('innerContent'+ n).style.display='block';
	document.getElementById('kidInfo'+ n).className='selTabs';
	scrollGroup();
}
function closeStarKid(a)
{
		document.getElementById('content1').style.display='none';
		//document.getElementById('content2').style.display='none';
}

function closeTabLife(a)
   {
		var a;
		for(i=1; i<=4; i++)
			
			{
				document.getElementById('cont'+ i).style.display='none';
				document.getElementById('claim').style.display='block';
				document.getElementById('tab'+ i).className='';
			}
			
		}		
		

var a;
function newsArchive(a)
	{
		for(i=1; i<=9; i++)
		
		{
		document.getElementById('archive' + i).style.display='none';
		document.getElementById('tab' + i).className='';	
		}
		scrollGroup();
		document.getElementById('archive' + a).style.display='block'	
		document.getElementById('tab' + a).className='selectedTab';	
		//showNews(a);
		
		
	}


function listClaim(a){
	
	for(var i=1; i<=3; i++)
	{
		if(i!=a)
		{
			$("#listInfo"+i).slideUp('medium');
			$("#ques"+i).removeClass("minus");
			$("#ques"+i).addClass("plus");
		}
	}
	
	$("#listInfo"+a).slideToggle('medium');
	$("#ques"+a).removeClass("plus");
	$("#ques"+a).addClass("minus");
}
/**************** Glossary **/
function showOptn()
	{
		var myselect=document.getElementById("sample");
		for(i=1; i<myselect.options.length+1; i++){
			document.getElementById('cont'+i).style.display = 'none';
			 if(myselect.options[i].selected==true){
			 //alert(i);
			 var j = i+1;
			//document.getElementById('cont'+i).style.display = 'none';
			document.getElementById('cont'+j).style.display = 'block';
		 }
	}
		
		
}


function payoption(a)
 	{
		var a;
		for (i=1; i<=4; i++)
		{
		document.getElementById('payoptionContent'+i).style.display='none';	
		document.getElementById('payinfo'+i).className='';	
		}
		document.getElementById('payoptionContent'+a).style.display='block';
		document.getElementById('payinfo'+a).className='selTabs';
	}
	
function grievance(a)
 	{
		var a;
		for (i=1; i<=3; i++)
		{
		document.getElementById('griev'+i).style.display='none';	
		document.getElementById('tabs'+i).className='';	
		}
		document.getElementById('griev'+a).style.display='block';
		document.getElementById('tabs'+a).className='selTabs';
		
		scrollGroup();
		
	}
	
	
function policyServ(a)
 	{
		var a;
		for (i=1; i<=5; i++)
		{
		document.getElementById('policy'+i).style.display='none';	
		document.getElementById('tabs'+i).className='';	
		}
		
		document.getElementById('policy'+a).style.display='block';
		document.getElementById('tabs'+a).className='selTabs';
		scrollGroup();
	}
	
function custDetailsScrooll(){
		scrollGroup();
	}

function showCalc(a)
{
	for(i=1;i<=5;i++)
	{
		document.getElementById('calc'+ i).style.display='none';
	}
	//alert('show calc');
	document.getElementById('calc'+ a).style.display='block';
}	

function closeCalc(a)
   {
		var a;
		for(i=1; i<=5; i++)
			
			{
				document.getElementById('calc'+ i).style.display='none';
			}
			
		}





function selpremiumbox(no,count) // Tab toggles for inside menu
{	
	for (var i=1; i<=count; i++)
	{	
		document.getElementById('premium_content'+ i).style.display ="none"
		//document.getElementById('prem_img' + i).src=tabpremiumimages[i];
		//document.getElementById('prem_img'+ i).className =""
	}
	for (var i=1; i<=4; i++)
	{	
		document.getElementById('payoptionContent'+ i).style.display ="none"
	}
	document.getElementById('premium_content'+ no).style.display ="block"
	displayPayOnline();
}
function closepremium(no)
{
	for (var i=1; i <= 21; i++)
	{	
		document.getElementById('premium_content'+ i).style.display ="none"
		//document.getElementById('prem_img' + i).src=tabpremiumimages[i];
		//document.getElementById('prem_img'+ i).className =""
	}
	for (var i=1; i<=4; i++)
	{	
		document.getElementById('payoptionContent'+ i).style.display ="none"
	}
	document.getElementById('payoptionContent'+ no).style.display ="block"
}


function payoption(no) // Tab toggles for inside menu
{
	for (var i=1; i <= 21; i++)
	{	
		document.getElementById('premium_content'+ i).style.display ="none"
		//document.getElementById('prem_img' + i).src=tabpremiumimages[i];
		//document.getElementById('prem_img'+ i).className =""
	}
	for(i=1;i<=4;i++)
	{
		document.getElementById('payoptionContent' + i).style.display='none';
		document.getElementById('payinfo' + i).className='';
	}
	//alert(no);
	document.getElementById('payoptionContent' + no).style.display='block';
	document.getElementById('payinfo' + no).className='selTabs';
	opacity('tabdesc', 0, 100, 500);
}


function selectValue(a)
{
	//alert(a);
	var a;
	for(i=1; i<=9; i++)
	{
	document.getElementById('faq'+i).style.display='none';	
	}
	document.getElementById('faq'+a).style.display='block';	
	if(document.getElementById('faq3').style.display=='block')
	{
		document.getElementById('faqHead').value = 3;
	}
}
	

	
function glosaryInfo(a)
 	{
		var a;
		for (i=1; i<=6; i++)
		{
		document.getElementById('glosary'+ i).style.display='none';	
		document.getElementById('tab'+ i).className='';	
		}
		
		document.getElementById('glosary'+ a).style.display='block';
		document.getElementById('tab'+ a).className='sel';
	}	



// FAQs Section Start here

function togglediv(n){
	var len =  $('#faq1 li').size();
	for(var i=1; i<=len; i++){
		
		$("#slide"+i).slideUp("medium");
		$('#ques'+i).removeClass("activeItem");
		}
	
	$("#slide"+n).slideToggle("medium");
	$('#ques'+n).addClass("activeItem");
	}
	
function togglediv2(n){
	var len =  $('#faq2 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq2slide"+i).slideUp("medium");
		$('#faq2ques'+i).removeClass("activeItem");
		}
	
	$("#faq2slide"+n).slideToggle("medium");
	$('#faq2ques'+n).addClass("activeItem");
	}
	
function togglediv3(n){
	var len =  $('#faq3 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq3slide"+i).slideUp("medium");
		$('#faq3ques'+i).removeClass("activeItem");
		}
	
	$("#faq3slide"+n).slideToggle("medium");
	$('#faq3ques'+n).addClass("activeItem");
	}

function togglediv4(n){
	var len =  $('#faq4 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq4slide"+i).slideUp("medium");
		$('#faq4ques'+i).removeClass("activeItem");
		}
	
	$("#faq4slide"+n).slideToggle("medium");
	$('#faq4ques'+n).addClass("activeItem");
	}
	
function togglediv5(n){
	var len =  $('#faq5 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq5slide"+i).slideUp("medium");
		$('#faq5ques'+i).removeClass("activeItem");
		}
	
	$("#faq5slide"+n).slideToggle("medium");
	$('#faq5ques'+n).addClass("activeItem");
	}
	
function togglediv6(n){
	var len =  $('#faq6 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq6slide"+i).slideUp("medium");
		$('#faq6ques'+i).removeClass("activeItem");
		}
	
	$("#faq6slide"+n).slideToggle("medium");
	$('#faq6ques'+n).addClass("activeItem");
	}
	
function togglediv7(n){
	var len =  $('#faq7 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq7slide"+i).slideUp("medium");
		$('#faq7ques'+i).removeClass("activeItem");
		}
	
	$("#faq7slide"+n).slideToggle("medium");
	$('#faq7ques'+n).addClass("activeItem");
	}
	
function togglediv8(n){
	var len =  $('#faq8 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq8slide"+i).slideUp("medium");
		$('#faq8ques'+i).removeClass("activeItem");
		}
	
	$("#faq8slide"+n).slideToggle("medium");
	$('#faq8ques'+n).addClass("activeItem");
	}
	
function togglediv9(n){
	var len =  $('#faq9 li').size();
	for(var i=1; i<=len; i++){
		
		$("#faq9slide"+i).slideUp("medium");
		$('#faq9ques'+i).removeClass("activeItem");
		}
	
	$("#faq9slide"+n).slideToggle("medium");
	$('#faq9ques'+n).addClass("activeItem");
	}

// FAQs Section end here


function overlay(n)
{
	var wid = $(window).width();
	
	var hwid = (wid/2) - 490;
	
	//alert(hwid);
	
	document.getElementById('back').style.width = document.body.clientWidth + "px";
	document.getElementById('back').style.height = document.body.clientHeight +"px";
	document.getElementById('back').style.display = 'block';
	$('#backInner'+n).css({"margin-left" : hwid, "margin-top": '22px'});
	document.getElementById('backInner'+n).style.display = 'block';
	//document.getElementById('backInner').style.margin-left
	window.location.href = "#";

	//alert($(window).width());
	
}


function closeoverlay(n){
	document.getElementById('back').style.display = 'none';
	document.getElementById('backInner'+n).style.display = 'none';
	}


/* Menu Color change */
function topLinksShow(n)
{
//var pageUrl = window.location.href;
//alert(location.href.indexOf("life-needs"));
switch(n)	{
case 1:
document.getElementById('menu1').className = 'lifeneeds';
break;

case 2:
document.getElementById('menu2').className = 'lifeneeds';
break;

case 3:
document.getElementById('menu3').className = 'lifeneeds';
break;

case 4:
document.getElementById('menu4').className = 'lifeneeds';
break;

case 5:
document.getElementById('menu5').className = 'lifeneeds';
break;

case 6:
document.getElementById('menu6').className = 'lifeneeds';
break;
}
}


function rightColumnheight() {
	
	//alert(document.getElementsByClassName('mainContainer').offsetHeight);
	
	$('div.rightColumn').css('height', '556px');
	
	}
function swapOver(n)
{
	document.getElementById('list'+n).className = 'sel';
}
function swapOut(n)
{
	document.getElementById('list'+n).className = '';
}
	

function openCheque(){
	$('#cashcq1').fadeIn('medium');
	}
	

function branchLocator(){
	
document.getElementById('content1').style.display='block';
	
	}
function claimFaq()
{
	if(document.URL.toString().indexOf('=') != "-1")
	{	
		var Par= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		if(Par=="faq2")
		{
			selectValue(3);
		}
		else
		{
			selectValue(1);	
		}
	}

	

}

function tataBranches()
{
	if(document.URL.toString().indexOf('=') != "-1")
	{	
		var Par= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		//alert(Par);
		if(Par=="tataAigBranch")
		{
			branchLocator()
		}
		
	}

	

}

function premCalculator()
{
	if(document.URL.toString().indexOf('=') != "-1")
	{	
		var Par= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		//alert(Par);
		if(Par=="premMahaGold" || Par=="healthFirst" || Par=="mahaGuarntee" || Par=="retNirvana")
		{
			starKidTab('2');
		}
		
	}

	

}


/* common function files*/

/*
	function trim(inputString) 
	function ValidateDate(txt)
	function ValidateEMailID(txt)
*/
// START the "trim" function
function trim(inputString) 
{
		// Removes leading and trailing spaces from the passed string. Also removes
		// consecutive spaces and replaces it with one space. If something besides
		// a string is passed in (null, custom object, etc.) then return the input.
		if (typeof inputString != "string") { return inputString; }
		
		var retValue = inputString;
		var ch = retValue.substring(0, 1);
		
		while (ch == " ")
		{ // Check for spaces at the beginning of the string
			retValue = retValue.substring(1, retValue.length);
			ch = retValue.substring(0, 1);
		}
		
		ch = retValue.substring(retValue.length-1, retValue.length);
		
		while (ch == " ") 
		{ // Check for spaces at the end of the string
			retValue = retValue.substring(0, retValue.length-1);
			ch = retValue.substring(retValue.length-1, retValue.length);
		}
		
		while (retValue.indexOf("  ") != -1) 
		{ // Note that there are two spaces in the string - look for multiple spaces within the string
			retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
		}
		
		return retValue; // Return the trimmed string back to the user
} 
// END the "trim" function


// START Date Validation Function 
var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s)
{
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) 
        {
            return false;
        }
    }
    // All characters are numbers.
    return true;
}

function ischar(s)
{
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        
        var c = s.charAt(i);
        if (!((c < "0") || (c > "9"))) 
        {
            return false;
        }
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year)
{
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
	return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}

function DaysArray(n) 
{
	for (var i = 1; i <= n; i++) 
	{
		this[i] = 31;
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
	} 
	return this;
}

function isDate(dtStr)
{
	var daysInMonth = DaysArray(12);
	var pos1=dtStr.indexOf(dtCh);
	var pos2=dtStr.indexOf(dtCh,pos1+1);
	var strDay=dtStr.substring(0,pos1);
	var strMonth=dtStr.substring(pos1+1,pos2);
	var strYear=dtStr.substring(pos2+1);
	strYr=strYear;
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) 
	{
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth);
	day=parseInt(strDay);
	year=parseInt(strYr);
	if (pos1==-1 || pos2==-1)
	{
		alert("The date format should be : DD/MM/YYYY");
		return false;
	}
	if (strMonth.length<1 || month<1 || month>12)
	{
		alert("The date format should be : DD/MM/YYYY");
		return false;
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month])
	{
		alert("The date format should be : DD/MM/YYYY");
		return false;
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear)
	{
		alert("The date format should be : DD/MM/YYYY");
		return false;
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false)
	{
		alert("The date format should be : DD/MM/YYYY");
		return false;
	}
return true;
}

function ValidateDate(txt)
{
	var dt=document.getElementById(txt);
	if (isDate(dt.value)==false)
	{
		dt.focus();
		return false;
	}
    return true;
 }
//END Date Validation Function 

// START DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/) 
//(http://www.smartwebby.com/DHTML/email_validation.asp)

function echeckwithoutalert(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;				
	}

 
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;				
	}

function ValidateEMailID(txt)
{
	var emailID= txt
	
	if ((emailID==null)||(trim(emailID)==""))
	{
		alert("Please Enter your Email ID");
		emailID.focus();
		return false;
	}
	if (echeck(emailID.value)==false)
	{
		emailID="";
		emailID.focus();
		return false;
	}
	return true;
}
 
function IsMoney(str)
{
    mystring = str;
    if (mystring.match(/^\d+$|^\d+\.\d{2}$/ ) ) 
    {
        return true;
    }
    else
    {
        return false;
    }
}


function chkSpecialchar(s)
{
    var i;
    if(s.value != "")
	{
	    var a=s.value;
	    for (i = 0; i < a.length; i++)
	    {
	        var c = a.charAt(i);
	        if(c == "!" || c == "#" || c== "'" || c =="^" || c ==":"|| c =="\"" || c == "*"|| c == ":" || c == "(" || c == ")" || c == "+" || c == "=" || c=="|" || c== "<" ||  c == ">" || c=="%" || c == "?" || c=="/")
	        {
	            //alert("Special Characters are not accepted...!");
	            s.value="";
	            s.focus();
	            return false;
	        }
	    }
    }
    else
    {
        //alert("Paramter is Empty");
    }
    return true;
}

function chkSpecialcharAddress(s)
{
    var i;
    if(s.value != "")
	{
	    var a=s.value;
	    for (i = 0; i < a.length; i++)
	    {
	        var c = a.charAt(i);
	        if(c == "!" || c == "#" || c== "'" || c =="^" || c ==":"|| c =="\"" || c == "*"|| c == ":" || c == "(" || c == ")" || c == "+" || c == "=" || c=="|" || c== "<" ||  c == ">" || c=="%" || c == "?")
	        {
	        
	            alert("Special Characters are not accepted...!");
	            s.value="";
	            s.focus();
	            return false;
	        }
	    }
    }
    else
    {
        //alert("Paramter is Empty");
    }
    return true;
}

function chkSpecialcharTime(s)
{
    var i;
    if(s.value != "")
	{
	    var a=s.value;
	    for (i = 0; i < a.length; i++)
	    {
	        var c = a.charAt(i);
	        if(c == "!" || c == "#" || c== "'" || c =="^" || c =="\"" || c == "*"|| c == "(" || c == ")" || c == "+" || c == "=" || c=="|" || c== "<" ||  c == ">" || c=="%" || c == "?")
	        {
	        
	            alert("Special Characters are not accepted...!");
	            s.value="";
	            s.focus();
	            return false;
	        }
	    }
    }
    else
    {
        //alert("Paramter is Empty");
    }
    return true;
}

//end of functions



//email us form validation

function Contactusvalidation()
{
	if(trim(document.getElementById("txtContactusname").value) == "")
	{
		alert("Please enter Name");
		document.getElementById("txtContactusname").focus();
		document.getElementById("txtContactusname").value = "";
		return false;
	}
	if((ischar(document.getElementById("txtContactusname").value))== false)
    {
        //document.getElementById("hdmeetadvisorerrmsg").value = "Only Alphabets allowed";
				alert("Only Alphabets allowed");
        document.getElementById("txtContactusname").value = "";
        document.getElementById("txtContactusname").focus(); 
        return false;
    }
	if(!chkSpecialchar(trim(document.getElementById("txtContactusname"))) != "")
	{
						alert("No Specialchars allowed");
		document.getElementById("txtContactusname").focus();
		document.getElementById("txtContactusname").value = "";
		return false;
	}
	
	
	if(trim(document.getElementById("txtContactpolicyno").value) == "")
	{
		alert("Please enter Policy no");
		document.getElementById("txtContactpolicyno").focus();
		document.getElementById("txtContactpolicyno").value = "";
		return false;
	}
	if(!chkSpecialchar(trim(document.getElementById("txtContactpolicyno"))) != "")
		{
			alert("No Specialchars allowed");
			document.getElementById("txtContactpolicyno").focus();
			document.getElementById("txtContactpolicyno").value = "";
			return false;
		}
		
		if(!(trim(document.getElementById("txtContactpolicyno").value).charAt(0) == "C" || trim(document.getElementById("txtContactpolicyno").value).charAt(0) == "U" || trim(document.getElementById("txtContactpolicyno").value).charAt(0) == "c" || trim(document.getElementById("txtContactpolicyno").value).charAt(0) == "u"))
	{
	   alert("The policy no provided is incorrect. Please enter a valid 10 digit policy number beginning with 'C' or 'U' !");
		document.getElementById("txtContactpolicyno").focus();
		return false;
	}
	
	varPolNo = document.getElementById("txtContactpolicyno").value;
   if(varPolNo != "" && isInteger(varPolNo.substring(1, varPolNo.length)) == false)
	{
	   alert("The policy no provided is incorrect. Please enter a valid 10 digit policy number beginning with 'C' or 'U' !");
		document.getElementById("txtContactpolicyno").focus();
		return false;
	}
	
	
	 if(document.getElementById("txtContactpolicyno").value != "" && document.getElementById("txtContactpolicyno").value.length < 10)
   {
      alert("The policy no provided is incorrect. Please enter a valid 10 digit policy number beginning with 'C' or 'U' !");
     document.getElementById("txtContactpolicyno").focus();
      return false;
   }
	
	
	if(trim(document.getElementById("txtsum").value) == "")
	
	{
		alert("Please Enter Sum Assured");
		document.getElementById("txtsum").focus();
		document.getElementById("txtsum").value = "";
		return false;
	}
	realReg = /^\-?([1-9]\d*|0)(\.\d?[1-9])?$/;
	
	if(!realReg.test(document.getElementById("txtsum").value))
	
	{
		alert("Please Enter Digits");
		document.getElementById("txtsum").focus();
		document.getElementById("txtsum").value = "";
		return false;
	}
	if(isInteger(document.getElementById("txtsum").value) == false)
	
	{
		alert("Please Enter Digits");
		document.getElementById("txtsum").focus();
		document.getElementById("txtsum").value = "";
		return false;
		
		}
		
		
	var varDate = trim(document.getElementById("txtdob").value);
	if (isDate(varDate, "dd/MM/yyyy") == false)
	{
	   //alert("Enter Valid Date of birth !");
		document.getElementById("txtdob").focus();
		return false;
	}
	
	
	
	if(trim(document.getElementById("txtContactuslandlinenostd").value) == "" && trim(document.getElementById("txtContactusmobileno").value) == "")
	{
	   alert("Enter Either Mobile Or Landline No with STD Code !");
		document.getElementById("txtContactusmobileno").focus();
		return false;
	}
   if(document.getElementById("txtContactusmobileno").value != "" && isInteger(document.getElementById("txtContactusmobileno").value) == false)
   {
      alert("Mobile No should be in Digits !");
      document.getElementById("txtContactusmobileno").value = "";
      document.getElementById("txtContactusmobileno").focus();
      return false;
   }
   if(document.getElementById("txtContactusmobileno").value != "" && document.getElementById("txtContactusmobileno").value.length < 10)
   {
      alert("Mobile No should be of min 10 Digits !");
      document.getElementById("txtContactusmobileno").value = "";
      document.getElementById("txtContactusmobileno").focus();
      return false;
   }

   if(document.getElementById("txtContactuslandlineno").value != "" && isInteger(document.getElementById("txtContactuslandlineno").value) == false)
   {
      alert("Landline No should be in Digits !");
      document.getElementById("txtContactuslandlineno").value = "";
      document.getElementById("txtContactuslandlineno").focus();
      return false;
   }
   if (document.getElementById("txtContactuslandlineno").value != "")
   {
	   if (document.getElementById("txtContactuslandlinenostd").value == "")
	   {
			alert("Enter STD No !");
			document.getElementById("txtContactuslandlinenostd").value = "";
			document.getElementById("txtContactuslandlinenostd").focus();
			return false;
	   }
		if(document.getElementById("txtContactuslandlinenostd").value != "" && isInteger(document.getElementById("txtContactuslandlinenostd").value) == false)
		{
			alert("STD No should be in Digits !");
			document.getElementById("txtContactuslandlinenostd").value = "";
			document.getElementById("txtContactuslandlinenostd").focus();
			return false;
		}
	   if(document.getElementById("txtContactuslandlinenostd").value != "" && document.getElementById("txtContactuslandlinenostd").value.length < 3)
	   {
		  alert("STD No should be of min 3 Digits !");
		  document.getElementById("txtContactuslandlinenostd").value = "";
		  document.getElementById("txtContactuslandlinenostd").focus();
		  return false;
	   }
	   if(document.getElementById("txtContactuslandlinenostd").value != "" && trim(document.getElementById("txtContactuslandlinenostd").value).charAt(0) != "0")
		{
		   alert("STD No. should start with 0 !");
			document.getElementById("txtContactuslandlinenostd").focus();
			return false;
		}   
   }
   if(document.getElementById("txtContactuslandlineno").value != "" && document.getElementById("txtContactuslandlineno").value.length < 5)
   {
      alert("Landline No should be of min 5 Digits !");
      document.getElementById("txtContactuslandlineno").value = "";
      document.getElementById("txtContactuslandlineno").focus();
      return false;
   }

	
	
	if(trim(document.getElementById("txtContactusemailid").value) == "")
	{
		alert("Please Enter Email ID");
		document.getElementById("txtContactusemailid").focus();
		document.getElementById("txtContactusemailid").value = "";
		return false;
	}
	if(!echeck(trim(document.getElementById("txtContactusemailid").value)))
	{
		//alert("Please enter valid EMailId");
		document.getElementById("txtContactusemailid").focus();
		document.getElementById("txtContactusemailid").value = "";
		return false;
	}
	
	
	
	
	
	
		
		if(trim(document.getElementById("txtContactussubject").value) == "")
	{
		alert("Please enter Subject");
		document.getElementById("txtContactussubject").focus();
		document.getElementById("txtContactussubject").value = "";
		return false;
	}
	if(!chkSpecialchar(trim(document.getElementById("txtContactussubject"))) != "")
		{
			alert("No Specialchars allowed");
			document.getElementById("txtContactussubject").focus();
			document.getElementById("txtContactussubject").value = "";
			return false;
		}
		if(trim(document.getElementById("txtContactusdesc").value) == "")
	{
		alert("Please enter Description");
		document.getElementById("txtContactusdesc").focus();
		document.getElementById("txtContactusdesc").value = "";
		return false;
	}
	if(!chkSpecialchar(trim(document.getElementById("txtContactusdesc"))) != "")
		{
			alert("No Specialchars allowed");
			document.getElementById("txtContactusdesc").focus();
			document.getElementById("txtContactusdesc").value = "";
			return false;
		}
	document.formcontactus.submit();
	document.getElementById("divcontactus").style.display = "none";
	document.getElementById("divdivcontactusthankyou").style.display = "block";
	
	return false;

}


//end

//meet an advisor validation//
function meetadviser1()
{
	if(trim(document.getElementById("txtname").value) == "")
	{
		alert("Please enter Name");
		document.getElementById("txtname").focus();
		document.getElementById("txtname").value = "";
		return false;
	}
	if((ischar(document.getElementById("txtname").value))== false)
    {
        //document.getElementById("hdmeetadvisorerrmsg").value = "Only Alphabets allowed";
				alert("Only Alphabets allowed");
        document.getElementById("txtname").value = "";
        document.getElementById("txtname").focus(); 
        return false;
    }
	if(!chkSpecialchar(trim(document.getElementById("txtname"))) != "")
	{
						alert("No Specialchars allowed");
		document.getElementById("txtname").focus();
		document.getElementById("txtname").value = "";
		return false;
	}
	
	if(trim(document.getElementById("txtmobileno").value) == "" )
	{
		alert("Please enter Mobile no");
		document.getElementById("txtmobileno").focus();
		document.getElementById("txtmobileno").value = "";
		return false;
	}	
	
	
	if(trim(document.getElementById("txtmobileno").value) != "")
	{
		if(!chkSpecialchar(trim(document.getElementById("txtmobileno"))) != "")
		{
			alert("No Specialchars allowed");
			document.getElementById("txtmobileno").focus();
			document.getElementById("txtmobileno").value = "";
			return false;
		}
	}

	
	if(document.getElementById("txtmobileno").value != "" && isInteger(document.getElementById("txtmobileno").value) == false)
   {
      alert("Mobile No should be in Digits !");
      document.getElementById("txtmobileno").value = "";
      document.getElementById("txtmobileno").focus();
      return false;
   }
   if(document.getElementById("txtmobileno").value != "" && document.getElementById("txtmobileno").value.length < 10)
   {
      alert("Mobile No should be of min 10 Digits !");
      document.getElementById("txtmobileno").value = "";
      document.getElementById("txtmobileno").focus();
      return false;
   }
	
    if(window.parent.document.getElementById('hdproductname') != null)
    {
      document.getElementById("hdproduct").value = window.parent.document.getElementById('hdproductname').value;
    }

	document.formmeetadviser1.submit();
	alert('Thanks for submitting your details');
	document.getElementById("txtname").value = "";
	document.getElementById("txtmobileno").value = "";
   //document.getElementById("meetform").style.display = "none";
	//document.getElementById("divthankyou1").style.display = "block";
	return false;

}
//

//become an agent validation//
function meetadviser2()
{
	if(trim(document.getElementById("txtname2").value) == "")
	{
		alert("Please enter Name");
		document.getElementById("txtname2").focus();
		document.getElementById("txtname2").value = "";
		return false;
	}
	if((ischar(document.getElementById("txtname2").value))== false)
    {
        //document.getElementById("hdmeetadvisorerrmsg").value = "Only Alphabets allowed";
				alert("Only Alphabets allowed");
        document.getElementById("txtname2").value = "";
        document.getElementById("txtname2").focus(); 
        return false;
    }
	if(!chkSpecialchar(trim(document.getElementById("txtname2"))) != "")
	{
						alert("No Specialchars allowed");
		document.getElementById("txtname2").focus();
		document.getElementById("txtname2").value = "";
		return false;
	}
	
	if(trim(document.getElementById("txtmobileno2").value) == "" )
	{
		alert("Please enter Mobile no");
		document.getElementById("txtmobileno2").focus();
		document.getElementById("txtmobileno2").value = "";
		return false;
	}	
	
	
	if(trim(document.getElementById("txtmobileno2").value) != "")
	{
		if(!chkSpecialchar(trim(document.getElementById("txtmobileno2"))) != "")
		{
			alert("No Specialchars allowed");
			document.getElementById("txtmobileno2").focus();
			document.getElementById("txtmobileno2").value = "";
			return false;
		}
	}

	
	if(document.getElementById("txtmobileno2").value != "" && isInteger(document.getElementById("txtmobileno2").value) == false)
   {
      alert("Mobile No should be in Digits !");
      document.getElementById("txtmobileno2").value = "";
      document.getElementById("txtmobileno2").focus();
      return false;
   }
   if(document.getElementById("txtmobileno2").value != "" && document.getElementById("txtmobileno2").value.length < 10)
   {
      alert("Mobile No should be of min 10 Digits !");
      document.getElementById("txtmobileno2").value = "";
      document.getElementById("txtmobileno2").focus();
      return false;
   }

	document.formmeetadviser2.submit();
	alert('Thanks for submitting your details');
	document.getElementById("txtname2").value = "";
	document.getElementById("txtmobileno2").value = "";
   //document.getElementById("meetform").style.display = "none";
	//document.getElementById("divthankyou1").style.display = "block";
	return false;

}

function skypack(){
	
document.getElementById('content2').style.display='block';
	
}


function skypackClose(){
	
document.getElementById('content2').style.display='none';
	
}

/*function branchLocatorEbox(){
	
document.getElementById('ebox').style.display='block';
	
	}*/

/*function branchLocatorEboxclose(){
	
document.getElementById('ebox').style.display='none';
	
	}*/
	
function csbranch(){
	
document.getElementById('cs').style.display='block';
	
	}

function csbranchclose(){
	
document.getElementById('cs').style.display='none';
	
	}

function showPrem()
{
	
//	alert('ddd');
	if(document.URL.toString().indexOf('=') != "-1")
	{
			//document.getElementById('menu_main').style.display = 'none';

       	var Par= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
				//alert(document.URL.toString().indexOf('='));
		if(Par=="online")
		{
			selpremiumbox(1,21);
			//alert('sss');
		}		
		if(Par=="neft")
		{
			selpremiumbox(2,21);
			//alert('sss');
		}	
		
		if(Par=="ebpp")
		{
			selpremiumbox(3,21);
			//alert('sss');
		}	
		if(Par=="quickpay")
		{
			selpremiumbox(4,21);
			//alert('sss');
		}	
		
		
	}
	
}
//

function scrollGroup()
{
	$('.contentGroup').jScrollPane({scrollbarWidth:15, scrollbarMargin:10});	
}


function swapGif(img, newimage) {
	
      img.src = '../../images/' + newimage + ".gif";

}
function fundPerform(n)
{
	for(i=1;i<=2;i++)
	{
		document.getElementById('payoptionContent'+i).style.display='none';	
		document.getElementById('payinfo'+i).className='';	
	}
	document.getElementById('payoptionContent'+n).style.display='block';	
	document.getElementById('payinfo'+n).className='selTabs';	
	
}


function displayPayOnline(){
	
		// this initialises the demo scollpanes on the page.
$('.scrollBox').jScrollPane({scrollbarWidth:15, scrollbarMargin:10});
	
}


function selectedTab(no)
	{

		//alert('s');
  for(var i=1; i<=7; i++)
		{
			
			document.getElementById('tab'+i).className = '';
			$('#tab'+no).css('font-weight','normal');
			
		}
		
			document.getElementById('tab'+no).className = 'sel';
			$('#tab'+no).css('font-weight','bold');
					
		
	}
	

function imgSwap() {
	document.getElementById('list3').className = 'premOut';
}
function imgSwapOut() {
	document.getElementById('list3').className = 'prem';
	}

function selectedTab(no)
	{

		//alert('s');
  for(var i=1; i<=7; i++)
		{
			
			document.getElementById('tab'+i).className = '';
			$('#tab'+no).css('font-weight','normal');
			
		}
		
			document.getElementById('tab'+no).className = 'sel';
			$('#tab'+no).css('font-weight','bold');
					
		
	}
	
	
function overlay1(n)
{
	var wid = $(window).width();
	
	var hwid = (wid/2) - 490;
	
	//alert(hwid);
	document.getElementById('feedback').src='https://apps.tata-aig-life.com/CP/feedback/custFeedBack.jsp';
	var f = document.getElementById('feedback');
	f.src = f.src;
	document.getElementById('back').style.width = document.body.clientWidth + "px";
	document.getElementById('back').style.height = document.body.clientHeight +"px";
	document.getElementById('back').style.display = 'block';
	$('#backInner'+n).css({"margin-left" : hwid, "margin-top": '22px'});
	document.getElementById('backInner'+n).style.display = 'block';
	//document.getElementById('backInner').style.margin-left
	window.location.href = "#";

	//alert($(window).width());
	
}
<!--

//Disable right mouse click Script
//By Maximus (&#109;&#097;&#120;&#105;&#109;&#117;&#115;&#064;&#110;&#115;&#105;&#109;&#097;&#105;&#108;&#046;&#099;&#111;&#109;) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")

document.onMouseDown=new Function("return false")

// -->


function showcustFeedOverLay()
{
	
	if(document.URL.toString().indexOf('=') != "-1")
	{	
		var Par= document.URL.toString().substr(document.URL.toString().indexOf('=') + 1);
		if(Par=="custFeedback")
		{
			overlay(10);
		}
		
	}

	

}
