window.focus();

function ShowBank(sourceName)
{
   window.open(sourceName,"ShowBank","status=no,location=no,menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=yes,width=570,height=400");
}

function ShowWindow2(sourceName)
{
   window.open(sourceName,"ShowWindow2","status=no,location=no,menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=yes,width=890,height=500");
}

var __default_expires = 2592000; // seconds, 30 days
function set_cookie( name, data, path, expires, domain, secure ) { 
	if ( !expires ) { 
		expires = new Date();
		expires.setTime( expires.getTime() + __default_expires*30*1000 ); 
	} 
	document.cookie = name + "=" + escape(data) + ((expires == null) ? "" : "; expires=" + expires.toGMTString()) + ((path == null) ? "" : "; path=" + path) + ((domain == null) ? "" : "; domain=" + domain) + ((secure == null) ? "" : "; secure"); 
}

function get_cookie( name ) { 
	cookie = ' ' + document.cookie; 
	var cname = ' ' + name + '='; 
	var from  = cookie.indexOf(cname); 
	if ( from != -1 ) { 
		from += cname.length; 
		to    = cookie.indexOf( ';', from ); 
		if ( to == -1 ) to = cookie.length; 
		return unescape( cookie.substring(from, to) ); 
	} 
	return null; 
}

function delete_cookie ( name, path, domain ) {
	if ( get_cookie(name) ) {
		document.cookie = name + "=" + 
		((path == null) ? "" : "; path=" + path) +
		((domain == null) ? "" : "; domain=" + domain) +
		"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}

var del_cookie = delete_cookie;
