var openGraff = null; 
var chasm = screen.availWidth;
var mount = screen.availHeight;

function doGraff(href,label,w,h) { 

    x = w + 15;
    y = h + 15;

    openGraff = window.open('','graff','dependent,titlebar=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,width=' + x + ',height=' + y + ',left=' + ((chasm - x) * .5) + ',top=' + ((mount - y) * .5));
    var ePen = '<html><head><title>GraffNet: ' + label + '"<\/title><\/head><body bgcolor="#ffffff" onLoad="window.focus();" onblur="window.close();" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"><table border="0" width="99\%" height="99\%" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><a href="javascript:void(0)" onclick="top.close();"><img src="' + href + '" width="' + w + '" height ="' + h + '" border="0" hspace="0" vspace="0"><\/a><\/td><\/tr><\/table><\/body><\/html>';
    var wd = openGraff.document;
    wd.open();
    wd.write(ePen);
    wd.close();
}
