
// Process user choice
function ww_winner(won)
{
    // Set cookie to store winner.
    if (navigator.cookieEnabled || typeof(navigator.cookieEnabled) != "undefined")
    {
        document.cookie = "won=" + won;
    }

    // Redirect.    
    document.location.href = document.location.href;
};

function CreateBookmarkLink(url,title)
{
	if (window.sidebar)
	{ 
		// Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} 
	else if (window.external)
	{ 
		// IE Favorite
		window.external.AddFavorite( url, title);
	}
};

// Dreamweaver rollover images
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('e D(){8 i,x,a=5.f;7(i=0;a&&i<a.6&&(x=a[i])&&x.c;i++)x.b=x.c}e y(){8 d=5;4(d.C){4(!d.9)d.9=h l();8 i,j=d.9.6,a=y.m;7(i=0;i<a.6;i++)4(a[i].w("#")!=0){d.9[j]=h B;d.9[j++].b=a[i]}}}e g(n,d){8 p,i,x;4(!d)d=5;4((p=n.w("?"))>0&&v.u.6){d=v.u[n.t(p+1)].5;n=n.t(0,p)}4(!(x=d[n])&&d.s)x=d.s[n];7(i=0;!x&&i<d.r.6;i++)x=d.r[i][n];7(i=0;!x&&d.k&&i<d.k.6;i++)x=g(n,d.k[i].5);4(!x&&d.q)x=d.q(n);A x}e o(){8 i,j=0,x,a=o.m;5.f=h l;7(i=0;i<(a.6-2);i+=3)4((x=g(a[i]))!=z){5.f[j++]=x;4(!x.c)x.c=x.b;x.b=a[i+2]}}',40,40,'||||if|document|length|for|var|MM_p||src|oSrc||function|MM_sr|MM_findObj|new|||layers|Array|arguments||MM_swapImage||getElementById|forms|all|substring|frames|parent|indexOf||MM_preloadImages|null|return|Image|images|MM_swapImgRestore'.split('|'),0,{}))

function ww_confirm_postcomment(form)
{
	var t = 0;
	var themessage = '';
	
	// ww_toscheckbox
	if (form.ww_yourname.value.length == 0)
	{
		themessage += "Please enter your name\n";
	}

	if ((form.ww_title.value.length + form.ww_body.value.length) == 0)
	{
		themessage += "Please enter a subject and comment\n";
	}

	if (themessage.length != 0)
	{
		alert (themessage);
		
		return false;
	}	
	
	return true;
};


