// JavaScript Document

var _POPUP_FEATURES = 'location=0, statusbar=0, scrollbars=1, resizable=1, menubar=0, width=530, height=530';
var _swd	= 550;
var _shd	= 400;
var _sw		= _swd;
var _sh		= _shd;

function raw_popup(url, target) 
{
    //if (features == undefined) 
	var features = 'location=0, statusbar=0, scrollbars=1, resizable=1, menubar=0, width=' + _sw + ', height=' + _sh; 

    if (target == undefined) 
		target   = '_blank';
	
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function link_popup(src, sw, sh) 
{
	_sw = (sw == undefined) ? _swd : sw;
	_sh = (sh == undefined) ? _shd : sh;
	
    return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank');
}

function underline (el)
{
	var bg = el.style.backgroundColor;
	if (bg == "" || bg == "#faf7ee")
		el.style.backgroundColor = "#744e58";
	else
		el.style.backgroundColor = "#faf7ee";
	
	
	//alert ("end: " + el.style.backgroundColor);
}