document.write('<script language="JavaScript" type="text/javascript"> ');
document.write('function checkform ( form ) ');
document.write('{ ');
document.write(' ');
document.write('  if (megasms.fromnr.value == "") { ');
document.write('    alert( "Please enter your phone number." ); ');
document.write('    megasms.fromnr.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write('  if (megasms.nr.value == "") { ');
document.write('    alert( "Please enter a phone number." ); ');
document.write('    megasms.nr.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write(' ');
document.write('  if ( megasms.fromnr.value.length != 6) { ');
document.write('    alert( "Your phone number is incorrect" ); ');
document.write('    megasms.fromnr.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write('  if ( megasms.nr.value.length != 6) { ');
document.write('    alert( "The phone number is incorrect" ); ');
document.write('    megasms.nr.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write('  if (megasms.nr.value == megasms.fromnr.value) { ');
document.write('    alert( "Don\'t you trust us? our service works, don\'t send SMS to your own phone number" ); ');
document.write('    megasms.nr.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write(' ');
document.write(' ');
document.write('  if (megasms.text.value == "") { ');
document.write('    alert( "Please enter a message." ); ');
document.write('    megasms.text.focus(); ');
document.write('    return false ; ');
document.write('  } ');
document.write(' ');
document.write(' ');
document.write('  return true ; ');
document.write('} ');
document.write('</script> ');
document.write('<form name=megasms onSubmit="return checkform(megasms);" action="http://www.megasms.be/new/main.php?mode=sendsms" method="post" target="_sms"> ');
document.write('<table> ');
document.write('<tr><td align="center" colspan="2"><font face="Arial" size="1">Uw gsm nummer:<br> ');
document.write('<select name="fromoperator">      <option selected value="0472">0472</option> ');
document.write('                                  <option value="0473">0473</option> ');
document.write('                                  <option value="0474">0474</option> ');
document.write('                                  <option value="0475">0475</option> ');
document.write('                                  <option value="0476">0476</option> ');
document.write('                                  <option value="0477">0477</option> ');
document.write('                                  <option value="0478">0478</option> ');
document.write('                                  <option value="0479">0479</option> ');
document.write('                                  <option value="0484">0484</option> ');
document.write('                                  <option value="0485">0485</option> ');
document.write('                                  <option value="0486">0486</option> ');
document.write('                                  <option value="0487">0487</option> ');
document.write('                                  <option value="0494">0494</option> ');
document.write('                                  <option value="0495">0495</option> ');
document.write('                                  <option value="0496">0496</option> ');
document.write('                                  <option value="0497">0497</option> ');
document.write('                                  <option value="0498">0498</option> ');
document.write('                                  <option value="0499">0499</option> ');
document.write('                                </select> ');
document.write('<input type=text name=fromnr></td></tr> ');
document.write('<tr><td colspan="2" align="center"> ');
document.write('<font face="Arial" size="1">GSM nummer ontvanger:<br> ');
document.write('<select name="operator">          <option selected value="0472">0472</option> ');
document.write('                                  <option value="0473">0473</option> ');
document.write('                                  <option value="0474">0474</option> ');
document.write('                                  <option value="0475">0475</option> ');
document.write('                                  <option value="0476">0476</option> ');
document.write('                                  <option value="0477">0477</option> ');
document.write('                                  <option value="0478">0478</option> ');
document.write('                                  <option value="0479">0479</option> ');
document.write('                                  <option value="0484">0484</option> ');
document.write('                                  <option value="0485">0485</option> ');
document.write('                                  <option value="0486">0486</option> ');
document.write('                                  <option value="0487">0487</option> ');
document.write('                                  <option value="0494">0494</option> ');
document.write('                                  <option value="0495">0495</option> ');
document.write('                                  <option value="0496">0496</option> ');
document.write('                                  <option value="0497">0497</option> ');
document.write('                                  <option value="0498">0498</option> ');
document.write('                                  <option value="0499">0499</option> ');
document.write(' ');
document.write('</select> ');
document.write('<input type=text name=nr></td></tr> ');
document.write('<tr><td colspan="2" align="center"><textarea name="text" maxlength="130" size="12" rows="6" cols="23" ');
document.write('onKeyUp="val = this.value; ');
document.write('if (val.length > 130) { ');
document.write('  this.value = val.substring(0,130); ');
document.write('  text.focus()  } ');
document.write('  this.form.count.value=130-parseInt(this.value.length);" ');
document.write('onKeyDown="val = this.value; ');
document.write('if (val.length > 130) { ');
document.write('  this.value = val.substring(0,145); ');
document.write('  text.focus()  } ');
document.write('  this.form.count.value=130-parseInt(this.value.length);" ');
document.write('  ></textarea></td></tr> ');
document.write('<tr><td colspan="2" align="center"></font><font face="Arial" size="1"> ');
document.write('U hebt nog<input type="text" name="count" value="130" size="3" max="3" onFocus="this.blur" readonly text-align:center;border-style: solid; border-width:0">karakters over</td></tr> ');
document.write('<tr><td colspan="2" align="center"> ');
document.write('<input type="submit" name="submit" value="verzenden"> ');
document.write('</td></tr> ');
document.write('<tr><td colspan="2" align="center"><a href="http://www.megasms.be/" target="_megasms"><font face="arial" size="1">Powered by megasms.be</font></a>');
document.write('</form> ');
document.write('</table> ');

