function popup_windowNorm(sUrl)
{
	popup_windowSize(sUrl,600,440);
}

function popup_windowSize(sUrl,width,height,features)
{	
	if ( features!=null)
		window.open(sUrl,'','height='+height+',width='+width+','+features);
	else
		window.open(sUrl,'','height='+height+',width='+width+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,titlebar=yes,scrollbars=yes');	
}

function s_show(){return false;}
function s_hide(){return false;}
if (window.event+''=='undefined') {event=0;}


function addOnload(f)
{
    //setup onload function
    if(typeof window.addEventListener != 'undefined')
    {
        //.. gecko, safari, konqueror and standard
        window.addEventListener('load', f, false);
    }
    else if(typeof document.addEventListener != 'undefined')
    {
        //.. opera 7
        document.addEventListener('load', f, false);
    }
    else if(typeof window.attachEvent != 'undefined')
    {
        //.. win/ie
        window.attachEvent('onload', f);
    }

    //** remove this condition to degrade older browsers
    else
    {
        //.. mac/ie5 and anything else that gets this far

        //if there's an existing onload function
        if(typeof window.onload == 'function')
        {
            //store it
            var existing = onload;

            //add new onload handler
            window.onload = function()
            {
                //call existing onload function
                existing();

                //call initial onload function
                f();
            };
        }
        else
        {
            //setup onload function
            window.onload = f;
        }

    }
}

