2 parts to this script
===============================================================
part 1 - place in head
==================================================================

<script language=javascript>
<!--
/*******************************************************/
/*  This header must remain in place                   */
/*                                                     */
/*  Title: Site Ranker                                 */
/*         http://www.plebius.org/javascripts/         */
/*  Copyright 1999 All Rights Reserved.                */
/*         http://www.plebius.org/copy.shtml           */
/*  Owner: Plebius Industries                          */
/*         http://www.plebius.org                      */
/*  Author: Martin Kretzmann                           */
/*         scripts@plebius.org                         */
/*  License: GNU General Public License                */
/*         http://www.plebius.org/scripts/license.html */
/*******************************************************/

function calc(){
	r = Math.round(document.iform.pv.value/document.iform.mpv.value);
	p = r/document.iform.ts.value;
	p = Math.round(p*10000)/100;
	p = 100 - p + '%';
	document.iform.r.value = r;
	document.iform.p.value = p;
}


//  Based on formula outlined at:
//  http://www.useit.com/alertbox/relativeranking.html

//-->
</script>


=================================================================
part 2 - place in body
=================================================================

<form name=iform>
<input type=hidden name=pv value="1645000000">
<input type=hidden name=ts value="5000000">
<table width=400 cellpadding=4 cellspacing=3><tr><td>
Enter total weekly pageviews to your site:*
</td><td>
<input type=text name=mpv value="">
</td></tr>
<tr><td>Your site is ranked:</td><td>
<input type=text  name=r></td></tr>
<tr><td>Percentile:*</td>
<td><input type=text name=p></td></tr>
<td><input type=button onClick="calc()" value=" Calculate "></td><td>
<input type=reset value=" Reset "></td></tr></table>
<table width=400><tr><td>
* The fewest number of weekly page views for this simulation
is around 329, or 47 per day.  Percentage is based on the
current number of registered .com, .net, .org, .edu domains.  Based on formula outlined at: <a href="  http://www.useit.com/alertbox/relativeranking.html">http://www.useit.com/alertbox/relativeranking.html</a>
</td></tr></table>
</form>
