<!--BEGIN setbuttontext Script
/*

 All Code is Copyright 2000 Camadro Inc. All rights reserved.
 You may not copy or reuse this code without express written
 permission from Camadro Inc.
 Violators will be prosecuted.

*/

var tellwindow;	 
	 
function tellafriend(gamename, url,score)		// open/update tell window to control viewing of opened windows
{
	//Set these to Netremote size plus a few (10) to fudge it because it seems to go off the edge a little
	var x = 115, y =375;
	var xMax = 640, yMax=480; // default
	var xOffset = 640, yOffset = 480;
	//determine if NS or IE
	if (document.all){ xMax = screen.width/2-160; yMax = screen.height/2-140;}
	else if (document.layers) {xMax = window.outerWidth; yMax = window.outerHeight;}

	xOffset = xMax;
   yOffset = yMax; //use upper right.  Lower right would be (yMax - y);

	tellwinparam = 'scrollbars=0,toolbar=0,menubar=0,resizable=0,status=0,width=320,height=280,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+''

   if(tellwindow == null)
   {
   	tellwindow=window.open("","tellwindow",tellwinparam);
   }
   else
	
		if(tellwindow.closed)
   		tellwindow=window.open("","tellwindow",tellwinparam);
   
  else
  {
      tellwindow.close();
  		tellwindow=window.open("","tellwindow",tellwinparam);
	}
  with(tellwindow.document)
  {
  var text;
  text='<html><head><STYLE TYPE="text/css"><!-- font-size:14pt; A:hover { color:#FFFF00; }A:link { color:#CCCCCC; }--></STYLE></HEAD>'+
  '<BODY LEFTMARGIN="2" TOPMARGIN="2" MARGINWIDTH="2" MARGINHEIGHT="2" bgcolor="#000000" text="#CCCCCC" vlink="#0000c8" link="#0000c8" BACKGROUND="grid2.gif" bgproperties="fixed">'+
  '<!--- MAIN CONTENT -------------------------------------><font size=-1>'+
'<FORM METHOD="POST" ACTION="/cgi-bin/sendgameform.cgi">'+
'<table border="0" cellspacing="0" cellpadding="0" align="CENTER">';

if(score==0)
{
text +='<tr><td colspan="2"><b>Send <font size=+1>'+gamename+'</font> to a friend.</b><br>';
}
else
{
 text +='<tr><td colspan="2"><b>Send your <font size=+1>'+gamename+'</font> score to a friend.</b><br> Your score was: '+score+' <br>';
}


text +='<font size=-1><br> Just enter your name and email address and your friends name and email address below.  Then click SEND<br>'+
'Note: Information will not be shared with anyone.'+
'<br>For complete privacy info, please review our <A HREF="/privacy.html" target=_new><B>privacy policy</B></A><BR><BR>'+
'</font></td></tr><tr><td align="left" width="30%">Your Name:</td><td align="left" >'+
'<input type="Text" name="name"  align="left" size="30" maxlength="32" >'+
'</td></tr><tr><td align="left">Your Email:</td><td align="left">'+
'<input  type="Text" NAME="submit_by"  align="LEFT" size="30" maxlength="32" >'+
'<!--  SCRIPT CONFIGURATION SECTION -->'+
'<INPUT TYPE="HIDDEN" NAME="required"VALUE="name, submit_by, fname, submit_to, gamename, url, score">'+
'<INPUT TYPE="HIDDEN" NAME="data_order" VALUE="name, submit_by, fname, submit_to, gamename, url, score"></td></tr>'+
'<tr><td align="left">Friends Name:</td><td align="left">'+
'<input type="Text" name="fname"  align="left" size="30" maxlength="32" ></td></tr>'+
'<tr><td align="left">Friends Email:</td><td align="left">'+
'<INPUT type="Text" NAME="submit_to" align="LEFT" size="30" maxlength="32" >'+
'<INPUT TYPE="HIDDEN" NAME="gamename" VALUE="'+gamename+'">'+
'<INPUT TYPE="HIDDEN" NAME="url" VALUE="'+url+'">'+
'<INPUT TYPE="HIDDEN" NAME="score" VALUE="'+score+'">'+
'</td></tr>'+
'<tr><td align="left"><br>&nbsp;&nbsp;'+
'<input type="Submit" name="submit" value="SEND" align="RIGHT" >'+
'<INPUT TYPE="HIDDEN" NAME="autorespond" VALUE="yes">'+
'<INPUT TYPE="HIDDEN" NAME="automessage" VALUE="sendgame.txt">'+
'<INPUT TYPE="HIDDEN" NAME="outputfile" VALUE="nrref.log">'+
'<INPUT TYPE="HIDDEN" NAME="form_id" VALUE="You have a FreeArcade.com Game from:">'+
'<!--  END OF SCRIPT CONFIGURATION SECTION --></td></tr></table>'+
'<!-- BEGIN COPYRIGHT --><CENTER><FONT FACE="arial, helvetica" SIZE=-2 color=#fffff>'+
'&copy; 2000 Camadro, Inc. All Rights Reserved. </FONT></CENTER><!-- END COPYRIGHT --></form></font></body></html>';
write(text);
close();
}


}		// end function tellafriend

// end Tellafriend script -->
