function OpenNormalPage(url)
{
	window.open(url, "", "");
}

function OpenWindow(url, name, options)
{
	window.open(url, name, options);
	return;
}

function OpenPopUp(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h);
}

function OpenPopUpWithScroll(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width=' + w + ',height=' + h);
}

function OpenPopUpResizable(url, w, h)
{
	return OpenWindow(url, 'popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=' + w + ',height=' + h);	
}

function OpenPopUpParams(url, params)
{
	return OpenWindow(url, 'popup', params);	
}

function OpenPopUpSession()
{
	login = getCookie('Roche.WebCore.Security.UserIdentity');
	url = 'http://www.e-dialogo.com.br/pc/gripe/tamifluperu/?name=Peru&email=' + login;

	return OpenPopUp(url, 565, 550);
}

function getCookie (cookieName)
{
	/* retrieved in the format
	cookieName4=value; cookieName3=value; cookieName2=value; cookieName1=value
	only cookies for this domain and path will be retrieved */
	var cookieJar = document.cookie.split( "; " );
	for( var x = 0; x < cookieJar.length; x++ ) {
		var oneCookie = cookieJar[x].split( "=" );
		if( oneCookie[0] == escape( cookieName ) ) { return oneCookie[1] ? unescape( oneCookie[1] ) : ''; }
	}
	return null;

}


