<script type='text/javascript'>
function checkForm(){
	var nyelv = <?if(hun()):?>'hun'<?else:?>'eng'<?endif;?>;
	if( checkFormPersonal(nyelv) ){
		jQuery('#urlap').submit();
	}
}
</script>


<style>
	#content input, #content textarea, #content select{
		background: #ddd;
		width: 350px;
		border: 1px solid #ccc;
	}
	
	tr.rejtett{
		display: none;
	}
</style>


<div style="padding: 5px 0 0 5px;">

<?if(hun()):?>
	<? $lap = $this->mpages->get_row(27); ?>
<?else:?>
	<? $lap = $this->mpages->get_row(492);?>
<?endif;?>

<h1><?=$lap->page_title?></h1>

<?if(!hun()):?>
<p>Please fill in the form below and press the Send button and we will get back to you as soon as possible.</p><br />
<?else:?>
<p>Köszönjük, hogy érdeklődik az ARCHLine.XP tervezőprogram iránt.<br />
Kérjük, adja meg az alábbi információkat, hogy kérdését megválaszolhassuk.<br />
Az Ön által megadott adatokat kizárólag kérésének megfelelően fogjuk felhasználni.</p><br />
<?endif;?>

<form action="/contact/submit" method="post" name="urlap" id="urlap">
<table>
<?=$this->load->view('form_general')?>
<tr class="rejtett">
	<td>Link:</td>
	<td><input type="text" name="url" id="url" /></td>
</tr>
<tr>
	<td><?=lang('subject')?>:</td>
	<td>
		<select id="subject" name="subject">
			<?/*<option <?if($tema=="demo"):?>selected="selected"<?endif;?> value="<?=lang('contact_req_demo')?>"><?=lang('contact_req_demo')?></option>*/?>
			
			<?if($tema=="archid"):?>
			<option selected="selected" value="<?=lang('contact_req_archid')?>"><?=lang('contact_req_archid')?></option>
			<?else:?>
			<option <?if($tema=="call"):?>selected="selected"<?endif;?> value="<?=lang('contact_req_call')?>"><?=lang('contact_req_call')?></option>
			<option <?if($tema=="newsl"):?>selected="selected"<?endif;?> value="<?=lang('contact_sign_newsletter')?>"><?=lang('contact_sign_newsletter')?></option>
			<option <?if($tema=="other"):?>selected="selected"<?endif;?> value="<?=lang('contact_other')?>"><?=lang('contact_other')?></option>
			<?endif;?>
		</select>
	</td>
</tr>
<tr>
	<td valign="top" style="padding-top: 20px;"><?=lang('message')?>:</td>
	<td>
	<p><textarea rows="10" cols="63" name="message" id="message"></textarea></p>
	</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td><input type="button" class="send" value="<?=lang('send')?>" style="width: 80px;" onclick="checkForm()" /></td>
</tr>
</table>
</form>

<script type="text/javascript" src="/public/editor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
	var oFCKeditor = new FCKeditor( 'message' ) ;
	oFCKeditor.BasePath = "/public/editor/";
	oFCKeditor.Width="350";
	oFCKeditor.Height="200";
	oFCKeditor.ToolbarSet="Basic";
	oFCKeditor.ReplaceTextarea() ;
}
</script>

<?=$lap->page_body?>

</div>