<!--
function selfcarepop(whatfile,winxper,winyper,attribs,action){    
	// define vars
    var scrx=screen.availWidth,scry=screen.availHeight,winx,winy,winxloc,winyloc,winaction=action;
    
    // find percentage size of window in pixels
    winx=Math.floor(scrx*(winxper/100));
	winy=Math.floor(scry*(winyper/100));
    
    // find window top/left location based on window size and screen size
    winxloc=Math.floor((scrx/2)-(winx/2));
	winyloc=Math.floor((scry/2)-(winy/2));

	if (winaction == 'info'){
	// give information about popup
    alert('file = ' + whatfile + ';\n\nscreen width = ' + scrx + ';\nscreen height = ' + scry + ';\n\nx percentage = ' + winxper + '%;\ny percentage = ' + winyper + '%;\n\nwindow width = ' + winx + ';\nwindow height = ' + winy + ';\n\nwindow x location = ' + winxloc + ';\nwindow y location = ' + winyloc + ';');
	}

	// set up open attributes syntax based on browser
    if(browser.isIE){winxloc=',left='+winxloc;winyloc=',top='+winyloc}
    if(browser.isNS){winxloc=',pageXOffset='+winxloc;winyloc=',pageYOffset='+winyloc}
    
	if (winaction == 'open'){
	// open the window
	var openedwin = window.open(whatfile,'selfcarewindow',attribs + ',width=' + winx + ',height=' + winy + winxloc + winyloc);
	}
}
//-->
