Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/06/2010, 09:17
TheDark03
 
Fecha de Ingreso: mayo-2010
Ubicación: Lima, Peru.
Mensajes: 176
Antigüedad: 14 años
Puntos: 6
Respuesta: problema con doctype public con funcion javascript en firefox

Código HTML:
Ver original
  1. <div class="subtituloform"><div class="descsubtituloform">Payment details</div></div>
  2.                               <div class="containerdata">
  3.                                     <table width="498px" border="0" align="left" cellpadding="0" cellspacing="0" style="margin:4px">
  4.                                                 <tr>
  5.                                                   <td width="182"><div align="left" ></div></td>
  6.                                                   <td width="12"></td>
  7.                                                   <td width="106"><div>Currency&nbsp;</div></td>
  8.                                                   <td width="245"><div>Amount&nbsp;&nbsp;</div></td>
  9.                                                 </tr>
  10.                                                 <tr>
  11.                                                   <td width="182"><div align="left"> <strong><font size="1">
  12.                                                     <script language="JavaScript" type="text/JavaScript">
  13.                                              var p;
  14.                                              function showURL(cmb)
  15.                                              {
  16.                                                
  17.                                                 if ( document.getElementById( 'grupo1' ).value == "TOURS ESPECIAL"  )
  18.                                                 {
  19.                                                     if(cmb.value=="Credit Card Last Minute"){
  20.                                                         p=window.open("/card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  21.                                                     }
  22.                                                     else if(cmb.value=="Credit Card with Money Bookers") {
  23.                                                         var tourchoosed = document.getElementById( "Tour" );
  24.                                                         if( tourchoosed.value != 0 ) {
  25.                                                             p=window.open("/mb_card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  26.                                                         }
  27.                                                         else {
  28.                                                             alert( "You have to choose a tour" );
  29.                                                             tourchoosed.focus();
  30.                                                         }
  31.                                                     }
  32.                                                     else if(cmb.value=="Credit Card with Secure Trading") {
  33.                                                         var tourchoosed = document.getElementById( "Tour" );
  34.                                                         if( tourchoosed.value != 0 ) {
  35.                                                             p=window.open("/stp_card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  36.                                                         }
  37.                                                         else {
  38.                                                             alert( "You have to choose a tour" );
  39.                                                             tourchoosed.focus();
  40.                                                         }
  41.                                                     }
  42.                                                 }
  43.                                                 else
  44.                                                 {
  45.                                                     if(cmb.value=="Credit Card Last Minute")
  46.                                                     {
  47.                                                         p=window.open("/card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  48.                                                     }
  49.                                                     else if(cmb.value=="Credit Card with Money Bookers") {
  50.                                                         var tourchoosed = document.getElementById( "Tour" );
  51.                                                         if( tourchoosed.value != 0 ) {
  52.                                                             p=window.open("/mb_card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  53.                                                         }
  54.                                                         else {
  55.                                                             alert( "You have to choose a tour" );
  56.                                                             tourchoosed.focus();
  57.                                                         }
  58.                                                     }
  59.                                                     else if(cmb.value=="Credit Card with Secure Trading") {
  60.                                                         var tourchoosed = document.getElementById( "Tour" );
  61.                                                         if( tourchoosed.value != 0 ) {
  62.                                                             p=window.open("/stp_card.asp", "", "top=0, height=600, width=475, toolbar=no, status=yes, scrollbars=yes, menubar=no, resizable=no");
  63.                                                         }
  64.                                                         else {
  65.                                                             alert( "You have to choose a tour" );
  66.                                                             tourchoosed.focus();
  67.                                                         }
  68.                                                     }
  69.                                                 }
  70.                                              } 
  71.                                                                                                                                                                                 </script>
  72.                                                   </font></strong> </div></td>
  73.                                                   <td width="12"></td>
  74.                                                   <td width="106"><font
  75.                   size="1">
  76.                                                     <select size="1" name="Currency">
  77.                                                       <option value="">&lt;&lt; Select Currency &gt;&gt;</option>
  78.                                                       <option value="USA" >US$</option>
  79.                                                       <option value="EURO">EU&euro;</option>
  80.                                                       <option value="GBP">GBP&pound;</option>
  81.                                                     </select>
  82.                                                   </font></td>
  83.                                                   <td width="245"><font size="1" >
  84.                                                     &nbsp;<input size="14" name="Amount" >
  85.                                                   </font></td>
  86.                                                 </tr>
  87.                                                 <tr>
  88.                                                   <td>&nbsp;</td>
  89.                                                   <td></td>
  90.                                                   <td>&nbsp;</td>
  91.                                                   <td>&nbsp;</td>
  92.                                                 </tr>
  93.                                                 <tr id="ocultadatos1" style="display:none" >
  94.                                                   <td colspan="3"><SPAN lang="ES">Deposit</SPAN></td>
  95.                                                   <td><input name="txt_precioDeposit" type="text" class="formu" id="txt_precioDeposit"  />
  96.                                                     <input type="radio" name="checkprecio" value="1" ></td>
  97.                                                 </tr>
  98.                                                 <tr id="ocultadatos2" style="display:none">
  99.                                                   <td colspan="3"><SPAN lang="ES">Final Balance Due</SPAN></td>
  100.                                                   <td><input name="txt_finalbalance" type="text" id="txt_finalbalance" class="formu"  />
  101.                                                   <input type="radio"  name="checkprecio" value="2" ></td>
  102.                                                 </tr>
  103.                                                 <tr id="ocultadatos3" style="display:none">
  104.                                                   <td colspan="3"><SPAN lang="ES">Full Payment</SPAN></td>
  105.                                                   <td><input name="txt_preciofullpayment" type="text" id="txt_preciofullpayment" class="formu"   />
  106.                                                     <input name="checkprecio" type="radio" value="3" ></td>
  107.                                                 </tr>
  108.                                                 <tr>
  109.                                                   <td>Form
  110.                                                   of payment</td>
  111.                                                   <td></td>
  112.                                                   <td colspan="2"><strong><font size="1">
  113.                                                     <select name=TypePayment size=1 id="TypePayment"  onChange="showURL(this)">
  114.                                                       <option value="" selected>&lt;&lt; Choose
  115.                                                         &gt;&gt;</option>
  116.                                                       <!---<option value="Credit Card Last Minute">Credit  -->
  117.                                                       <!--- Card Last Minute</option> -->
  118.                                                       <!---<option value="Credit Card with Money Bookers">Credit  -->
  119.                                                       <!--- Card with Money Bookers</option> -->
  120.                                                       <option value="Credit Card with Secure Trading">Credit
  121.                                                         Card with Secure Trading</option>
  122.                                                       <option value="Personal cheque">Personal
  123.                                                         cheque</option>
  124.                                                       <option value="Banker's draft/cheque">Banker's
  125.                                                         draft/cheque</option>
  126.                                                       <option value="Direct Bank Transfer">Direct
  127.                                                         Bank Transfer</option>
  128.                                                     </select>
  129.                                                   </font></strong></td>
  130.                                                 </tr>
  131.                                                 <tr>
  132.                                                   <td>&nbsp;</td>
  133.                                                   <td></td>
  134.                                                   <td>&nbsp;</td>
  135.                                                   <td>&nbsp;</td>
  136.                                                 </tr>
  137.                                             </table>
  138.                               </div>