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);
//alert("retVal"+retVal)
   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 = -1;
       childOffset = 0;
       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 = "/images/tri.gif";
       imgSiz = 9;
       
       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!=26&&qf.selectedIndex!=27&&qf.selectedIndex!=28&&qf.selectedIndex!=29)
			{
			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==26)
				MM_openBrWindow('/ipru/upload.jsp','Advisorform','width=433,height=440')
				else if (qf.selectedIndex==27)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==28){	
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==29){
				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!=5 &&qf.selectedIndex!=9 &&qf.selectedIndex!=10 &&qf.selectedIndex!=40&&qf.selectedIndex!=41&&qf.selectedIndex!=42)
			{
			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==5){
				MM_openBrWindow('/RNR/RnR.jsp','prodcorner','scrollbars=yes,width=640,height=480')
				}else if (qf.selectedIndex==9){
				MM_openBrWindow('/public/Others/Download-Center.htm','prodcorner','scrollbars=yes,width=650,height=450')
				}else if (qf.selectedIndex==10){
				MM_openBrWindow('http://loginassistant.iciciprulife.com/admin/inputpage.aspx','prodcorner','scrollbars=yes,width=650,height=450')
				}else if (qf.selectedIndex==40){
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				}else if (qf.selectedIndex==41){	
				window.open('http://www.icicibank.com')
				}
				else if (qf.selectedIndex==42){
					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')
				}
		}
	}
}

<!--Added by patni  on 8-feb-2010 for super canat starts -->

function quickfind_supercanat(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
			alert("alertposition  "+qf.selectedIndex);
		if(qf.selectedIndex!=1&&qf.selectedIndex!=33&&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==33)
				     window.open('/advisor/OnlineAppForm.jsp')
				else if (qf.selectedIndex==37)
				     window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==38)
					window.open('http://www.prudential.co.uk')
		}
	}
}

<!-- added by patni 8-feb-2010 for supercanat ends-->

function quickfind_canat(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
			alert("alertposition  "+qf.selectedIndex);
		if(qf.selectedIndex!=1&&qf.selectedIndex!=32&&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==32)
				     window.open('/advisor/OnlineAppForm.jsp')
				else if (qf.selectedIndex==36)
				     window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==37)
					window.open('http://www.prudential.co.uk')
		}
	}
}//'/advisor/nonsecureappform.jsp'

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!=31&&qf.selectedIndex!=32&&qf.selectedIndex!=33&&qf.selectedIndex!=34)
			{
			if(htmlocation!="")
			document.location=htmlocation
			}
			else
		{
				if (qf.selectedIndex==31)
				MM_openBrWindow('/ipru/upload.jsp','advisor','width=433,height=440')
				else if (qf.selectedIndex==32)
				MM_openBrWindow('/ipru/instaquote.jsp','insta','width=660,height=550')
				else if (qf.selectedIndex==33)
				window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==34)
				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","");        
}


function isValidDate(strDate)
{

		var astrNewDate = new Array();
 		var dtNew = new Date();
		var intDelimEnd = 0;
        var intDelimStart = 0;
		var blnComplete = false;
		var i = 0;
		for (i = 0; i <= 2 && (!blnComplete) ; i++)
       	{
       	   	intDelimEnd = strDate.indexOf("/", intDelimEnd);
	       	if (intDelimEnd == -1 )
	          {
   		         intDelimEnd = strDate.length;
       		  blnComplete = true;
	          }
   		       astrNewDate[i] = strDate.substring (intDelimStart, intDelimEnd );
       	 
          	  if (blnComplete)
	          {
   		       	break;
	          }
	
   		       intDelimStart = intDelimEnd + 1;
	          intDelimEnd = intDelimStart;
   		    }
  			if (i < 2)
	        {
	       		return false;
			}
			//check if the elements are numbers
			if (isNaN(astrNewDate[0]) == true || isNaN(astrNewDate[1]) == true ||isNaN(astrNewDate[2]) == true )
			{
				return false;
			}
			dtNew.setDate(1);
			dtNew.setYear(astrNewDate[2]);
			dtNew.setMonth(astrNewDate[1] - 1);
			dtNew.setDate(astrNewDate[0]);
			if (dtNew.getDate() != astrNewDate[0] || dtNew.getMonth() != astrNewDate[1] - 1 ||dtNew.getYear() != astrNewDate[2])
			{
				return false;
			}
			return true;
}

