<?php

if (empty($_GET['id']))

{

	die("Required parameter is missing");

}

$previewTabs = "previewtabs.php?id=" . $_GET['id'];

$htmlURL = "previewhtml.php?id=" . $_GET['id'];

$textURL =  "previewtext.php?id=" . $_GET['id'];

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Segnant Mailer - Preview your newsletter</title>

</head>

<frameset rows="80,*" frameborder="no" border="0" framespacing="0">

  <frame src="<?php echo $previewTabs ?>" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />

  <frame src="<?php echo $htmlURL ?>" name="mainFrame" id="mainFrame" title="mainFrame" />

</frameset>

<noframes><body>

</body>

</noframes></html>