﻿document.writeln("<SCRIPT language=JavaScript>");
document.writeln("var sect1 =  new Array('','BHBAH'");
document.writeln(");");
document.writeln("var sect2 =  new Array('','CAYHZ'");
document.writeln(");");
document.writeln("var sect3 =  new Array('','INBOM'");
document.writeln(");");
document.writeln("var sect4 =  new Array('','IRBAN'");
document.writeln(");");
document.writeln("var sect5 =  new Array('','ITLIV'");
document.writeln(");");
document.writeln("var sect6 =  new Array('','KWKWI'");
document.writeln(");");
document.writeln("var sect7 =  new Array('','LYTIP'");
document.writeln(");");
document.writeln("var sect8 =  new Array('','OMMUS'");
document.writeln(");");
document.writeln("var sect9 =  new Array('','PKPQS'");
document.writeln(");");
document.writeln("var sect10 =  new Array('','SAJED'");
document.writeln(", 'SADAM'");
document.writeln(");");
document.writeln("var sect11 =  new Array('','AEJEB'");
document.writeln(");");
document.writeln("var sect12 =  new Array('','USNYC'");
document.writeln(", 'USBWI'");
document.writeln(", 'USHOU'");
document.writeln(", 'USMSY'");
document.writeln(", 'USSAV'");
document.writeln(", 'USILM'");
document.writeln(", 'USNPT'");
document.writeln(");");
document.write("var model1 =  new Array('اختر ميناء'");
document.write(", 'BAHRAIN             '");
document.writeln(");");
document.write("var model2 =  new Array('اختر ميناء'");
document.write(", 'HALIFAX             '");
document.writeln(");");
document.write("var model3 =  new Array('اختر ميناء'");
document.write(", 'BOMBAY(MUMBAI)      '");
document.writeln(");");
document.write("var model4 =  new Array('اختر ميناء'");
document.write(", 'BANDAR ABBAS        '");
document.writeln(");");
document.write("var model5 =  new Array('اختر ميناء'");
document.write(", 'LIVORNO             '");
document.writeln(");");
document.write("var model6 =  new Array('اختر ميناء'");
document.write(", 'SHUWAIKH, KUWAIT    '");
document.writeln(");");
document.write("var model7 =  new Array('اختر ميناء'");
document.write(", 'TRIPOLI             '");
document.writeln(");");
document.write("var model8 =  new Array('اختر ميناء'");
document.write(", 'MUSCAT              '");
document.writeln(");");
document.write("var model9 =  new Array('اختر ميناء'");
document.write(", 'PORT QASIM          '");
document.writeln(");");
document.write("var model10 =  new Array('اختر ميناء'");
document.write(", 'JEDDAH              '");
document.write(", 'DAMMAM              '");
document.writeln(");");
document.write("var model11 =  new Array('اختر ميناء'");
document.write(", 'JEBEL ALI(DUBAI)    '");
document.writeln(");");
document.write("var model12 =  new Array('اختر ميناء'");
document.write(", 'NEW YORK            '");
document.write(", 'BALTIMORE           '");
document.write(", 'HOUSTON             '");
document.write(", 'NEW ORLEANS         '");
document.write(", 'SAVANNAH            '");
document.write(", 'WILMINGTON          '");
document.write(", 'NEWPORT NEWS        '");
document.writeln(");");
document.writeln("function swapOptions(array_id) {");
document.writeln("if(array_id > 0){");
document.writeln("sel=document.form1.portf");
document.writeln("lis=eval('model'+array_id);");
document.writeln("val=eval('sect'+array_id);");
document.writeln("for(i=(sel.length)-1; i>=0; i--)");
document.writeln("sel.options[i] = null");
document.writeln("sel.options[0] = new Option(lis[0],val[0], '', 'true')");
document.writeln("for (i=1; i<lis.length; i++)");
document.writeln("sel.options[i] = new Option(lis[i],val[i])");
document.writeln("}}");
document.writeln("function swapOptions1(array_id) {");
document.writeln("if(array_id > 0){");
document.writeln("sel=document.form1.portt;");
document.writeln("lis=eval('model'+array_id);");
document.writeln("val=eval('sect'+array_id);");
document.writeln("for (i=sel.length-1; i>=0; i--)");
document.writeln("sel.options[i] = null");
document.writeln("sel.options[0] = new Option(lis[0],val[0], '', 'true')");
document.writeln("for (i=1; i<lis.length; i++)");
document.writeln("sel.options[i] = new Option(lis[i],val[i])}}");
document.writeln("</SCRIPT>");
document.writeln("<FORM name = 'form1' action='voyage_schedule_result.php' method='post'>");
document.writeln("<div class='VAlignT MarginTop14 '>");
document.writeln("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("	  <tr>");
document.writeln("		<td width='160'><div class='MarginRight10 LineHeight15 BlockContentFont4'>بلد التحميل:</div></td>");
document.writeln("		<td>");
document.writeln("<SELECT name='countryf' onchange='swapOptions( this[this.selectedIndex].value);' class='LookingForList1 Width157'>");
document.writeln("<OPTION selected value>من</OPTION>");
document.writeln("<OPTION value=1>البحرين                  </OPTION>");
document.writeln("<OPTION value=2>كندا                   </OPTION>");
document.writeln("<OPTION value=3>الهند                    </OPTION>");
document.writeln("<OPTION value=4>ايران                     </OPTION>");
document.writeln("<OPTION value=5>ايطاليا                    </OPTION>");
document.writeln("<OPTION value=6>الكويت                   </OPTION>");
document.writeln("<OPTION value=7>ليبيا                    </OPTION>");
document.writeln("<OPTION value=8>عمان                     </OPTION>");
document.writeln("<OPTION value=9>باكستان                 </OPTION>");
document.writeln("<OPTION value=10>السعودية             </OPTION>");
document.writeln("<OPTION value=11>الامارات     </OPTION>");
document.writeln("<OPTION value=12>الولايات المتحدة            </OPTION>");
document.writeln("</SELECT>");
document.writeln("		</td>");
document.writeln("	  </tr>");
document.writeln("	</table>");
document.writeln("</div>");
document.writeln("<div class='VAlignT MarginTop14 '>");
document.writeln("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("	  <tr>");
document.writeln("		<td width='160'><div class='MarginRight10 LineHeight15 BlockContentFont4'>ميناء التحميل:</div></td>");
document.writeln("		<td>");
document.writeln("<SELECT name='portf' size='1' class='LookingForList1 Width157'>");
document.writeln("<OPTION value = '' selected>من الميناء</OPTION></SELECT>");
document.writeln("		</td>");
document.writeln("	  </tr>");
document.writeln("	</table>");
document.writeln("</div>");
document.writeln("<div class='VAlignT MarginTop14 '>");
document.writeln("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("	  <tr>");
document.writeln("		<td width='160'><div class='MarginRight10 LineHeight15 BlockContentFont4'>بلد التفريغ:</div></td>");
document.writeln("		<td>");
document.writeln("<SELECT name='countryt' onchange='swapOptions1( this[this.selectedIndex].value);' class='LookingForList1 Width157'>");
document.writeln("<OPTION selected value>الى</OPTION>");
document.writeln("<OPTION value=1>البحرين                  </OPTION>");
document.writeln("<OPTION value=2>كندا                   </OPTION>");
document.writeln("<OPTION value=3>الهند                    </OPTION>");
document.writeln("<OPTION value=4>ايران                     </OPTION>");
document.writeln("<OPTION value=5>ايطاليا                    </OPTION>");
document.writeln("<OPTION value=6>الكويت                   </OPTION>");
document.writeln("<OPTION value=7>ليبيا                    </OPTION>");
document.writeln("<OPTION value=8>عمان                     </OPTION>");
document.writeln("<OPTION value=9>بكستان                 </OPTION>");
document.writeln("<OPTION value=10>السعودية             </OPTION>");
document.writeln("<OPTION value=11>الامارات     </OPTION>");
document.writeln("<OPTION value=12>الولايات المتحدة            </OPTION>");
document.writeln("</Select>");
document.writeln("		</td>");
document.writeln("	  </tr>");
document.writeln("	</table>");
document.writeln("</div>");
document.writeln("<div class='VAlignT MarginTop14 '>");
document.writeln("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("	  <tr>");
document.writeln("		<td width='160'><div class='MarginRight10 LineHeight15 BlockContentFont4'>ميناء التفريغ:</div></td>");
document.writeln("		<td>");
document.writeln("<TD><SELECT name='portt' size='1' class='LookingForList1 Width157'>");
document.writeln("<OPTION value = '' selected>الى الميناء</OPTION></Select>");
document.writeln("		</td>");
document.writeln("	  </tr>");
document.writeln("	</table>");
document.writeln("</div>");
document.writeln("<div class='TextAlignRight MarginTop10'>");
document.writeln("<INPUT cache id=Submit name=Submit src='images/submit.gif' type=image value=Submit>&nbsp;&nbsp;");
document.writeln("</div>");
document.writeln("</FORM>");