<!--


//	List of Functions
//	2.	addElements ( listSource , listDestination , removeFlag )
//	3.	launchHelp(frm) 
//	4.	selectAllElements ( listDestination )
//	5.	moveUp(listDestination)
//	6.	validateSelected(listDestination)
//	7.	moveDown(listDestination)
//	8.	deleteSelected(listDestination)
//	9.	getElements ( frm , listSource , listDest )
//	10.	checkBlank(txtField)  
//	11.	checkSpaces(txtField)
//	12.	checkNumbers(txtField)
//	13.	checkChars(txtField)
//	14. displayInfo(frm, listExemptionStructure)
//	15. findDuplicate(txtValue, objListBox)
//-->
<!--

//searches for the duplicate of txtNewVal in listbox
function findDuplicate(txtNewVal, lstBox)
{
	var i;
	var strOption;
	var strToMatch = new String(txtNewVal).toUpperCase();

	for(i=0; i < lstBox.length; i++)
	{
		strOption = new String (lstBox.options[i].text).toUpperCase();
		if (strToMatch == strOption)
		{
			return true;//dup found
		} 
	}
	return false;//no dup found
}

//////////////////////////////////////////
// 
//////////////////////////////////////////
function checkDecimal(intLength, decLength, txtField)
{
	var strValue = txtField.value;
	var strSplit = strValue.split(".");
	
	if(strSplit.length > 2)
	{
		alert("Only one decimal point is allowed");
		txtField.focus();
		return false;
	}//If closed.
	else if(strSplit.length == 1)
	{
		if(strSplit[0].length > intLength)
		{
			alert("Maximum of "+intLength+" numbers are allowed");
			txtField.focus();
			return false;
		}
	}
	else if(strSplit.length == 2)
	{
		//Check first element.		
		if(strSplit[0].length > intLength)
		{
			alert("Maximum of "+intLength+" numbers \nprior to decimal point are allowed");
			txtField.focus();
			return false;
		}

		//Check first element.		
		if(strSplit[1].length > decLength)
		{
			alert("Precision of "+decLength+" decimals is allowed");
			txtField.focus();
			return false;
		}

	}
	
	return true;
}//checkDecimal() ends.

function checkDecimalValue(intLength,decLength, decValue, txtField)
{
	var strValue = txtField.value;
	var strSplit = strValue.split(".");
	
	if(strSplit.length > 2)
	{
		alert("Only one decimal point is allowed");
		txtField.focus();
		return false;
	}//If closed.
	else if(strSplit.length == 1)
	{
		if(strSplit[0].length > intLength)
		{
			alert("Maximum of "+intLength+" numbers are allowed");
			txtField.focus();
			return false;
		}
	}
	else if(strSplit.length == 2)
	{
		//Check first element.		
		if(strSplit[0].length > intLength)
		{
			alert("Maximum of "+intLength+" numbers \nprior to decimal point are allowed");
			txtField.focus();
			return false;
		}

		//Check first element.		
		if(strSplit[1].length > decLength)
		{
			alert("Precision of 1 decimals is allowed");
			txtField.focus();
			return false;
		}
		/*if(strSplit[1] !=  decValue)
		{
			alert("Only " + decValue + " allowed as decimal value ");
			txtField.focus();
			return false;
		}
		*/
	}
	
	return true;
}//checkDecimal() ends.


function restrictValues()
{
	if((event.keyCode == 60) || (event.keyCode == 62 ) || (event.keyCode == 34) || (event.keyCode == 35))
	{
		return false;
	}
	return true;
}


function onlyNums()
{
	if((event.keyCode >= 48 && event.keyCode <= 57) )
	{
		return true;
	}
	return false;
}

function onlyDouble()
{
	if((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode == 46)|| (event.keyCode == 9) || (event.keyCode == 16))
	{
		return true;
	}
	return false;
}

