<?php
$htext = "";
if(isset($_REQUEST['htext'])) {
	$htext = trim(stripslashes($_REQUEST['htext']));
}


$help = array(
	"display_name" => array(
		"title" => "Name to be displayed",
		"text"	=> "The name to be displayed on the Advertisment (Free Listing) has to be short (up to 24 characters) and you must try to write it as close as possible to what people would write in the Search Engines when trying to find you on internet."
	),
	"freelisting_meta_description" => array(
		"title" => "Short Description",
		"text"	=> "Please enter a short but objective description of your business. This text will be displayed by the search engines in the results list."
	)
);

if($htext != "") {
	if(array_key_exists($htext, $help)) {
		?>
		<html>
			<head>
				<title><?php echo $help[$htext]['title'];?></title>
				<style type="text/css">
					div.help {
						margin: 5px;
						padding: 5px;
						border: 1px solid #cccccc;
						background-color: #efefef;
						font-size: 12px;
						font-family: Arial;
					}
					
					div.help h1 {
						font-size: 14px;
						color: #333333;
						margin: 5px 3px;
					}
					
					div.help p {
						font-size: 12px;
					}
					
					div.close {
						text-align: center;
						font-size: 11px;
						border-top: 1px solid #000000;
					}
					
					div.close a {
						color: #dd0000;
						font-size: 11px;
					}
					
				</style>
			</head>
			<body>
				<div class="help">
					<h1><?php echo $help[$htext]['title'];?></h1>
					<p>
					<?php echo $help[$htext]['text'];?>
					</p>
					<div class="close"><a href="javascript:window.close();">Close Window</a></div>
				</div>
			</body>
		</html>
		<?php
	}
}

?>