

<!--

function openWindow(url,windowname,width,height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winStats='toolbar=no,location=no,directories=no,menubar=no,'
	winStats+='scrollbars=no,width='+width+',height='+height+',resizable=no,'
	winStats+='top='+wint+',left='+winl
	floater=window.open(url,windowname,winStats);    
	floater.focus();
}

function openScrollingWindow(url,windowname,width,height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	winStats='toolbar=no,location=no,directories=no,menubar=no,'
	winStats+='scrollbars=yes,width='+width+',height='+height+',resizable=no,'
	winStats+='top='+wint+',left='+winl
	floater=window.open(url,windowname,winStats);    
	floater.focus();
}


function openFeatureWindow(url, windowname, width,height,features)
{
     var def_features = [];
    def_features['height'] = (height==undefined || height.length==0 || height==null)? 300 : height; 
    def_features['width'] = (width == undefined || width.length==0 || width==null) ? 500 : width;
    def_features['resizable'] = 0; def_features['menubar']=0;def_features['location']=0; def_features['status']=0;
    def_features['titlebar']=0; def_features['toolbar'] = 0;def_features['scrollbars'] = 1;
    
    var feat = "";
    if(features !== undefined)
    {
        feat = features;
    }
    
    for(i in def_features)
    {
        if(features !== undefined && features.length > 0)
        {
            if(features.indexOf(i) == -1) //if array index not found in the string
            {
                feat +=  ("," + i + "=" + def_features[i]);
            }
        }
        else
        {
            if(feat == "") {feat = (i + "=" + def_features[i]);}
            else
            {
                feat +=  ("," + i + "=" + def_features[i]);
            }
        }
    }
    
    w_left = (screen.width - width) / 2;
    w_top = (screen.height - height) / 2;

    feat += "," + "top="+w_top+",left="+w_left;
   
    var win = window.open(url,windowname,feat);
    win.focus();
    return win;
}

//-->