/*******************************************************************************
*   Project:        [project_name]
*   Description:    JavaScript functions
*   Author:         Victor Hazevych <vichazevych@intellias.biz>
*   Created:        [date]
*   $Revision: 1 $
*   History:
*       [date]      Victor Hazevych    Created
*       18.06.2006  Roman Matiiv       Modified
*   Input parameters:
*		[var] :  [var_description]
*
*******************************************************************************/

function isEmailAddress(email) {
    var result = false;
    var theStr = new String(email);
    var index = theStr.indexOf("@"); 
    
    if (index > 0) {
        var pindex = theStr.indexOf(".",index);
        if ((pindex > index+1) && (theStr.length > pindex+1)) {
            result = true;
        }
    } 
			  
    return result;
}

function openWindow(page, win_width, win_height){
	MyWindow=window.open(page, '_blank', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+win_width+',height='+win_height+''); 
}

var prior_tr_class = null;

function hiLite(rw) {
    prior_tr_class = rw.className;
    rw.className = 'ruled';
};

function loLite(rw) {
    rw.className = prior_tr_class;
};