"+
""+
""+
""+
""+
""+
""+
""+
"
"+
""+
""+
""+
""+
""+
""+
" |
"+
""+
" |
"+
"
"
);
document.getElementById('mDiv').innerHTML = res;
}
// var styleAnchor="text-decoration:none;color:black;"
// var styleLightBorder="border:1px solid #a0a0a0;"
function initEmail() {
if (!ns4)
{
emailObj=(dom)?document.getElementById("email").style : ie? document.all.email : document.email
hideEmail()
sHTML1="Nová zpráva"
document.getElementById("email_caption").innerHTML = sHTML1
bPageLoaded=true
}
}
function hideEmail() {
emailObj.visibility="hidden"
showEmailElement( 'SELECT' );
showEmailElement( 'APPLET' );
}
function closeEmail() {
var sTmp
hideEmail();
// document.form.submit(); submit after close
}
// Removes leading whitespaces
function LTrim( value ) {
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
// Removes ending whitespaces
function RTrim( value ) {
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}
// Removes leading and ending whitespaces
function trim( value ) {
return LTrim(RTrim(value));
}
function validate() {
var regExp = new RegExp('^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$');
var emailSender = document.getElementById('emailSender');
var emailContent = document.getElementById('emailContent');
var errors = '';
if (emailSender == null || trim(emailSender.value) == '') {
if (errors.length > 0) {
errors += '\n';
}
errors += 'Chybí odesílatel emailu.';
}
else if (!trim(emailSender.value).match(regExp)) {
if (errors.length > 0) {
errors += '\n';
}
errors += 'Chybný formát emailu odesílatele.';
}
if (emailContent == null || trim(emailContent.value) == '') {
if (errors.length > 0) {
errors += '\n';
}
errors += 'Chybí obsah emailu.';
}
if (errors != '') {
alert(errors);
return false;
}
return true;
}
function constructEmail (path) {
sHTML =
""+
""+
""+
""+
""+
""+
""+
""+
""+
""+
""+
""+
// ""+
""+
""+
""+
""+
"