Hello again,
Thank you very much for your support, but unfortunately there's something wrong in what I'm doing (please don't laugh).
I have the main form code, the code from the form that opens the modal box and the actual page code. I will paste them below so that you can see what I did and maybe you can point me in the right direction.
The 2 main problems are:
1. The form is opened in a modal window as I wanted, but the subject box does not get automatically filled with the article title(I replaced the code for subject with the code from you and it didn't work). I am definitely missing something.
2. The button is not working when clicked. If I use hyperlink I can see the form, but on button click nothing happens
form caller code (form name: "oferta-extern"):
<?php
JHTML::_('behavior.modal');
$id = JRequest::getInt('id', '', 'get');
$url = "/index.php?option=com_chronocontact&%20%20chronoformname=frm_oferta_extern&tmpl=component&id=".$id;
?>
<a class="modal" href="<?php echo $url; ?>" rel="{handler: 'iframe', size: {x: 700, y: 500}}"
>Solicita oferta</a>
actual form code (form name "frm_oferta_extern"):
<div class="form_item">
<div class="form_element cf_heading">
<h2 class="cf_text">Cerere oferta turism extern</h2>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Subiect</label>
<input class="cf_inputbox required" maxlength="200" size="40" title="" id="text_9" name="frm_subject" type="text" />
<?php $id = JRequest::getInt('id', '', 'get'); ?>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Subiect :: Destinatia sau tipul ofertei solicitate</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 150px;">Adresare</label>
<select class="cf_inputbox validate-selection" id="select_10" size="1" title="Va rugam alegeti formula de adresare" name="name_title">
<option value="">-selectati-</option>
<option value="Dl.">Dl.</option>
<option value="D-ra">D-ra</option>
<option value="D-na">D-na</option>
</select>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Adresare :: Alegeti modalitatea de adresare</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Nume si prenume</label>
<input class="cf_inputbox required validate-alpha" maxlength="150" size="30" title="camp obligatoriu" id="text_2" name="full_name" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Nume si prenume :: Numele si prenumele dumneavoastra</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Adresa de e-mail</label>
<input class="cf_inputbox required validate-email" maxlength="150" size="30" title="lipsa adresa de e-mail" id="text_3" name="email" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Adresa de e-mail :: Pe aceasta adresa veti primi raspunsul nostru</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Telefon mobil</label>
<input class="cf_inputbox validate-number" maxlength="20" size="15" title="" id="text_4" name="mobile" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Telefon mobil :: Folositi numai cifre, fara alte caractere</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Orasul</label>
<input class="cf_inputbox validate-alpha" maxlength="150" size="30" title="" id="text_12" name="city" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">Detalii suplimentare</label>
<textarea class="cf_inputbox required" rows="3" id="text_13" title="va rugam sa compeltati acest camp" cols="30" name="details"></textarea>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Detalii suplimentare :: Completati detaliile pe care le doriti cu privire la oferta curenta</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_captcha">
<label class="cf_label" style="width: 150px;">Intorduceti codul</label>
<span>{imageverification}</span>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Trimite" name="button_10" type="submit" /><input type="reset" name="reset" value="Reset"/>
</div>
<div class="cfclear">Â </div>
</div>
and last but not least - actual page source
<p> </p>
<button rel="{handler: 'iframe', size: {x: 700, y: 500}, url: '/index.php?option=com_chronocontact&chronoformname=oferta-extern&tmpl=component'}">Click me!</button>
<p> </p>
<h3>{chronocontact}oferta-extern{/chronocontact}</h3>
Only the standard form caller works. The button is completely inert😟
this is the form:

this is the page:

Please, once again accept my apologies for asking dumb questions here, but it's my last hope to make it work. And although I just started to learn PHP, this is much more than I can understand at this point.
Thank you.