function NewWindow(mypage, myname, w, h, bResize, bScroll, winLeftPos, winTopPos) {
	if (myname == undefined) myname = '';
	if (w == undefined) w = '600';
	if (h == undefined) h = '500';
	if (bResize == undefined) bResize = 'Yes';
	if (bScroll == undefined) bScroll = 'Yes';
	var winl = (winLeftPos == undefined)?(screen.width - w) / 2:winLeftPos;
	var wint = (winTopPos  == undefined)?(screen.height - h) / 2:winTopPos;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable='+bResize+',scrollbars='+bScroll
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function PopUpWin(theURL,theWidth,theHeight,theScroll,theResize) {
    var theProperties = "width=" + theWidth +",height=" + theHeight + ",scrollbars=" + theScroll + ",resizable=" + theResize+",top=10,left=10";
    Popwin = window.open(theURL,"",theProperties)
}

// pop up the login box - now works for all membership types
function MemLogin()
{
    PopUpWin('MemberLoginPopup.aspx?auto=no','170','230','no','no');
}

// popup the login box to check if we are logged in, and auto-fill the fields if we are. all membership types
function MemFillin()
{
    PopUpWin('MemberLoginPopup.aspx?auto=yes','170','230','no','no');
}


function reviewpopup(sku, prodname) {
	window.open('http://www.babyworld.co.uk/information/reviews/reviewpopup.asp?bwsku=' + sku + '&productname=' + prodname,'rvw','width=450,height=550,resizable=no,scrollbars=no');
}

function addBookmark(label){
	if(document.all){
		window.external.addFavorite(location.href, label);
	} else {
		alert("Firefox/Netscape users can use CTRL+D to bookmark this page");
	}
}