// ** Status Bar Display **

var kata = '© 2000-2006 NEPAD';
function dispkata(){
	window.status = kata;
	timerID = setTimeout("dispkata()", 3000);
}
dispkata();

// ** Centered Pop-Up Window (v1.0)
// ** (C) 2002-2003 www.smileycat.com
// ** Free for all users, but leave in this header  

var win = null;
function newWindow(mypage,myname,w,h,features){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	if(winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}

// ** Flip Flop Mouse Hover Link **




function emptyFormElements(theForm, theFieldName, theErrorMsg){
    var isEmpty  = 1;
    var theField = theForm.elements[theFieldName];
    // Whether the replace function (js1.2) is supported or not
    var isRegExp = (typeof(theField.value.replace) != 'undefined');

    if (!isRegExp) {
        isEmpty      = (theField.value == '') ? 1 : 0;
    } else {
        var space_re = new RegExp('\\s+');
        isEmpty      = (theField.value.replace(space_re, '') == '') ? 1 : 0;
    }
    if (isEmpty) {
        theForm.reset();
        theField.select();
        alert(theErrorMsg);
        theField.focus();
        return false;
    }
    return true;
} // end of the 'emptyFormElements()' function
