
function createSearchForm(q,ot,st,INsrch)
{var htx ='';
htx+='<form method=get name="frmSearch" action="/search.aspx" class="search-page-box">';
htx+='<input type="hidden" name="rel" value="0"><input type="hidden" name="post" value="1"><input type=hidden name="from" value="page">';
htx+='<table border="0" cellpadding="1" cellspacing="0" width="100%">';
htx+='<tr><td>&#1593;&#1576;&#1575;&#1585;&#1578;&#32;&#1605;&#1608;&#1585;&#1583;&#32;&#1580;&#1587;&#1578;&#1580;&#1608;</td>';
htx+='<td id="lblOtyp"><span id="starOtyp" style="display:none">*</span>&#1605;&#1591;&#1604;&#1576;</td>';
htx+='<td>&#1588;&#1610;&#1608;&#1607;</td>';
htx+='<td rowspan=2 style="TEXT-ALIGN:left"><button type="submit" style="PADDING:6px 10px">&#1580;&#1587;&#1578;&#1580;&#1608;</button></td>';
htx+='</tr><tr>';
htx+='<td><input type="text" maxlength="200" id="IDq" size="50" name="q" value=""></td>';
htx+='<td>';
htx+='<select size="1" id="IDotyp" name="otyp" style="width:120px;" onchange="AlertObjTypeChange()">';htx+='<option value="*">&#91;&#1607;&#1605;&#1607;&#32;&#1605;&#1591;&#1575;&#1604;&#1576;&#93;</option>';htx+='<option value="37">&#1570;&#1711;&#1607;&#1610;&#32;&#1575;&#1587;&#1578;&#1582;&#1583;&#1575;&#1605;</option>';htx+='<option value="7">&#1575;&#1582;&#1576;&#1575;&#1585;&#32;&#1608;&#32;&#1585;&#1608;&#1610;&#1583;&#1575;&#1583;&#1607;&#1575;</option>';htx+='<option value="44">&#1662;&#1575;&#1587;&#1582;&#32;&#1607;&#1575;&#1610;&#32;&#1605;&#1587;&#1575;&#1576;&#1602;&#1607;</option>';htx+='<option value="28">&#1662;&#1575;&#1610;&#1575;&#1606;&#8204;&#1606;&#1575;&#1605;&#1607;&#8204;&#1607;&#1575;</option>';htx+='<option value="41">&#1662;&#1585;&#1587;&#1588;&#32;&#1607;&#1575;&#1610;&#32;&#1605;&#1578;&#1583;&#1575;&#1608;&#1604;</option>';htx+='<option value="50">&#1662;&#1608;&#1587;&#1578;&#1585;&#1607;&#1575;</option>';htx+='<option value="38">&#1578;&#1589;&#1575;&#1608;&#1610;&#1585;&#32;&#1606;&#1605;&#1575;&#1610;&#1588;&#1610;</option>';htx+='<option value="14">&#1580;&#1605;&#1604;&#1575;&#1578;&#32;&#1576;&#1585;&#1711;&#1586;&#1610;&#1583;&#1607;</option>';htx+='<option value="10">&#1581;&#1603;&#1575;&#1610;&#1578;&#8204;&#1607;&#1575;</option>';htx+='<option value="18">&#1582;&#1583;&#1605;&#1575;&#1578;&#32;&#1587;&#1575;&#1610;&#1578;</option>';htx+='<option value="27">&#1582;&#1583;&#1605;&#1575;&#1578;&#32;&#1605;&#1588;&#1575;&#1608;&#1585;&#1607;&#32;&#1575;&#1610;</option>';htx+='<option value="32">&#1582;&#1583;&#1605;&#1575;&#1578;&#32;&#1605;&#1606;&#1575;&#1576;&#1593;&#32;&#1575;&#1606;&#1587;&#1575;&#1606;&#1610;</option>';htx+='<option value="48">&#1582;&#1583;&#1605;&#1578;&#32;&#1662;&#1610;&#1575;&#1605;&#1603;</option>';htx+='<option value="40">&#1582;&#1608;&#1583;&#32;&#1575;&#1585;&#1586;&#1610;&#1575;&#1576;&#1610;&#32;&#1607;&#1575;</option>';htx+='<option value="25">&#1583;&#1608;&#1585;&#1607;&#8204;&#1607;&#1575;&#1610;&#32;&#1570;&#1605;&#1608;&#1586;&#1588;&#1610;</option>';htx+='<option value="47">&#1583;&#1610;&#1583;&#1711;&#1575;&#1607;&#32;&#1607;&#1575;</option>';htx+='<option value="9">&#1586;&#1606;&#1583;&#1711;&#1610;&#1606;&#1575;&#1605;&#1607;&#8204;&#1607;&#1575;</option>';htx+='<option value="15">&#1588;&#1585;&#1603;&#1578;&#8204;&#1607;&#1575;</option>';htx+='<option value="6">&#1602;&#1608;&#1575;&#1606;&#1610;&#1606;&#32;&#1608;&#32;&#1605;&#1602;&#1585;&#1585;&#1575;&#1578;</option>';htx+='<option value="11">&#1603;&#1575;&#1585;&#1580;&#1608;&#1610;&#1575;&#1606;</option>';htx+='<option value="8">&#1603;&#1575;&#1585;&#1610;&#1603;&#1575;&#1578;&#1608;&#1585;&#1607;&#1575;&#32;&#1608;&#32;&#1578;&#1589;&#1575;&#1608;&#1610;&#1585;</option>';htx+='<option value="3">&#1603;&#1578;&#1575;&#1576;&#8204;&#1607;&#1575;</option>';htx+='<option value="46">&#1711;&#1601;&#1578;&#1711;&#1608;&#1607;&#1575;</option>';htx+='<option value="24">&#1604;&#1591;&#1610;&#1601;&#1607;&#8204;&#1607;&#1575;</option>';htx+='<option value="12">&#1605;&#1578;&#1582;&#1589;&#1589;&#1575;&#1606;</option>';htx+='<option value="43">&#1605;&#1587;&#1575;&#1576;&#1602;&#1607;&#32;&#1607;&#1575;</option>';htx+='<option value="2">&#1605;&#1602;&#1575;&#1604;&#1575;&#1578;</option>';htx+='<option value="1">&#1605;&#1608;&#1590;&#1608;&#1593;&#1575;&#1578;</option>';htx+='<option value="13">&#1606;&#1585;&#1605;&#8204;&#1575;&#1601;&#1586;&#1575;&#1585;&#1607;&#1575;</option>';htx+='<option value="20">&#1606;&#1588;&#1585;&#1610;&#1575;&#1578;</option>';htx+='<option value="29">&#1606;&#1603;&#1575;&#1578;</option>';htx+='<option value="42">&#1606;&#1605;&#1608;&#1606;&#1607;&#32;&#1607;&#1575;&#1610;&#32;&#1602;&#1585;&#1575;&#1585;&#1583;&#1575;&#1583;</option>';htx+='<option value="5">&#1608;&#1576;&#8204;&#1587;&#1575;&#1610;&#1578;&#8204;&#1607;&#1575;</option>';htx+='<option value="26">&#1608;&#1576;&#1604;&#1575;&#1711;&#8204;&#1607;&#1575;</option>';htx+='</select>';
htx+='</td><td>';
htx+='<select id="IDstyp" name="typ" size="1" style="width:90px;"><option value="1">&#1607;&#1605;&#1607;&#32;&#1603;&#1604;&#1605;&#1575;&#1578;</option><option value="2">&#1576;&#1585;&#1582;&#1610;&#32;&#1603;&#1604;&#1605;&#1575;&#1578;</option><option value="3">&#1593;&#1576;&#1575;&#1585;&#1578;</option></select>';
htx+='</td></tr>';
htx+='<tr><td colspan=3><input type="checkbox" id="idIN" name="IN" value="ON" title="&#1580;&#1587;&#1578;&#1580;&#1608;&#1610;&#32;&#1607;&#1608;&#1588;&#1605;&#1606;&#1583;&#1575;&#1606;&#1607;&#32;&#1576;&#1575;&#32;&#1575;&#1587;&#1578;&#1601;&#1575;&#1583;&#1607;&#32;&#1575;&#1586;&#32;&#1605;&#1601;&#1607;&#1608;&#1605;&#32;&#1593;&#1576;&#1575;&#1585;&#1578;&#32;&#1605;&#1608;&#1585;&#1583;&#32;&#1580;&#1587;&#1578;&#1580;&#1608;"><label for="idIN" title="&#1580;&#1587;&#1578;&#1580;&#1608;&#1610;&#32;&#1607;&#1608;&#1588;&#1605;&#1606;&#1583;&#1575;&#1606;&#1607;&#32;&#1576;&#1575;&#32;&#1575;&#1587;&#1578;&#1601;&#1575;&#1583;&#1607;&#32;&#1575;&#1586;&#32;&#1605;&#1601;&#1607;&#1608;&#1605;&#32;&#1593;&#1576;&#1575;&#1585;&#1578;&#32;&#1605;&#1608;&#1585;&#1583;&#32;&#1580;&#1587;&#1578;&#1580;&#1608;">&#1580;&#1587;&#1578;&#1580;&#1608;&#1610;&#32;&#1607;&#1608;&#1588;&#1605;&#1606;&#1583;</label></td>';
htx+='<td style="TEXT-ALIGN:left"><a href="/searchhelp.aspx"><img style="BORDER:0px;VERTICAL-ALIGN:middle;" src="/images/objicons/help_16.gif">&#32;&#1585;&#1575;&#1607;&#1606;&#1605;&#1575;</a></td>';
htx+='</tr></table>';
htx+='</form>';
document.write(htx);
document.getElementById('IDq').value=unescape(q);
if (INsrch==-1){document.getElementById('idIN').checked=true};
document.getElementById('IDotyp').value=ot;
document.getElementById('IDstyp').value=st;
AlertObjTypeChange()
}
function AlertObjTypeChange()
{
var drp=document.getElementById('IDotyp');
var lbl=document.getElementById('lblOtyp');
var star=document.getElementById('starOtyp');
if (drp.value=='*')
	{
	lbl.style.color='black';
	lbl.style.fontweight='500';
	star.style.display='none';
	}
else
	{
	lbl.style.color='red';
	lbl.style.fontweight='600';
	star.style.display='inline';
	}
}
