function pop(n,u,w,h,args2,x) {
	if (args2.indexOf('scrollbars=no') != -1)
		args="width="+w+",height="+h+","+args2;
	else
		args="width="+w+",height="+h+","+args2+",scrollbars=yes";
		
	remote = window.open(u,n,args);
	
	if (remote != null) {
		if (remote.opener == null)
			remote.opener = self;
	}
	remote.focus();
	
	if (x == 1)
		return remote;
}

function popWin( name,url,width,height,params,returnVal ) {
	args="width="+width+",height="+height+","+params; 

	remote=window.open( url,name,args );

	if ( remote != null ) {
		if ( remote.opener == null )
			remote.opener = self;
	}

	remote.focus();

	if (returnVal == 1)
		return remote;
}

function popup(URL, n, w, h, scrollYN, resizeYN) {
	window.open(URL, n,'toolbar=no,scrollbars=' + scrollYN + ',location=no,statusbar=no,menubar=no,resizable=' + resizeYN + ',width=' + w + ',height=' + h);
}

function popupnew(URL, n, w, h) {
	window.open(URL, n,'toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=yes,width=' + w + ',height=' + h);
}

function WinOpen(sURL) {
	popupWindow=window.open(sURL,'popup','toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=460,height=336'); 
	popupWindow.focus();
}

function infowin(page,width,height)
{
	popwin = window.open(page,'popwin','width=' + width + ',height=' + height +',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
}

function openClose(url) {
	window.open(url,"","width=800,height=600,top=25,left=25,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	window.close();
}

function popbc(){
    window.open('http://www.barbiecollectibles.com/showcase/series.asp?series_id=150079', 'bc','toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=yes,width=640,height=480');
}   

function closeWindow() {
	close();
}

function FlashTrack() {
	// Handle legacy flash tracking calls to prevent javascript errors
}