ns4=(document.layers)? true:false
ie4=(document.all)? true:false
 var showflag; 
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

HM_NS6 = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")) ? true : false;
   HM_DOM = (document.getElementById) ? true : false;
   HM_NS4 = (document.layers) ? true : false;
    HM_IE = (document.all) ? true : false;
   HM_IE4 = HM_IE && !HM_DOM;
   HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  HM_IE4M = HM_IE4 && HM_Mac;
 HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
 HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_Konqueror && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";
function getReal(xy,el){
   if((HM_IE)||(HM_DOM)){
      Pos=(xy=="x")?el.offsetLeft:el.offsetTop;
	 
      if ((HM_IE)&&(!HM_Mac)&&(el.tagName)&&
          (el.tagName.toUpperCase()=="TABLE")&&
          (el.border)&&(el.border>0)) Pos++;
      tmpEl=el.offsetParent;
      while(tmpEl!=null){
         Pos+=(xy=="x")?tmpEl.offsetLeft:tmpEl.offsetTop;
         if ((HM_IE)&&(!HM_Mac)&&(tmpEl.tagName)&&
             (tmpEl.tagName.toUpperCase()=="TABLE")&&
             (tmpEl.border)&&(tmpEl.border>0)) Pos++;
         tmpEl=tmpEl.offsetParent;
      }
   }else{
      Pos=(xy=="x")?el.x:el.y;
	   
   }
     if (HM_IE&&HM_Mac) {
	   Pos+=(xy=="x")?parseInt(document.body.currentStyle.marginLeft) :
		parseInt(document.body.currentStyle.marginTop);
	   }

   return Pos;
}

function findXY(xory,placename) {
   var thePlacer = HM_DOM ? document.getElementById(placename) : 
                   HM_IE ? document.all(placename) : document.images[placename];
				   
   retVal=getReal(xory,thePlacer);
   return retVal;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function setpos(id,imgid)
{
if (ns4) 
	{
	
	document.layers[id].left=findXY('x',imgid)-150+96
	document.layers[id].top=findXY('y',imgid)-100
	//document.layers[id].visibility = "show"
	}
else 
	if (ie4) 
	{
	//document.all[id].style.visibility = "visible"
	document.all[id].style.left=findXY('x',imgid)-150+96
	document.all[id].style.top=findXY('y',imgid)-100
	}




}



   NS4 = (document.layers);
   IE4 = (document.all);
     ver4 = (NS4 || IE4);   
    isMac = (navigator.appVersion.indexOf("Mac") != -1);
   isMenu = (NS4 || (IE4 && !isMac));

   function popUp(){return};
   function popDown(){return};
   function startIt(){return};

   if (!ver4) event = null;
if (isMenu) {
       menuWidth = 110;
       childOverlap = 0;
       childOffset = 5;
       perCentOver = null;
       secondsVisible =0.5;
       
       fntCol = "#000000";
       fntSiz = "8";
       fntBold = false;       // Boolean for bold
       fntItal = false;       // ...or italic text
       fntFam = "Verdana";
       
       backCol = "#dddddd";
       overCol = "#FFCCCC";
       overFnt = "#000000";
       
       borWid = 1;
       borCol = "#E65F28";
       borSty = "solid";     // ignored by NS4
       itemPad = 0;          // pixel value
 
       imgSrc = "tri.gif";
       imgSiz = 10;
       
       separator = 1;        // pixel value
       separatorCol = "#ffffff"; // color ignored by NS4
       
       isFrames = false;     // using frameset?
       navFrLoc =  "left";   // where is the nav frame?
       mainFrName = "main";  // name of the main frame?
   }


//quickfinder function
function quickfind(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=3&&qf.selectedIndex!=25&&qf.selectedIndex!=26&&qf.selectedIndex!=27&&qf.selectedIndex!=28)
			{
			if(htmlocation!="null")
			document.location=htmlocation
			}
			else
				if(qf.selectedIndex==3)
				MM_openBrWindow('/ipru/iprulogin.jsp','login','scrollbars=yes,width=433,height=380')
				else if(qf.selectedIndex==25)
				MM_openBrWindow('/ipru/upload.jsp','Advisorform','width=433,height=440')
				else if (qf.selectedIndex==26)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==27){	window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==28){
				window.open('http://www.prudential.co.uk')
				}
	}
}

function quickfind_advisor(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=2&&qf.selectedIndex!=41&&qf.selectedIndex!=42&&qf.selectedIndex!=43)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')
				else if (qf.selectedIndex==2)
				MM_openBrWindow('/advisor/sms_user_guide.jsp','sms','scrollbars=yes,width=485,height=480')
				else if (qf.selectedIndex==41)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==42){	
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==43){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}
function quickfind_fsc(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=35&&qf.selectedIndex!=36&&qf.selectedIndex!=37)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')			
				else if (qf.selectedIndex==35)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==36){	
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==37){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}

function quickfind_canat(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=37&&qf.selectedIndex!=38&&qf.selectedIndex!=39)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')
							
				else if (qf.selectedIndex==37)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==38){						window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==39){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}

function quickfind_careg(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=37&&qf.selectedIndex!=38&&qf.selectedIndex!=39)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')
								
				else if (qf.selectedIndex==37)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==38){						
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==39){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}

function quickfind_sm(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=2&&qf.selectedIndex!=36&&qf.selectedIndex!=37&&qf.selectedIndex!=38)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')
				else if (qf.selectedIndex==2)
				MM_openBrWindow('/advisor/sms_user_guide.jsp','sms','scrollbars=yes,width=485,height=480')				
				else if (qf.selectedIndex==36)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==37){
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==38){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}

function quickfind_um(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=2&&qf.selectedIndex!=36&&qf.selectedIndex!=37&&qf.selectedIndex!=38)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==1)
				MM_openBrWindow('/advisor/prodcorner.htm','prodcorner','scrollbars=no,width=700,height=430,top=0,left=0')
				else if (qf.selectedIndex==2)
				window.open('http://www.iciciprupartner.com')				
				else if (qf.selectedIndex==36)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==37){						
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==38){
					window.open('http://www.prudential.co.uk')
				}
		}
	}
}

function quickfind_cust(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=30&&qf.selectedIndex!=31&&qf.selectedIndex!=32&&qf.selectedIndex!=33)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==30)
				MM_openBrWindow('/ipru/upload.jsp','advisor','width=433,height=440')
				else if (qf.selectedIndex==31)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==32)
				window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==33)
				window.open('http://www.prudential.co.uk')
		}
	}
}


function quickfind_doc(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=30&&qf.selectedIndex!=31&&qf.selectedIndex!=32)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==30)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==31)
				window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==32)
				window.open('http://www.prudential.co.uk')
		}
	}
}


function lifestagefn(thisform)
{

	with(thisform)
	{
		htmlocation=lifestage.options[lifestage.selectedIndex].value
		if(lifestage.selectedIndex==0)
			{
			document.location=htmlocation
			}
			else
		{
				if(lifestage.selectedIndex==1)
			{
			document.location=htmlocation
			}
			else
		{
		if(lifestage.selectedIndex==2)
			{
			document.location=htmlocation
			}
			else
		{
		if(lifestage.selectedIndex==3)
			{
			document.location=htmlocation
			}
		}
		}
		}
	}
}
function getFile(fileName)
{       
	url = "docs/" + fileName;
	window.open(url,"pincode","");        
}