function addElements (listSource , listDestination , removeFlag )
{
	var selectedArray = new Array()
	var selectedArrayValue = new Array()
	var nonSelectedArray = new Array()
	var nonSelectedArrayValue = new Array()
	var destinationArray = new Array()
	var destinationArrayValue = new Array()
	
	var temp = new Array()

	var totalSelected = 0
	var totalNonSelected = 0
	var totalDestination = 0

	for ( var i = 0 ; i < listSource.length ; i++ )
	{
		if(listSource[i].selected==true)
		{
			selectedArray[totalSelected] = listSource[i].text
			selectedArrayValue[totalSelected] = listSource[i].value
			totalSelected = totalSelected + 1
		}
		else
		{
			nonSelectedArray[totalNonSelected] = listSource[i].text
			nonSelectedArrayValue[totalNonSelected] = listSource[i].value
			totalNonSelected = totalNonSelected + 1
		}
	}

	for ( var i = 0 ; i < listDestination.length ; i++ )
	{
		destinationArray[i] = listDestination[i].text
		destinationArrayValue[i] = listDestination[i].value

		temp[i] = listDestination[i].text
		totalDestination = totalDestination + 1
		destinationArray[i] = listDestination[i].text
		destinationArrayValue[i] = listDestination[i].value
	}

	var variableDestinationLength = totalDestination
	for ( var i = 0 ; i < totalSelected ; i++ )
	{	
		var found = false
		if(variableDestinationLength==0)
		{
			destinationArray[i] = selectedArray[i]
			destinationArrayValue[i] = selectedArrayValue[i]
		}
		for ( var j = 0 ; j < variableDestinationLength ; j++ )
		{
			if(selectedArrayValue[i] == destinationArrayValue[j])
			{
				found = true
				break
			}
		}
		if(found==true)
		{
			continue
		}
		else
		{
			destinationArray[variableDestinationLength] = selectedArray[i]
			destinationArrayValue[variableDestinationLength] =selectedArrayValue[i]	
		}
		variableDestinationLength = variableDestinationLength + 1
	}
		
	if( removeFlag == true )
	{
		listSource.length = 0
		var src =  nonSelectedArray.length

		for ( var i = 0 ; i < src ; i++ )
		{
			listSource.length = listSource.length + 1
			listSource[i].text = nonSelectedArray[i]
			listSource[i].value = nonSelectedArrayValue[i]
		}
	}
	
	listDestination.length = 0
	var dest =  destinationArray.length
	
	for ( var i = 0 ; i < dest ; i++ )
	{
		listDestination.length = listDestination.length + 1
		listDestination[i].text = destinationArray[i]
		listDestination[i].value = destinationArrayValue[i] 
	}
}

//////////////////////////////////////////
// 
//////////////////////////////////////////
function launchHelp(frm) 
{
	var x = frm.hiddenURL.value;
	winpopup = window.open(x,'','height=0,width=0,resizable=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,screenX=0,screenY=0,left=0,top=0');
}



//////////////////////////////////////////
// Select all items in  destination List
//////////////////////////////////////////
function selectAllElements ( listDestination )
{
	//check whether the list is empty or not
	var isEmpty = validateSelected(listDestination)
	if ( isEmpty == true )
	{
		return isEmpty
	}

	//iterate list to select all items
	for ( var index = 0 ; index < listDestination.length ; index++ )
	{
		listDestination.options[index].selected = true
	}
	return isEmpty
} // function ends



//////////////////////////////////////////
// Move selected numItems in destination list upwards
//////////////////////////////////////////
function moveUp(listDestination)
{
	var arrIndex= new Array();

	// iterate list to move selected items upwards
	for(var numItems = 0; numItems < listDestination.length; numItems++)
 	{
		// check selected items in list
		if(listDestination.options[numItems].selected == true)
		{
			// break if first item in list
			if(numItems == 0)
			{
				break;
			}
			else
			{
				//move selected up
				var selectIndx = listDestination.selectedIndex;
				var selectIndxDcr = listDestination.selectedIndex - 1;
				arrIndex = arrIndex.concat(selectIndxDcr);
				var strTempVal = listDestination.options[selectIndx].value;
				var strTempText = listDestination.options[selectIndx].text;
				listDestination.options[selectIndx].value = listDestination.options[selectIndxDcr].value;
				listDestination.options[selectIndx].text = listDestination.options[selectIndxDcr].text;
				listDestination.options[selectIndxDcr].value = strTempVal;
				listDestination.options[selectIndxDcr].text = strTempText;
				listDestination.options[selectIndx].selected = false;
			} // else closed.
		}// outer if closed.
	}//for loop closed.

	//iterate over selected index's
	for( var index = 0; index < arrIndex.length; index++)
	{
		listDestination.options[arrIndex[index]].selected = true;
	}// for loop closed.
} //function ends  



