<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.

Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/



	// ========================================================================================
	// email page
	// ========================================================================================
	
	
		$A6 = intval(GetTimestamp()/60/60/24);
		$A7 = substr($Settings['lks'],10,5);
		
		$JSCode[1] = 'document.forms["SubmitForm"].elements["A4"].value = (parseInt(document.forms["SubmitForm"].elements["A2"].value)*parseInt(document.forms["SubmitForm"].elements["A3"].value)); document.forms["SubmitForm"].elements["A5"].value = (parseInt(document.forms["SubmitForm"].elements["A2"].value)+parseInt(document.forms["SubmitForm"].elements["A3"].value));';
		$JSCode[2] = 'document.forms["SubmitForm"].elements["A4"].value = (parseInt(document.forms["SubmitForm"].elements["A2"].value)-parseInt(document.forms["SubmitForm"].elements["A3"].value)); document.forms["SubmitForm"].elements["A5"].value = (parseInt(document.forms["SubmitForm"].elements["A2"].value)+(parseInt(document.forms["SubmitForm"].elements["A3"].value)*parseInt(document.forms["SubmitForm"].elements["A2"].value)));';
		$JSCode[3] = 'document.forms["SubmitForm"].elements["A4"].value = (parseInt(document.forms["SubmitForm"].elements["A2"].value)*parseInt(document.forms["SubmitForm"].elements["A2"].value)*parseInt(document.forms["SubmitForm"].elements["A3"].value)); document.forms["SubmitForm"].elements["A5"].value = (parseInt(document.forms["SubmitForm"].elements["A3"].value)*parseInt(document.forms["SubmitForm"].elements["A3"].value));';
		$JSCode[4] = 'document.forms["SubmitForm"].elements["A4"].value = (Math.pow(parseInt(document.forms["SubmitForm"].elements["A2"].value),2)); document.forms["SubmitForm"].elements["A5"].value = (Math.floor(Math.PI*parseInt(document.forms["SubmitForm"].elements["A2"].value)));';
		$JSCode[5] = 'document.forms["SubmitForm"].elements["A4"].value = ((parseInt(document.forms["SubmitForm"].elements["A2"].value)*parseInt(document.forms["SubmitForm"].elements["A3"].value))-parseInt(document.forms["SubmitForm"].elements["A2"].value)); document.forms["SubmitForm"].elements["A5"].value = ((parseInt(document.forms["SubmitForm"].elements["A2"].value)*47)+parseInt(document.forms["SubmitForm"].elements["A3"].value));';
		
		$A1 = rand(1,5); $A2 = rand(10,99);	$A3 = rand(100,999);
	
	
	
	$PageContents = '<br><div align="center"><table width="350" border="0" cellpadding="0" cellspacing="0"><tr><td>
			<font face="'.$FontFace.'" size="'.$FontSize.'">
			<div align="center"><b><font size="4">Email</font></b></div><br><form name="SubmitForm" action="'.$MainURL.'/email-submit" method="post">
			<input type="hidden" name="A1" value="'.$A1.'"><input type="hidden" name="A2" value="'.$A2.'"><input type="hidden" name="A3" value="'.$A3.'"><input type="hidden" name="A4" value=""><input type="hidden" name="A5" value=""><input type="hidden" name="A6" value="'.dechex($A6).'"><input type="hidden" name="A7" value="'.$A7.'"><script>'.$JSCode[$A1].'</script><noscript><br><br><b>JavaScript MUST be enabled for this form to function.  You are seeing this message because JavaScript is NOT currently enabled on your system.</b><br><br></noscript>
			<input type="hidden" name="PageLink" value="'.str_replace('+++','/',$Arguments2).'.html">

			<b>'.$MsgText[7][65].'*:</b><br>
			<input type="text" name="SName" size="40" style="'.$FormStyle.'">
			<br>
			<b>'.$MsgText[7][66].'*:</b><br>
			<input type="text" name="SEmail" size="40" style="'.$FormStyle.'">
			<br><br>
			<b>'.$MsgText[7][67].'*:</b><br>
			<input type="text" name="REmail" size="40" style="'.$FormStyle.'"><br>
			<br><br>
			<b>'.$MsgText[7][69].'</b><br>
			<textarea name="Comments" cols="34" rows="2" wrap="virtual" style="'.$FormStyle.'"></textarea>
						
			<br><br>
			
			<div align="center"><br>
<input type="submit" value="'.$MsgText[7][72].'" style="'.$FormStyle.'"></div>
			</td></tr></table><br><br><font size="1">'.$MsgText[7][73].'</div>
			</form>';
		
		
		print '<html><head>
<title>'.$MsgText[7][64].'</title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta name="Author" content="">
<meta name="Generator" content="FlexCMS">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
</head>
<body bgcolor="'.$Colors['CLContentBG'].'" text="'.$Colors['Text'].'" link="'.$Colors['Link'].'" vlink="'.$Colors['VLink'].'" alink="'.$Colors['ALink'].'"><font face="'.$FontFace.'" size="'.$FontSize.'">
'.$PageContents.'
</body>
</html>';


		exit();
			

	// ========================================================================================




?>
