var nomesf = new Array();
nomesf[0] = "frm_top";
nomesf[1] = "mid";
var nframes = 2;
var endsite = "http://www.bradescoseguranca.com.br/";

try
{
	if (parent.frames.length > 0)
	{
		if (parent.frames.length != nframes)
		 {
		   //Quantidade de frames diferente do permitido.
		   top.location.href=endsite;
		 }	
		for(x=0;x<parent.frames.length;x++)
		 {
		  if (nomesf[x] != parent.frames[x].name)
		    {
			//Nome dos Frames
			top.location.href=endsite;
			}
		 }
	}
}
catch(e)
{
	  var detect = navigator.userAgent.toLowerCase();
	  if (detect.indexOf('mac') < 1)
	  {
	   //Catch caso carrege de um iframe
	   top.location.href=endsite;
	  }
}

// Funções específicas do site Bradesco Institucional

function OpenWindow(sPagina, w, h, s) 
{
    window.open(sPagina, '', 'width=' + w + ',height=' + h + ',top=0,left=0,scrollbars=' + s + ',menubar=0,toolbar=0,statusbar=0,status=0,resizable=0');
    return false;
}

function chama_url(target,selObj,restore)
{

    x=selObj.selectedIndex;
    if (x!=0)
    {
 	if (x==25)
	{ museu();}
	else 
	{eval(target+".location='"+selObj.options[selObj.selectedIndex].value+"'");}
        if (restore) selObj.selectedIndex=0;
    }

}

function frmcomb()
{
		var URL = document.chama.institucional.options[document.chama.institucional.selectedIndex].value;
		x=document.chama.institucional.selectedIndex

		//if ((x==4))
		//{
		//    window.open (URL,"_blank")
		//}
		//else
		//{
		    window.open (URL,"_self")
		//}
}