
function showhide11(src,img){
	var imgopen = '/products-services/insurance/insurance-images/insurance-minus.gif';
	var imgclose = '/products-services/insurance/insurance-images/insurance-plus.gif';

		if(document.getElementById(src).style.display == 'none'){
			document.getElementById(src).style.display = 'block';
			document.getElementById(img).src = imgopen;

		}
		else 
		{
			document.getElementById(src).style.display = 'none';
			document.getElementById(img).src = imgclose;
		}
}


function MM_preloadImages1(){

 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages1.arguments;  for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}





function loansddmenu(obj, e, dropmenuID, isTop,lft,tp)
{

	var e=window.event || e
	var topmenuoffset=(typeof isTop!="undefined")? 6 : 0
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) 
		e.stopPropagation()
	
	
	if (ie5||ns6)
	{
		
		dropmenuobj=document.getElementById(dropmenuID)		

		
		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		if(ns6&&dropmenuID=='loansmenu' )
			lft=lft-0;		
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+lft+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-topmenuoffset+tp+"px"
		if(dropmenuobj.style.visibility=='hidden')
		{
			dropmenuobj.style.visibility='visible';
		}else
		{
			dropmenuobj.style.visibility='hidden';
		}
	}
	return clickreturnvalue()
}

function showhideacctype(src){

		if(document.getElementById(src).style.display == 'none'){
			document.getElementById(src).style.display = 'block';
		}
		else 
		{
			document.getElementById(src).style.display = 'none';
		}
}
function showbox(obj){
	if(obj==0){
		document.getElementById("details").style.display = "block";
	}else if(obj==1){
		document.getElementById("details").style.display = "none";
	}
}