//////////////////////////////////////////
//check if destination list is empty
//////////////////////////////////////////
function validateSelected(listDestination)
{
	if(listDestination.length == 0)
	{
		//alert("\'" + listDestination.name + "\' list is empty")
		return true
	}
	return false
}


//////////////////////////////////////////
//Move selected items in destination list downwards
//////////////////////////////////////////
function moveDown(listDestination)
{
	var arrIndex= new Array();

	//iterate list to move selected numItems downwards
	for(var numItems = listDestination.length; numItems > 0; numItems--)
	{
		// check selected items in list
		if(listDestination.options[numItems-1].selected == true)
		{
			// break if last item in list
			if(numItems == listDestination.length)
			{
				break;
			}
			else
			{
				//move selected down
				arrIndex = arrIndex.concat(numItems);
				var strTempVal = listDestination.options[numItems-1].value;
				var strTempText = listDestination.options[numItems-1].text;
				listDestination.options[numItems-1].value = listDestination.options[numItems].value;
				listDestination.options[numItems-1].text = listDestination.options[numItems].text;
				listDestination.options[numItems].value = strTempVal;
				listDestination.options[numItems].text = strTempText;
				listDestination.options[numItems-1].selected = false;
			}// else closed.
		}// outer if closed.
	}//for loop closed.

	//iterate over selected index's
	for( var index = 0; index < arrIndex.length; index++)
	{
		listDestination.options[arrIndex[index]].selected = true;
	}// for loop closed.
}//function ends



//////////////////////////////////////////
//delete selected items in list
//////////////////////////////////////////
function deleteSelected(listDestination)
{
	var arrIndex = new Array();
	var arrVal = new Array();
	var arrText = new Array();

	//iterate all the selected items in the list.
	for( var numItems = 0; numItems < listDestination.length; numItems++)
	{
		//check for non selected items
		if(listDestination.options[numItems].selected != true)
		{
 			var selectIndx = listDestination.selectedIndex;
			var strTempVal = listDestination.options[numItems].value;
			arrVal = arrVal.concat(strTempVal);
			var strTempText = listDestination.options[numItems].text;
			arrText = arrText.concat(strTempText);
		} //if ends
	} //for ends

	//delete all items
	listDestination.length = 0;

	//repopulate list
	for(var strText = 0; strText < arrText.length; strText++)
	{
		listDestination.length = listDestination.length + 1;
		listDestination[strText].text = arrText[strText];
		listDestination[strText].value = arrVal[strText];
		var tom = arrVal[strText];
	}//for ends
} //function ends



//////////////////////////////////////////
// 
//////////////////////////////////////////
function getElements ( frm , listSource , listDest )
{
	//Global Variable declarations
	
	var arrValue = new Array();
	var arrText = new Array();
	var arrSplitStr= new Array();
	var strMatchName;

	//Iterate over list items
	for(var numList = 0; numList < listSource.length; numList++)
	{
		//Search for selected item
		if(listSource.options[numList].selected == true)
		{
			var strGroupValue = listSource.options[numList].value;
			strMatchName = listDest.name + strGroupValue ;			
		}
	}

	// Iterate over all elements in the form
	for(var eleType = 0; eleType < frm.elements.length; eleType++)
	{
		// Search for all hidden fields
		if(frm.elements[eleType].type == "hidden")
		{
			var strHiddenVal  = new String();
			var strHiddenName = frm.elements[eleType].name;
			strHiddenVal  = frm.elements[eleType].value;

			//Match groupvalue with hidden field name
			if(strHiddenName == strMatchName)
			{
				// Iterate over the length of the group value string
				for(var numHidLength  = 0; numHidLength < strHiddenVal.length ; numHidLength++)
				{
					//split string into pieces where expression occures
					arrSplitStr = strHiddenVal.split("#");
				}

				//Iterate over each split string length
				for(var strArrVal = 1; strArrVal < arrSplitStr.length; strArrVal++)
				{
					var strIn = arrSplitStr[strArrVal];

					//Split string into pieces where expression occures
					var arrIn = strIn.split("=");

					//Iterate over each split string and concatanate arr with the values
					for( var strArrValIn = 1; strArrValIn < arrIn.length; strArrValIn++)
					{
						arrText = arrText.concat(arrIn[0]);
						arrValue = arrValue.concat(arrIn[1]);
					}
				}
			}
		}
	}

	listDest.length = 0;
	//Populate dest list value and name
	for(var strValue = 0; strValue < arrValue.length; strValue++)
	{
		//alert(arrText[strValue] + ", " +  arrValue[strValue]);
		listDest.length = listDest.length + 1;
		listDest[strValue].text = arrText[strValue];
		listDest[strValue].value = arrValue[strValue];
	}
}


