// stdlib.js - (c)2004 Ulrich Seiler

var isDOM=(document.getElementById)?true:false;
var isNS4=(document.layers && !isDOM)?true:false;
var isIE4=(document.all && !isDOM)?true:false;

function isNull(obj) {
 return (obj==null || obj=="" || obj=="null" || obj=="undefined");
}
function isMail(str) {
 var i=str.indexOf("@"), j=str.lastIndexOf("."), k=str.length;
 return (i>1 && j>i+3 && k>j+2);
}
function isURL(str) {
 var i=str.indexOf("."), j=str.lastIndexOf("."), k=str.length;
 return (i>1 && j>i+3 && k>j+2);
}
function isCookieSet(str) {
 return (document.cookie.indexOf(str+"=")!=-1);
}
function getStyle(id) {
if (document.getElementById) return document.getElementById(id).style;
else if (document.layers) return document.layers[id];
else if (document.all) return document.all[id].style;
}
function mouseOver(id) {
var obj=getStyle(id);
if (isNS4) obj.bgColor="#FFCD85";
else obj.backgroundColor="#FFCD85";
setTimeout("mouseOut('"+id+"')",2000);
}
function mouseOut(id) {
var obj=getStyle(id);
if (isNS4) obj.bgColor="#FFFFFF";
else obj.backgroundColor="#FFFFFF";
}