// -------------------------------------------------//   Generic Cookie Functions// -------------------------------------------------function GetCookieVal (fset) {	var str = document.cookie.indexOf (";", fset);	if (str == -1) str = document.cookie.length;	return unescape(document.cookie.substring(fset, str));}function GetCookie (name) {  var arg = name + "=";  var alen = arg.length;  var clen = document.cookie.length;  var i = 0;  while (i < clen)    {    var j = i + alen;    if (document.cookie.substring(i, j) == arg)      return GetCookieVal (j);      i = document.cookie.indexOf(" ", i) + 1;      if (i == 0) break;    }  return null;  }function SetCookie (name, value) {  var argv = SetCookie.arguments;  var argc = SetCookie.arguments.length;  var expires = (argc > 2) ? argv[2] : null;  var path = (argc > 3) ? argv[3] : null;  var domain = (argc > 4) ? argv[4] : null;  var secure = (argc > 5) ? argv[5] : false;  document.cookie = name + "=" + escape (value) +    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +    ((path == null) ? "" : ("; path=" + path)) +    ((domain == null) ? "" : ("; domain=" + domain)) +    ((secure == true) ? "; secure" : "");  }// -------------------------------------------------//   Window functions// -------------------------------------------------function newwin(url,parametri) {	popup=window.open(url,"_blank",parametri);	popup.creator = self;}// -------------------------------------------------//   Browser function// -------------------------------------------------function setHomePage () {	if (document.all && document.getElementById)		{		document.forms[0].style.behavior='url(#default#homepage)';		document.forms[0].setHomePage('http://www.cooker.net/');		}	else if (document.layers && navigator.javaEnabled())		{		netscape.security.PrivilegeManager.enablePrivilege ('UniversalPreferencesWrite');		navigator.preference('browser.startup.homepage', 'http://www.cooker.net/');		}}// -------------------------------------------------//   Keyword Function// -------------------------------------------------function noenter(evnt){	var tst =(document.all)? event.keyCode:evnt.which;	if (tst=='13') return false;}// -------------------------------------------------//   CHAT// -------------------------------------------------function apri_chatexpert() { 	nuovachat6359=window.open('http://server.chatexpert.it/clienthtml2/default.asp?ID=6359&gruppo=Cooker.NET','chatexpertwin', 'status=yes,toolbar=no,width=600,height=400,resizable=yes');	nuovachat6359.focus();}// -------------------------------------------------//   CHAT// -------------------------------------------------function aprichat() {	newwin('/cooker/cooker.nsf/chat.room','status=yes,toolbar=no,width=673,height=430,resizable=yes,scrollbars=yes');}// -------------------------------------------------//   Help Pop-up// -------------------------------------------------function helpwindow(pagina,campo) {      url = "/C1256BE9002E8AE2/doc/" + pagina +"@"+ campo;      parametri = "width=500,height=400,scrollbars";      popuptemp = window.open(url,"cookerhelp",parametri);      popuptemp.document.writeln("attendere...");      popuptemp.location.href = url;//      popuptemp.creator = self;	popuptemp.focus();}// -------------------------------------------------//  aggiungi ai preferiti// -------------------------------------------------function addpreferiti(url) {	parametri = "width=600,height=300,scrollbars,top=120,left=120";	popuptemp = window.open(url,"cookerpreferiti",parametri);	popuptemp.document.writeln("attendere...");	popuptemp.location.href = url;	popuptemp.focus();}