<HTML>
<SCRIPT LANGUAGE=\"JAVASCRIPT\">
<!-- Hide JavaScript from old browsers
// max length of messages
MAXLENGTH = 160
// Insert document into its proper frame
if (top.location == self.location){
top.location.href = \"
http://www.besked.dk/\"}
// Insert document into its proper frame
// if (parent.location.href != \"
http://www.besked.dk/\"){
// alert(\'Framed:\' + parent.location.href)
// top.location.href = \"
http://www.besked.dk/\"//}
// returns true and submits if the form is valid, returns false otherwise.
function validate() {
theForm=document.forms[0]
// Validate telephone number
tel = theForm.to.value
for( i=0; i<tel.length; i++ ) {
ch = tel.charAt(i)
// valid characters are digits ...
if( (ch < \'0\') || (ch > \'9\') ) {
alert( \'Telefonnummeret må kun bestå af cifre.\' )
return false
}
}
if( tel.length != 8 ) {
alert( \'Telefonnummeret skal indeholde netop otte cifre.\' )
return false
}
// is it a mobile phone?
prefix = tel.substring(0,2)
if( ((prefix >= 30) || (prefix < 20)) && (prefix != 40) && (prefix != 41) && (prefix != 72) ) {
alert( \'Der kan kun sendes SMS-beskeder til mobiltelefoner. \' +
\'Telefonnummeret skal derfor begynde med 2, 40, 41 eller 72\' )
return false
}
// Validate length of message
len = messageLength( theForm )
if( len > MAXLENGTH ) {
alert( \'Beskeden er for lang. Den er \' + len +
\' tegn lang. Den maksimalt tilladte længde er \' + MAXLENGTH +
\' tegn.\' )
return false
}
if( theForm.message.value.length == 0 ) {
alert( \'Beskedfeltet skal udfyldes.\' )
return false
}
theForm.submit()
return true
}
function validateAndSubmit() {
doSubmit = validate()
if( doSubmit ) {
document.forms[0].submit()
return true
}
return false
}
// Calculate the message length
function messageLength( theForm ) {
ml = theForm.message.value.length
sl = theForm.sender.value.length
if( sl > 0 ) {
ml += sl + 5
}
return ml
}
function updateCharsLeft( theForm ) {
charsLeft = MAXLENGTH - messageLength( theForm )
theForm.charsLeft.value = charsLeft
}
// End of comment that hides JavaScript from old browsers -->
</SCRIPT>
<BODY BGCOLOR=\"#FFFFFF\">
<FORM ACTION=\"
http://www.besked.dk/cgi-bin/getWWW.cgi\" METHOD=\"POST\" onSubmit=\"return validate()\">
<P>
<TABLE ALIGN=\"LEFT\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">
<TR>
<TD ROWSPAN=\"3\"><IMG SRC=\"images/blank.gif\" WIDTH=\"30\" HEIGHT=\"10\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
<TD><IMG SRC=\"images/blank.gif\" WIDTH=\"2\" HEIGHT=\"10\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
<TR>
<TD><A HREF=\"
http://www.wanadoo.dk/\" target=\"_top\"><IMG SRC=\"images/banner01.gif\"
WIDTH=\"468\" HEIGHT=\"60\" ALIGN=\"BOTTOM\" BORDER=\"0\"></A></TD>
</TR>
<TR>
<TD>
<CENTER>
<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">
<TR>
<TD COLSPAN=\"3\"><IMG SRC=\"images/table_top.gif\" WIDTH=\"400\" HEIGHT=\"30\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
<TR>
<TD ROWSPAN=\"3\" BGCOLOR=\"#FFCC00\"><IMG SRC=\"images/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
<TD>
<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\">
<TR>
<TD></TD>
<TD WIDTH=\"350\"><FONT SIZE=\"2\" FACE=\"Arial\">Velkommen til
www.besked.dk. Fra denne side kan du sende
SMS-beskeder til alle danske GSM-mobiltelefoner.</FONT></TD>
</TR>
<TR>
<TD><IMG SRC=\"images/blank.gif\" WIDTH=\"10\" HEIGHT=\"5\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
<TD WIDTH=\"350\"><IMG SRC=\"images/blank.gif\" WIDTH=\"10\" HEIGHT=\"5\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
</TABLE>
</TD>
<TD ROWSPAN=\"3\" BGCOLOR=\"#FFCC00\"><IMG SRC=\"images/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
<TR>
<TD BGCOLOR=\"#FFCC00\"><IMG SRC=\"images/blank.gif\" WIDTH=\"2\" HEIGHT=\"2\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
<TR>
<TD BGCOLOR=\"#FAF7EA\">
<CENTER>
<P>
<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"5\">
<TR>
<TD VALIGN=\"TOP\" COLSPAN=\"3\"><IMG SRC=\"images/blank.gif\" WIDTH=\"5\" HEIGHT=\"5\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\">
<P ALIGN=\"RIGHT\"><FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B>modtager :</B></FONT>
</TD>
<TD COLSPAN=\"2\"><INPUT TYPE=\"TEXT\" NAME=\"to\" SIZE=\"8\" MAXLENGTH=\"8\"><FONT SIZE=\"2\" COLOR=\"#000000\"
FACE=\"Arial\"><B> (8-cifret tlf. nr.)</B></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\">
<P ALIGN=\"RIGHT\"><FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B>afsender :</B></FONT>
</TD>
<TD VALIGN=\"TOP\" COLSPAN=\"2\"><INPUT TYPE=\"TEXT\" NAME=\"sender\" SIZE=\"14\" onKeyUp=\"updateCharsLeft(this.form)\" onChange=\"updateCharsLeft(this.form)\"
onkeypress=\"updateCharsLeft(this.form)\"> <FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B> (dit
navn)</B></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\">
<P ALIGN=\"RIGHT\"><FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B>besked :</B></FONT>
</TD>
<TD VALIGN=\"TOP\"><TEXTAREA NAME=\"message\" WRAP=\"VIRTUAL\" ROWS=\"7\" COLS=\"23\" MAXLENGTH=\"160\" onKeyUp=\"updateCharsLeft(this.form)\"
onChange=\"updateCharsLeft(this.form)\" onkeypress=\"updateCharsLeft(this.form)\"></TEXTAREA></TD>
<TD VALIGN=\"TOP\"><FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B>max. 160 tegn<BR>
<BR>
du har </B></FONT><INPUT TYPE=\"TEXT\" NAME=\"charsLeft\" SIZE=\"3\" onFocus=\"blur()\"><FONT
SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B><BR>
tegn tilbage</B></FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\">
<P ALIGN=\"RIGHT\"><FONT SIZE=\"2\" COLOR=\"#000000\" FACE=\"Arial\"><B>send som :</B></FONT>
</TD>
<TD VALIGN=\"TOP\">
<TABLE BORDER=\"0\" CELLPADDING=\"0\">
<TR>
<TD VALIGN=\"TOP\"><INPUT TYPE=\"RADIO\" NAME=\"online\" VALUE=\"off\" CHECKED></TD>
<TD VALIGN=\"MIDDLE\"><FONT SIZE=\"2\" FACE=\"Arial\">Normal SMS</FONT></TD>
</TR>
<TR>
<TD VALIGN=\"TOP\"><INPUT TYPE=\"RADIO\" NAME=\"online\" VALUE=\"on\"></TD>
<TD VALIGN=\"MIDDLE\"><FONT SIZE=\"2\" FACE=\"Arial\">Direkte besked (*)</FONT></TD>
</TR>
</TABLE>
</TD>
<TD VALIGN=\"TOP\"> </TD>
</TR>
</TABLE>
<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"396\">
<TR>
<TD><IMG SRC=\"images/blank.gif\" WIDTH=\"1\" HEIGHT=\"1\" ALIGN=\"BOTTOM\" BORDER=\"0\"></TD>
</TR>
</TABLE>
</CENTER>
</TD>
</TR>
<TR>
<TD COLSPAN=\"3\" BGCOLOR=\"#FAF7EA\"><INPUT TYPE=\"IMAGE\" NAME=\"Send\" value=\"Send\" SRC=\"images/table_bottom.gif\" WIDTH=\"400\" HEIGHT=\"30\" ALIGN=\"BOTTOM\" BORDER=\"0\" onClick=\"return validateAndSubmit()\"></TD>
</TR>
</TABLE>
<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"10\" WIDTH=\"400\">
<TR>
<TD><FONT SIZE=\"2\" COLOR=\"#444444\"></FONT><FONT SIZE=\"2\" COLOR=\"#444444\" FACE=\"Arial\"><BR>(*)
En direkte besked vises i displayet med det samme, men gemmes ikke på modtagerens
telefon. Den kan derfor nemt blive slettet, hvis modtageren får en anden besked
eller et opkald.</FONT></TD>
</TR>
</TABLE>
</CENTER>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>