//////////////////////////////////////////
// 
//////////////////////////////////////////
function getElementstoCmb ( frm , listSource , listDest )
{
	//Global Variable declarations
	
	var arrValue = new Array();
	var arrText = new Array();
	var arrSplitStr= new Array();
	var strMatchName;

	//Iterate over list items
	for(var numList = 0; numList < listSource.length; numList++)
	{
		//Search for selected item
		if(listSource.options[numList].selected == true)
		{
			var strGroupValue = listSource.options[numList].value;
			strMatchName = listDest.name + strGroupValue ;			
		}
	}

	// Iterate over all elements in the form
	for(var eleType = 0; eleType < frm.elements.length; eleType++)
	{
		// Search for all hidden fields
		if(frm.elements[eleType].type == "hidden")
		{
			var strHiddenVal  = new String();
			var strHiddenName = frm.elements[eleType].name;
			strHiddenVal  = frm.elements[eleType].value;

			//Match groupvalue with hidden field name
			if(strHiddenName == strMatchName)
			{
				// Iterate over the length of the group value string
				for(var numHidLength  = 0; numHidLength < strHiddenVal.length ; numHidLength++)
				{
					//split string into pieces where expression occures
					arrSplitStr = strHiddenVal.split("#");
				}

				//Iterate over each split string length
				for(var strArrVal = 1; strArrVal < arrSplitStr.length; strArrVal++)
				{
					var strIn = arrSplitStr[strArrVal];

					//Split string into pieces where expression occures
					var arrIn = strIn.split("=");

					//Iterate over each split string and concatanate arr with the values
					for( var strArrValIn = 1; strArrValIn < arrIn.length; strArrValIn++)
					{
						arrText = arrText.concat(arrIn[0]);
						arrValue = arrValue.concat(arrIn[1]);
					}
				}
			}
		}
	}

	listDest.length = 1;
	//Populate dest list value and name
	for(var strValue = 0; strValue < arrValue.length; strValue++)
	{
		//alert(arrText[strValue] + ", " +  arrValue[strValue]);
		listDest.length = listDest.length + 1;
		listDest[strValue+1].text = arrText[strValue];
		listDest[strValue+1].value = arrValue[strValue];
	}
}


//////////////////////////////////////////
// 