function tabfunction(id,total){
img=id.substring(1,2);
var tabnames = ['features-benefits-tab','reg-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}

function tabfunctionf58(id,total){
img=id.substring(1,2);
var tabnames = ['benefits','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}

function tabfunctionhfe(id,total){
img=id.substring(1,2);
var tabnames = ['benefits','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}

function tabfunctionfsecurep2(id,total){
img=id.substring(1,2);
var tabnames = ['features-tab','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}




function tabfunctioncdplan(id,total){
img=id.substring(1,2);
var tabnames = ['features-tab','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}




function tabfunctiondreamplan(id,total){
img=id.substring(1,2);
var tabnames = ['features-tab','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}
function tabfunctionprimelife(id,total){
img=id.substring(1,2);
var tabnames = ['features-tab','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}



function tabfrange(id,total){
img=id.substring(1,2);
var tabnames = ['benefits','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}


function tabmback(id,total){
img=id.substring(1,2);
var tabnames = ['features','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}

function tabtravelshield(id,total){
img=id.substring(1,2);
var tabnames = ['features-tab','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}


function tabtermplan(id,total){
img=id.substring(1,2);
var tabnames = ['benefits','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}


function tabfsaveplan(id,total){
img=id.substring(1,2);
var tabnames = ['benefits','apply-now-tab'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}


function tabcsplus(id,total){
img=id.substring(1,2);
var tabnames = ['apply-now','cps-benefits'];
for(i=1; i<=total; i++){
document.getElementById('re'+i).style.display = 'none';
document.getElementById('_'+i+tabnames[i-1]).src="/products-services/insurance/insurance-images/"+tabnames[i-1]+"-off.gif";
document.getElementById('_'+i+tabnames[i-1]).parentNode.style.cursor="pointer";
}
document.getElementById('re'+img).style.display = 'block';
document.getElementById(id).src="/products-services/insurance/insurance-images/"+tabnames[img-1]+"-on.gif";
document.getElementById(id).parentNode.style.cursor="default";	
}





	
function insuranceform()
{
	document.write('<div class="greybgholder">              <div class="greybgholdertop"> <img src="images/rca_greybgtop.gif" alt="" /> </div>              <div class="greybgholdermid">                <table width="438" border="0" cellpadding="0" cellspacing="0">                  <tr>                    <td height="5"></td>                  </tr>                  <tr>                    <td><img src="images/plsfilltheformblow.gif" alt="Please fill the form below" title="Please fill the form below" /></td>                  </tr>                  <tr>                    <td height="15"></td>                  </tr>                  <tr>                    <td align="right" style="padding-right:32px;" >All fields are mandatory</td>                  </tr>                  <tr>                    <td height="22"></td>                  </tr>                  <tr>                    <td><table width="438" border="0" cellpadding="0" cellspacing="0">                        <tr>                          <td width="168" class="formtextleft">Name</td>                          <td width="8">:</td>                          <td width="260"><div class="selecttitle" style="padding-top:2px;">                              <select name="Title" class="selectsml">                                <option value="">Title</option>                                <option value="Mr">Mr.</option>                                <option value="Ms">Ms.</option>                                <option value="Mrs">Mrs.</option>                                <option value="Dr">Dr.</option>                              </select>                            </div>                            <div class="inputbg1">                              <input type="text" name="Name" value="Name" onfocus="if(this.value==\'Name\')this.value=\'\';return title_validate(0)" maxlength="75" onblur="if(trimSpace(this.value)==\'\') this.value=\'Name\'" />                            </div></td>                        </tr>                        <tr>                          <td></td>                          <td></td>                          <td><div class="alert" id="nameid"></div></td>                        </tr>                        <tr>                          <td height="12" colspan="3"></td>                        </tr>                        <tr>                          <td class="formtextleft">E-mail ID</td>                          <td>:</td>                          <td><div class="inputbg">                              <input name="Email_Id" type="text" class="inputbig" maxlength="50" onfocus="return name_validate(0)" />                            </div></td>                        </tr>              <tr>                          <td></td>                          <td></td>                          <td><div class="alert" id="emailidid"></div></td>                        </tr>           <tr>                          <td height="12" colspan="3"></td>                        </tr>                        <tr>                          <td class="formtextleft">Phone Number (Home/Work)</td>                          <td>:</td>                          <td>                           <div class="inputphone">                              <input id="Hom_Country_Code" name="Hom_Country_Code" type="text" value="Country Code" onfocus="if(this.value==\'Country Code\')this.value=\'\';return email_validate(0)" maxlength="10" onkeyup="return setlength(this, 10)" onblur="if(trimSpace(this.value)==\'\'){ onblurhom();}else {return setlength(this, 10);}" />                            </div>                            <div class="inputphone">                              <input name="Hom_Area_Code" type="text" value="Area Code" onfocus="if(this.value==\'Area Code\')this.value=\'\';return Hom_Country_Code_validate(0)" maxlength="10" onblur="if(trimSpace(this.value)==\'\') this.value=\'Area Code\';" />                            </div>                            <div class="inputphone">                              <input name="Hom_Phone" value="Phone No." type="text" onfocus="if(this.value==\'Phone No.\')this.value=\'\';return Hom_Area_Code_validate(0)" maxlength="20" onblur="if(trimSpace(this.value)==\'\') this.value=\'Phone No.\';"   />                            </div></td>                        </tr>        <tr>                          <td></td>                          <td></td>                          <td><div class="alert" id="contactno2id"></div></td>                        </tr>                 <tr>                          <td height="12"></td>                        </tr>                        <tr>                          <td class="formtextleft">Mobile Phone</td>                          <td>:</td>                          <td><div class="inputbg">                              <input name="Mobile" type="text" class="inputbig" onfocus="return Hom_Phone_validate(0)" maxlength="20" />                            </div></td>                        </tr>                <tr>                          <td></td>                          <td></td>                          <td><div class="alert" id="mobileid"></div></td>                        </tr>         <tr>                          <td height="12"></td>                        </tr>                        <tr>                          <td class="formtextleft">Country of Residence</td>                          <td>:</td>                          <td><select name="Country" class="selectbig" onfocus="return Mobile_No_validate(0)">                              <option value="">Choose one</option>							  <option value="Bahrain">Bahrain</option>							  <option value="UAE">UAE</option>                            </select></td>                        </tr>   <tr>                          <td></td>                          <td></td>                          <td><div class="alert" id="countryid"></div></td>                        </tr>                                           </table></td>                  </tr>                  <tr>                    <td height="25"></td>                  </tr>                  <tr>                    <td><div class="submit"><input type="image" src="images/rca_submit.gif" alt="Submit" title="Submit" onclick="return validateField(1)" /><input type="image" src="images/rca_reset.gif" alt="Reset" title="Reset" onclick="return filedReset()" /></div></td>                  </tr>                  <tr>                    <td height="20"></td>                  </tr>                </table>              </div>              <div class="greybgholderfoot"> <img src="images/rca_greybgfoot.gif" alt="" /> </div>            </div>')}



/* home js */

function MM_preloadImages1(){

 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages1.arguments;  for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var disappeardelay=250  
var enableanchorlink=1 
var hidemenu_onclick=1 


var ie5=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
	
obj.visibility=visible
}
else if (e.type=="click"){
obj.visibility=hidden
}
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie5 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ 
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) 
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return '0';
}

function dropdownmenuin(obj,e,dropmenuID,isTop,lft,tp)
{ 
	if(dropmenuID!="dropdownmenu1"){ 
document.getElementById("dropdownmenu1").style.visibility='hidden';}
if(dropmenuID!="dropdownmenu2")
document.getElementById("dropdownmenu2").style.visibility='hidden';

if(dropmenuID!="dropdownmenu3")
document.getElementById("dropdownmenu3").style.visibility='hidden';
if(dropmenuID!="dropdownmenu4")
document.getElementById("dropdownmenu4").style.visibility='hidden';


	var e=window.event || e
	var topmenuoffset=(typeof isTop!="undefined")? 6 : 0
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) 
		e.stopPropagation()
	
	
	if (ie5||ns6)
	{
		
		dropmenuobj=document.getElementById(dropmenuID)		

		
		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		if(ns6&&dropmenuID=='anylinkmenu2' )
			lft=lft-20;		
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+lft+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-topmenuoffset+tp+"px"
		if(dropmenuobj.style.visibility=='hidden')
		{
			dropmenuobj.style.visibility='visible'; 
		}else
		{
			dropmenuobj.style.visibility='hidden';
		}
	}
	return clickreturnvalue()
}

function dropdownmenulife(obj,e,dropmenuID,isTop,lft,tp)
{ 
	if(dropmenuID!="dropdownmenu1"){ 
document.getElementById("dropdownmenu1").style.visibility='hidden';}

	var e=window.event || e
	var topmenuoffset=(typeof isTop!="undefined")? 6 : 0
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) 
		e.stopPropagation()
	
	
	if (ie5||ns6)
	{
		
		dropmenuobj=document.getElementById(dropmenuID)		

		
		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		if(ns6&&dropmenuID=='anylinkmenu2' )
			lft=lft-20;		
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+lft+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-topmenuoffset+tp+"px"
		if(dropmenuobj.style.visibility=='hidden')
		{
			dropmenuobj.style.visibility='visible'; 
		}else
		{
			dropmenuobj.style.visibility='hidden';
		}
	}
	return clickreturnvalue()
}


function dropdownmenuhide_1()
{ 

document.getElementById("dropdownmenu1").style.visibility='hidden';
document.getElementById("dropdownmenu2").style.visibility='hidden';
document.getElementById("dropdownmenu3").style.visibility='hidden';
document.getElementById("dropdownmenu4").style.visibility='hidden';
}
function dropdownmenuhide_1life()
{ 

document.getElementById("dropdownmenu1").style.visibility='hidden';
}


function dropdownmenuhide(e)
{
	
	if (e && e.button && e.button != 1 && e.type == 'click')
	{
		
		return true;
	}
	else
	{
		dropdownmenuhide_1();
	}
}

function dropdownmenuhidelife(e)
{
	
	if (e && e.button && e.button != 1 && e.type == 'click')
	{
		
		return true;
	}
	else
	{
		dropdownmenuhide_1life();
	}
}



function choose(obj, e, dropmenuID, isTop,lft,tp)
{

	var e=window.event || e
	var topmenuoffset=(typeof isTop!="undefined")? 6 : 0
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) 
		e.stopPropagation()
	
	
	if (ie5||ns6)
	{
		
		dropmenuobj=document.getElementById(dropmenuID)		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		if(ns6&&dropmenuID=='anylinkmenu2' )
			lft=lft-20;		
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+lft+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-topmenuoffset+tp+"px"
		if(dropmenuobj.style.visibility=='hidden')
		{
			dropmenuobj.style.visibility='visible';
		}else
		{
			dropmenuobj.style.visibility='hidden';
		}
	}
	return clickreturnvalue()
}

function clickreturnvalue(){
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){

delayhidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+"px"
subobj.style.top=getposOffset(curobj, "top")+"px"
subobj.style.display="block"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
function randomizeContent(classname){
var contents=randomizeContent.collectElementbyClass(classname)
contents.text.sort(function() {return 0.5 - Math.random();})
for (var i=0; i<contents.ref.length; i++){
contents.ref[i].innerHTML=contents.text[i]
contents.ref[i].style.visibility="visible"
}
}
randomizeContent.collectElementbyClass=function(classname){ 
var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)", "i") 
var contentobj=new Object()
contentobj.ref=new Array() 
contentobj.text=new Array() 
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (var i=0; i<alltags.length; i++){
if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1){
contentobj.ref[contentobj.ref.length]=alltags[i]
contentobj.text[contentobj.text.length]=alltags[i].innerHTML
}
}
return contentobj
}
function assignmyevents(){

}


function displayRoyal()
{
	if(document.frmngseclife.plan.selectedIndex==1)
	{
		document.getElementById("credis").style.display = 'block';
		document.getElementById("royal").style.display = 'none';
	}
	else if(document.frmngseclife.plan.selectedIndex>1)
	{
		document.getElementById("credis").style.display = 'none';
		document.getElementById("royal").style.display = 'block';
	}
	else
	{
	document.getElementById("credis").style.display = 'none';
		document.getElementById("royal").style.display = 'none';
	}
	if(document.frmngseclife.plan.selectedIndex==0)
	{
		document.getElementById("credis").style.display = 'none';
		document.getElementById("royal").style.display = 'none';
	}
}
