var blank = " "; // blank page
var content = (location.search) ? location.search.substring(1, location.search.length) : table_of_contents;
function fillFrame() {
parent.main.location.href = content;
}

function fullframe(){
	p1=0;
	p2=1;
	p3=2;
	p4=3;
		
	for(i=0;i<content.length;i++)
	{
		tst=i+3		
		if (tst <=content.length ) {			
			asdf = content.charAt(p1)+content.charAt(p2)+content.charAt(p3)+content.charAt(p4);
			if (!valoresno(asdf))
			{
				alert("la direccion en la URL no corresponde a una direccion valida de www.scotiabank.cl \n PRESIONE ACEPTAR/OK PARA VOLVER A SCOTIABANK.CL -- "+asdf);		
				i=content.length+1;
				top.location.href="http://www.scotiabank.cl";
			} 			
		}	
		p1++;
		p2++;
		p3++;
		p4++;
	}
	fillFrame();
}

function valoresno(valorno)
{
	if ( valorno == "http" || valorno == "HTTP" ) return false;
	if ( valorno == "ftp/" || valorno == "FTP/"  ) return false;
	if ( valorno == "ps:/" || valorno == "PS:/" ) return false;
	if ( valorno == ".cl/" || valorno == ".CL/" ) return false;
	if ( valorno == ".com" || valorno == ".COM" ) return false;
return true;	
}
