<?php

	if ($_POST["searchfield"]) { $SearchField = strip_tags($_POST["searchfield"]); }
	if ($_GET["searchfield"]) { $SearchField = strip_tags($_GET["searchfield"]); }
	if ($_POST["searchstring"]) { $SearchString = strip_tags($_POST["searchstring"]); }
	if ($_GET["searchstring"]) { $SearchString= strip_tags($_GET["searchstring"]); }
	if ($_POST["formaction"]) { $FormAction = strip_tags($_POST["formaction"]); }
	if ($_GET["formaction"]) { $FormAction = strip_tags($_GET["formaction"]); }
	if ($_POST["confirmaction"]) { $ConfirmAction = strip_tags($_POST["confirmaction"]); }
	if ($_GET["confirmaction"]) { $ConfirmAction = strip_tags($_GET["confirmaction"]); }
	
	
	
	if (isset($_POST["templateid"]) && (is_numeric($_POST["templateid"]))) { $TemplateID = $_POST["templateid"]; } else  
	if (isset($_GET["templateid"]) && (is_numeric($_GET["templateid"]))) { $TemplateID = $_GET["templateid"]; } else { $TemplateID = 0; } 
	
?>