function checkElement(frm,listUserConfiguration,listSelectedFormTypes)
{
	var strMatchName;
	var arrValue = new Array();
	var arrText = new Array();
	var arrSplitStr= new Array();
	var strUsrConValue;
	var strval;
	for(var intJ = 0; intJ < listSelectedFormTypes.length; intJ++)
	{
		strval  = listSelectedFormTypes.options[intJ].value;
		arrValue = arrValue.concat(strval);
	}					
	return arrValue;
}


	// check whether the field is blank
	function checkBlank(textField)
	{
		var valueOfField = new String(textField.value)
		var lengthOfField = valueOfField.length
		if (lengthOfField != 0 )
		{			
			return false		
		}
		else 
		{
			return true
		}
		
		
	}


	// ckeck whether spaces are entered in the textfield
	function checkSpaces(textField)
	{
		var textFieldValue = textField.value
		var valueOfField = new String(textFieldValue)
		var lengthOfField = valueOfField.length
		var count = 0
		loop :for(var i = 0; i < lengthOfField ; i++)
		{
			if (valueOfField.charAt(i) == " ")
			{
				count++;
			}
			else
			{
				count = 0
				break loop					
			}
		}
		if (count == lengthOfField && lengthOfField != 0)
		{
			return true
		}
		return false
	}


	function checkNumbers(textField)
	{
		var textFieldValue = textField.value
		var valueOfField = new String(textFieldValue)
		var lengthOfField = valueOfField.length
		var returnValue = false
		var intFinalCount = 0		
		var intDot = 0
		var checkValues = new Array("1","2","3","4","5","6","7","8","9","0",".")
		var blnCheck = "true"

		if(valueOfField.charAt(0) == ".")
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}

		if(valueOfField.charAt(lengthOfField-1)==".")
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}			
		
		for(var i = 0; i < lengthOfField ; i++)
		{
			var blnCheck = false
			var fieldValue = valueOfField.charAt(i);
			if(fieldValue == ".")
			{
				intDot++;
			}
			for(var intI=0;intI<checkValues.length;intI++)			
			{
				var check = checkValues[intI]										
				if(fieldValue==check)
				{										
					blnCheck = true
				}
			}
			if(!blnCheck)
			{
				textField.select();
				alert("Please enter only Numbers");
				return true;			
			}
		}
		if(intDot>1)
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}
	}


	function checkChars(textField)
	{
		var textFieldValue = textField.value
		var valueOfField = new String(textFieldValue)
		var lengthOfField = valueOfField.length
		var returnValue = false
		var intFinalCount = 0		
		var intDot = 0
		var checkValues = new Array(" ","'","`","~","!","@","#","$","%","^","&","*","(",")","<",">","-","=","+","\\","|","?","/","\,",".","\"",":",";","{","}","[","]")
		var blnCheck = false

		
		for(var i = 0; i < lengthOfField ; i++)
		{
			var fieldValue = valueOfField.charAt(i);
			for(var intI=0;intI<checkValues.length;intI++)			
			{
				var check = checkValues[intI]				
				if(fieldValue==check)
				{					
					blnCheck = true
				}
			}
		}
		return blnCheck
	}


	function checkPinNumber(textField)
	{
		var textFieldValue = textField.value
		var valueOfField = new String(textFieldValue)
		var lengthOfField = valueOfField.length
		var returnValue = false
		var intFinalCount = 0		
		var intDot = 0
		var checkValues = new Array("1","2","3","4","5","6","7","8","9","0","-"," ")
		var blnCheck = "true"

		if(valueOfField.charAt(0) == ".")
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}

		if(valueOfField.charAt(lengthOfField-1)==".")
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}			
		
		for(var i = 0; i < lengthOfField ; i++)
		{
			var blnCheck = false
			var fieldValue = valueOfField.charAt(i);
			if(fieldValue == ".")
			{
				intDot++;
			}
			for(var intI=0;intI<checkValues.length;intI++)			
			{
				var check = checkValues[intI]										
				if(fieldValue==check)
				{										
					blnCheck = true
				}
			}
			if(!blnCheck)
			{
				textField.select();
				alert("Please enter only Numbers");
				return true;			
			}
		}
		if(intDot>1)
		{
			textField.select();
			alert("Please enter only Numbers");
			return true;
		}
	}


	function deleteNonNumbers(textField)
	{
		var checkValues = new Array("1","2","3","4","5","6","7","8","9","0",".")
		strValue1 = textField.value;
		strTwo = "";
		for(var i = 0 ; i < strValue1.length ; i++ )
		{
			var charAt = strValue1.charAt(i);
			for(var ii = 0 ; ii < checkValues.length ; ii++)
			{
				if(charAt == checkValues[ii])
				{
					strTwo = strTwo + charAt;
				}
			}
		}
		textField.value = strTwo;
	}


//////////////////////////////////////////
//-->

//////////////////////////////////////////

    function trimText(strText)
	{
		var len = strText.length;
		var count = strText.length;
		var st = 0;
		var off = 0;
		var val = new Array();
		for(var i = 0 ; i < count; i++ )
		{
			val[i] = strText.charAt(i);
		}

		while ((st < len) && (val[off + st] <= ' '))
		{
			st++;
		}
		while ((st < len) && (val[off + len - 1] <= ' '))
		{
			len--;
		}
		if((st > 0) || (len < count))
		{
			var str = "" + strText;
			str = str.substring(st, len);
			return str;
		}
		else
		{
			return strText;
		}
	}


	// Original
	function SelectListItemWithValue(lstSelect, value)
	{
		var indexed = FindIndexOfValue(lstSelect, value);
		if(indexed == -1)
		{
			lstSelect.options.selectedIndex = 0;
		}
		else
		{
			lstSelect.options.selectedIndex = indexed;
		}
		return;
	}

	/* original Find the index of the item with the specified value*/	
	function FindIndexOfValue(lstSelect, value)
	{
		if(lstSelect.length > 0)
		{
			for(var i=0; i< lstSelect.length; i++)
			{
				if( lstSelect.options[i].value == value)
				{
					return i;
				}
			}
		}
		return -1;
	}
