function CheckCookie(ServiceRoot, Parametri, PORTALE) {

	

	
	if (navigator.appName == 'Microsoft Internet Explorer') {
		if (Parametri == '') {
			Parametri = 'resizeable=no,scrollbars=yes,width=497,height=400,left=' + screen.availWidth + ',top=' + screen.availHeight;
			//Parametri = 'resizeable=no,scrollbars=yes,width=497,height=400';
		}
	

		a = (navigator.appVersion).indexOf('MSIE ');
		b = (navigator.appVersion).indexOf(';', a + 5);
		Versione = (navigator.appVersion).substring(a + 5, b);
	
	

		if (parseFloat(Versione) < 6) {
			// window.open MSIE 5++
			Help = window.open(ServiceRoot + 'Help/Cookie/SetCookie.asp?BROWSER=MSIE6&PORTALE=' + PORTALE,'_HELP', Parametri);

}
		if (parseFloat(Versione) == 6) {
				// window.open MSIE 6++
			Help = window.open(ServiceRoot + 'Help/Cookie/SetCookie.asp?BROWSER=MSIE6&PORTALE=' + PORTALE,'_HELP', Parametri);


			
		}
		if (parseFloat(Versione) > 6) {
				// window.open MSIE 6++
			Help = window.open(ServiceRoot + 'Help/Cookie/SetCookie.asp?BROWSER=MSIE7&PORTALE=' + PORTALE,'_HELP', Parametri);


}
	}
	
	if (	navigator.appName == 'Netscape'		) {
		if (Parametri == '') {
			Parametri = 'resizeable=no,scrollbars=yes,width=597,height=680,left=' + screen.availWidth + ',top=' + screen.availHeight;
			//Parametri = 'resizeable=no,scrollbars=yes,width=497,height=400';
		}


	}
	
	
}






function CookieOk(FormName, FocusFieldNeme) {
	if (FormName != '') {
		if (isNaN(FormName)) {
			FormName = FormName;
		} else {
			FormName ='forms[' + FormName + ']';
		}
	} else {
		FormName ='forms[0]';
	}

	for (i = 0; i < eval('document.' + FormName + '.length'); i++) {
		if (eval('document.' + FormName + '.elements[' + i + '].type') == 'submit') {
			eval('document.' + FormName + '.elements[' + i + '].disabled = false');
		}
	}
	
	if (FocusFieldNeme != '') {
		eval('document.' + FormName + '.' + FocusFieldNeme + '.focus()');
	}
}
