<script type="text/javascript">
function RequestClick(e) {
var x = $('#<%=RequestTextBox.ClientID%>').val();
if (x.length < 3) {
e.preventDefault();
}
else {
$('#<%=HF.ClientID%>').val(2);
}
}
function LocationClick(e) {
var x = $('#<%=LocationTextBox.ClientID%>').val();
if (x.length < 3) {
e.preventDefault();
}
else {
$('#<%=HF.ClientID%>').val(1);
}
}
$(document).bind('pageshow', function (event, ui) {
var L = $('#<%=HF.ClientID%>').val();
if (L == 1) {
$('#<%=LocationList.ClientID%>').selectmenu('open');
}
else if (L == 2) {
$('#<%=RequestList.ClientID%>').selectmenu('open');
}
else {
}
});
</script>
<div data-role="header" data-theme="d">
<h1 style="text-align: left; margin-left: 0px;">
New WO</h1>
<a id="Homebtn" href="../../Default.aspx" data-icon="home" data-theme="d" class="ui-btn-right"
data-ajax="false">
Home</a>
</div>
<table>
<tr>
<td width="97%">
<asp:TextBox ID="LocationTextBox" data-icon="search" runat="server" Width="100%"
data-inline="true" ToolTip="Type 3 Char to search Locations" placeholder="Type 3 Char to search Locations"></asp:TextBox>
</td>
<td>
<asp:Button ID="LocationFindButton" runat="server" data-iconpos="notext" data-inline="true"
Width="30px" class="submit" data-icon="search" OnClientClick="LocationClick()"
UseSubmitBehavior="False" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:DropDownList ID="LocationList" runat="server" Width="100%" >
</asp:DropDownList>
</td>
</tr>
<tr>
<td width="97%">
<asp:TextBox ID="RequestTextBox" data-icon="search" runat="server" Width="100%" data-inline="true"
ToolTip="Type 3 Char to search Requests" placeholder="Type 3 Char to search Requests"></asp:TextBox>
</td>
<td>
<asp:Button ID="RequestFindButton" runat="server" data-iconpos="notext" data-inline="true"
Width="30px" class="submit" data-icon="search" OnClientClick="RequestClick()"
UseSubmitBehavior="False" />
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="RequestList" runat="server" Width="100%">
</asp:DropDownList>
</td>
<td>
</td>
</tr>
</table>
<div data-role="footer" data-theme="d">
<div data-role="controlgroup">
<asp:Button ID="SaveButton" Text="Save" runat="server" ValidationGroup="VG1" />
<asp:Button ID="CancelButton" Text="Cancel" runat="server" />
</div>
</div>
<asp:HiddenField ID="HF" runat="server" />