function quickfind_group1(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=33&&qf.selectedIndex!=34)
		{
			if(htmlocation!="")
			document.location=htmlocation
		}
		else
		{
				if (qf.selectedIndex==33)
					window.open('http://www.icicibank.com')
				else if (qf.selectedIndex==34)
					window.open('http://www.prudential.co.uk')
		}
	}
}

function quickfind_group2(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=36&&qf.selectedIndex!=37)
		{
			if(htmlocation!="")
			document.location=htmlocation
		}
		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_grt_employer(thisform){
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=10&&qf.selectedIndex!=11&&qf.selectedIndex!=21&&qf.selectedIndex!=29&&qf.selectedIndex!=35&&qf.selectedIndex!=36)
		{
			if(htmlocation!="")
				document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==10)
				MM_openBrWindow('/g1/monthlynewsletter.htm','Monthly_NL','scrollbars=yes,resizable=yes,width=800,height=550,left=0,top=0')
			else if (qf.selectedIndex==11)
				MM_openBrWindow('/g1/qtry oct-dec.pdf','Quarterly_NL','scrollbars=yes,resizable=yes,width=780,height=550,left=0,top=0')
			else if (qf.selectedIndex==21)
				MM_openBrWindow('/g2/Docs/valuation.htm','Valuation','width=550,height=430,scrollbars=no,left=0,top=0')
			else if (qf.selectedIndex==29)
				window.open('/ipru/savings1.jsp')
			else if (qf.selectedIndex==35)
				window.open('http://www.icicibank.com')
			else if (qf.selectedIndex==36)
				window.open('http://www.prudential.co.uk')
		}
	}
}

/**function quickfind_employer(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=20&&qf.selectedIndex!=26&&qf.selectedIndex!=27)
		{
			if(htmlocation!="")
				document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==20)
				window.open('http://www.iciciprulife.com/ipru/savings1.jsp')
			else if (qf.selectedIndex==26)
				window.open('http://www.icicibank.com')
			else if (qf.selectedIndex==27)
				window.open('http://www.prudential.co.uk')
		}
	}
}
*/


function quickfind_sa_employer(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=10&&qf.selectedIndex!=11&&qf.selectedIndex!=27&&qf.selectedIndex!=33&&qf.selectedIndex!=34)
		{
			if(htmlocation!="")
				document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==10)
				MM_openBrWindow('/g1/monthlynewsletter.htm','Monthly_NL','scrollbars=yes,resizable=yes,width=800,height=550,left=0,top=0')
			else if (qf.selectedIndex==11)
				MM_openBrWindow('/g1/qtry oct-dec.pdf','Quarterly_NL','scrollbars=yes,resizable=yes,width=800,height=550,left=0,top=0')
			else if (qf.selectedIndex==27)
				window.open('/ipru/savings1.jsp')
			else if (qf.selectedIndex==33)
				window.open('http://www.icicibank.com')
			else if (qf.selectedIndex==34)
				window.open('http://www.prudential.co.uk')
		}
	}
}/**
function quickfind_employee(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=19&&qf.selectedIndex!=25&&qf.selectedIndex!=26)
		{
			if(htmlocation!="")
				document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==19)
				window.open('http://www.iciciprulife.com/ipru/savings1.jsp')
			else if (qf.selectedIndex==25)
				window.open('http://www.icicibank.com')
			else if (qf.selectedIndex==26)
				window.open('http://www.prudential.co.uk')
		}
	}
}
*/

function quickfind_employee(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=8&&qf.selectedIndex!=9&&qf.selectedIndex!=20&&qf.selectedIndex!=27&&qf.selectedIndex!=28)
		{
			if(htmlocation!="")
				document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==8)
				MM_openBrWindow('/g1/monthlynewsletter.htm','Monthly_NL','scrollbars=yes,resizable=yes,width=800,height=550,left=0,top=0')
			else if (qf.selectedIndex==9)
				MM_openBrWindow('/g1/qtry oct-dec.pdf','Quarterly_NL','scrollbars=yes,resizable=yes,width=780,height=550,left=0,top=0')
			else if (qf.selectedIndex==20)
				window.open('/ipru/savings1.jsp')
			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_ccc(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex!=1&&qf.selectedIndex!=2&&qf.selectedIndex!=27&&qf.selectedIndex!=28)
		{
			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('/custservice/form.jsp','','width=700,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==27)	
				window.open('http://www.icicibank.com')
			else if (qf.selectedIndex==28)
				window.open('http://www.prudential.co.uk')
		}
	}
}
var xmlHttp;

