function getGreyboxPopUpLink($url, $text, $target = '_blank', $title = '', $attributes = '', $height = 500, $width = 600, $no_js_url = '') { vmCommonHTML::loadGreybox(); if ($no_js_url == '') { $no_js_url = $url; } $link = vmCommonHTML::hyperLink($no_js_url, $text, $target, $title, $attributes . ' onclick="try{ if( !parent.GB ) return GB_showCenter(\'' . $title . '\', \'' . $url . '\', ' . $height . ', ' . $width . ');} catch(e) { }"'); return $link; }