function popup(passhref) {
 if (! window.focus)return true;
 var href;
 var windowname;
 if (typeof(passhref) == 'string')
  href=passhref;
 else
  href=passhref.href;
 windowname = 'vcepopup';
 window.open(href, windowname, "width=530, height=412, scrollbars=yes");
 return false;
}


function newspopup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcenews';
window.open(href, windowname, 'width=500, height=500, scrollbars=yes, toolbar=no');
return false;
}

function articlepopup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcearticle';
window.open(href, windowname, 'width=700, height=500, scrollbars=yes, toolbar=no');
return false;
}


function careerpostingspopup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcecareerpostings';
window.open(href, windowname, 'width=640, height=530, scrollbars=yes, toolbar=no');
return false;
}
function careermailpopup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcecareermail';
window.open(href, windowname, 'width=640, height=530, scrollbars=yes, toolbar=no');
return false;
}

function wall1popup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcewall1';
window.open(href, windowname, 'width=805, height=600, scrollbars=no, toolbar=no');

return false;
}

function wall2popup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
windowname = 'vcewall2';
window.open(href, windowname, 'width=1029, height=778, scrollbars=no, toolbar=no');
return false;
}
 
function genpopup(passhref) {
 if (! window.focus)return true;
 var href;
 if (typeof(passhref) == 'string')
   href=passhref;
 else
   href=passhref.href;
 TestPath = new String(href);
 if (TestPath.search('/popups/articles/') >= 0) return articlepopup(href);
 if (TestPath.search('/popups/pressreleases/') >= 0) return newspopup(href); 
 if (TestPath.search('/popups/') >= 0) return popup(href);
 return true;
}

function walkaroundpopup(passhref) {
if (! window.focus)return true;
var href;
var windowname;
if (typeof(passhref) == 'string')
   href=passhref;
else
   href=passhref.href;
ie = (document.all)? true:false;
ns4 = (document.layers)? true:false;
ns6 = (document.getElementById)? true:false;
width = 789;
height = 570;
windowname = 'popup';
windowxpos = (screen.width/2)-(width/2);
windowypos = (screen.height/2)-(height/2);
if (ie) options = 'scrollbars=no,width='+width+',height='+height+',left='+windowxpos+',top='+windowypos;
else if ((ns4) || (ns6)) options = 'scrollbars=no,width='+width+',height='+height+',screenx='+windowxpos+',screeny='+windowypos;
window.open(href, windowname, options);
return false;
}