
function popup(s_file) {
	window.open(s_file, "_blank", "width=530, height=412, scrollbars=yes");
}

function walkaround(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;
}

// overloaded functions always pop up in new window

function marketWindow(ref, newwin) {
	if(newwin == 1) {
		if (ref != '-1' && ref != ''){
			window.open(ref, '_newwin');
		}
	} else {
		if (ref != '-1' && ref != ''){
			window.location.href = ref;
		}		
	}
}

function generic(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);
 return false;
}