i have this function and it works right only to mozilla
function check_field(formid,field)
{
var k=document.getElementById(formid);
if (k[field].value=="")
{
document.getElementById("wrong_"+field).innerHTML=" Κενό πεδίο";
}
else
document.getElementById("wrong_"+field).innerHTML="";
}
i use this element to call it
<tr >
<th width="22%" <?php if (isset($_SESSION["prob_onoma"])) echo "class=\"become_wrong\"";?> align="left" >
Ονοματεπώνυμο :*
</th>
<th width="45%">
<input type="text" onblur="check_field('contact_form','onoma')" name="onoma" id="onoma" maxlength="40" size="40" value='<?php if (isset($_SESSION["onoma"])) echo $_SESSION["onoma"];?>' />
</th>
<th width="33%" class="wrong" id="wrong_onoma" name="wrong_onoma" >
<!-- edo emfanizei to lathos -->
<?php if (isset($_SESSION["prob_onoma"])) echo $_SESSION["prob_onoma"];?>
</th>
</tr>
but this function works right only in mozilla how it can run correctly to internet exmplorer/safari/chrome/opera? And why it does not work correctly to the other browsers?
Thank you very much