function encrypt(str,context){ 
		
		xmlHttp=GetXmlHttpObject();
		
		if (xmlHttp==null){
			alert ("Browser does not support HTTP Request")
			return;
		} 
		 var url= context+"/ipru/Ajax_search.jsp";
		 var params = "valuebox="+str;

		// url=url+"?valuebox="+str;
		
		xmlHttp.onreadystatechange=stateChange
		xmlHttp.open("POST",url,false);
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.send(params);

	}
	function GetXmlHttpObject(){
		if (window.XMLHttpRequest)
			 {
					// code for IE7+, Firefox, Chrome, Opera, Safari
					return new XMLHttpRequest();
			 }
if (window.ActiveXObject)
		 {
			 // code for IE6, IE5
			 return new ActiveXObject("Microsoft.XMLHTTP");
		 }
			return null;

	}
	function stateChange() 
	{
		

		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
			respString = xmlHttp.responseText
			// document.getElementById('password').innerHTML=trim(respString)
			document.form1.password.value = trim(respString)
			  
		} 
	} 


	// Removes leading whitespaces
	function Ltrim( value ) {
		
		var re = /\s*((\S+\s*)*)/;
		return value.replace(re, "$1");
		
	}
	
	// Removes ending whitespaces
	function Rtrim( value ) {
		
		var re = /((\s*\S+)*)\s*/;
		return value.replace(re, "$1");
		
	}
function trim( value ) {
		
		return Ltrim(Rtrim(value));
		
	}


function quickfind_custservice(thisform)
{
	with(thisform)
	{
		htmlocation=qf.options[qf.selectedIndex].value
		if(qf.selectedIndex==1)
		{
			if(htmlocation!="")
			document.location=htmlocation
		}
		else
		{
			if (qf.selectedIndex==2)
				MM_openBrWindow('/custservice/form.jsp','','width=500,height=500,scrollbars=yes,left=0,top=0,resizable=yes')
			else if (qf.selectedIndex==3)
				MM_openBrWindow('/custservice/problemincident.jsp','','width=700,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==4)
				MM_openBrWindow('/custservice/wowincident.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==5)
				MM_openBrWindow('/custservice/ecases.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==6)
				MM_openBrWindow('/custservice/mystery.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==7)
				MM_openBrWindow('/custservice/feedback.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==8)
				MM_openBrWindow('/custservice/atmlocator.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==9)
				MM_openBrWindow('/custservice/locatedoctor/doctor.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==10)
				MM_openBrWindow('/custservice/unitvalue.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==11)
				MM_openBrWindow('/custservice/newsletter.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==12)
				MM_openBrWindow('/custservice/help.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==13)
				/*MM_openBrWindow('/ipru/unitvalue.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')*/window.open('/custservice/frequency_change.xls')
			else if (qf.selectedIndex==14)
				MM_openBrWindow('/custservice/prupartner.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==15)
				MM_openBrWindow('/custservice/ebi.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==16)
				MM_openBrWindow('/ipru/instaquote.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==17)
				MM_openBrWindow('/custservice/contractno.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==18)
				MM_openBrWindow('/custservice/polcertinfo.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==19)
				MM_openBrWindow('/custservice/pincodes.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==20)
				MM_openBrWindow('/custservice/matrix.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==21)
				MM_openBrWindow('/custservice/checklist.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==22)
				MM_openBrWindow('/custservice/indemnity.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==23)
				MM_openBrWindow('/custservice/Presentations.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==24)
				MM_openBrWindow('/custservice/comparisons.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==25)
				MM_openBrWindow('/custservice/formats.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==26)
				MM_openBrWindow('/custservice/questionnaire.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==27)
				MM_openBrWindow('/custservice/systemsPresentations.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==28)
				MM_openBrWindow('/custservice/codesdictionary.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==29)
				MM_openBrWindow('/custservice/teamassist.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
			else if (qf.selectedIndex==30)
				MM_openBrWindow('/ipru/unitvalue.jsp','','width=500,height=500,scrollbars=yes,top=0,left=0')
		}
	}
}