function abreventana(donde,quien,como)
{ 
infoventana=window.open(donde,quien,como);
if (navigator.appName.substring(0,8) == "Netscape")	
{
window.infoventana.focus()
}
}
function enlaza_vf(donde)
{
window.open(donde,'','toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=300,height=400,top=16,left=50');
}

function enlaza_vf1(donde)
{
window.open(donde,'','toolbar=no,status=no,scrollbars=no,resizable=no,width=310,height=253,top=16,left=50');
}

function enlaza(donde)
{
document.location=donde;
}
function enlaza_memoria(donde)
{
window.open(donde,'','toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=300,height=465,top=16,left=50');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function enlazapromo(donde)
{
window.open(donde,'','height=244,width=300,menubar=no,resizable=no,status=no,scrollbars=no,toolbar=no,location=no,hotkeys=0,top=16,left=16');
}
function ampliar(donde)
{
window.open(donde,'','height=252,width=318,menubar=no,resizable=no,status=no,scrollbars=no,toolbar=no,location=no,hotkeys=0,top=16,left=16');
}
function CambiaData(pagina)
{
	if (pagina!="0")
	{
	window.location.href=pagina;
	}
}

url2 = document.location.href ;
partes2 = url2.split('/');
ultimo2 = partes2[partes2.length-1];

if( (ultimo2.indexOf("'")>0) || (ultimo2.indexOf("amp")>0) || (ultimo2.indexOf("%")>0))
{
		/*alert("Error... variable no definidas");
		window.location.href="http://www.scotiabank.com.pe/";*/
}



function verifica()
{
  var tema = document.getElementById( 'tema' );
  var textOculto = document.getElementById( 'textOculto' );
  
  if( tema.options[ tema.selectedIndex ].value == 'otro' )
  {
    textOculto.style.display = 'block';
	document.solicitud.txtOtro.focus();
	return;
	{
	}
  }
  else
  {
    textOculto.style.display = 'none';
  }
}  