if (!document.layers&&!document.all)
event="test"

function showtip(current,e,text){
if (document.all){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
} else
current.title=text
} else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}

function e(s) {
rex=true;
if (window.RegExp) {
st="a";ex=new RegExp(st);
if (st.match(ex)) {
r1=new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
r2=new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
b=(!r1.test(s)&&r2.test(s));
} else {
rex=false;
}
} else {
rex=false;
}
if(!rex) b=(s.indexOf("@")>0&&s.indexOf(".")>0&&s!=""&&s!="введіть e-mail");
return (b);
}
function f(h) {
h.focus();h.select();
}
function val(fld) {
s=fld.value;
if(e(s)) {
if(confirm("Ваша E-mail адреса:  "+s+"  це вірно?"))
return true;
else {
f(fld);return false;
}
} else {
alert("Будь ласка, введіть існуючу E-mail адресу, наприклад: id@domain.*** або id@domain.**.***");
f(fld);return false;
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}