print '<div class="text">';

$help_page = "helpdesk_body.out";

# download the form
system "wget -O $help_page $helpdesk_website_page";
open (HELP,"<$help_page") || file_error("Couldn't connect to $helpdesk_website");

# some lines must be replaced or we want to append values
$headerstring = "<h1>(.+)</h1>";
$domainstring = "(<input type=\"text\" name=\"domain\" id=\"domain\" value=\")(\".+)";
$accountstring = "(\t<option value=\".+\")(>$hostingplan Plan</option>)";
$submitstring = "<input type=\"submit\" value=\"Submit\" />";
while (<HELP>)
{
	if (/$headerstring/) {
		print "<p><b>&gt; $1</b></p>";
	} elsif (/$domainstring/) {
		print "$1$domainname$2\n";
	} elsif (/$accountstring/) {
		print "$1 selected=\"selected\"$2\n";
	} elsif (/$submitstring/) {
		print "<input type=\"image\" src=\"/vpanel/images/button_submit.gif\" alt=\"submit\" />\n";
	} else {
        	print $_;
	}
}
close (HELP);

unlink ($help_page);
print "</div>\n";
