c = document.getElementById(objid+'_main');
if {
c.id=objid+'_main';
}
или такое:
if (160>450) {
resize_height=450;
} else {
resize_height=160;
}
User
c = document.getElementById(objid+'_main');
if {
c.id=objid+'_main';
}
if (160>450) {
resize_height=450;
} else {
resize_height=160;
}
<form method="get" action="/search/" name="form_name">
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="/img/inner/spacer.gif" width="15" height="22"></td>
<td height="22"><input type="text" name="q" value="Поиск"></td>
<td width="27" height="22" onclick="document.forms['form_name'].submit()">
<input type="submit" value="" style="border-width: 0;
background-color: transparent;
background: url('/img/pretty_button.gif') 0px 3px no-repeat;
width: 27px; height: 22px;">
</td>
</tr>
</table>
</form>