
function popup(url, width, height, winId, scroll) {
  if (winId == null) {
  	time = new Date();
    winId = time.getTime().toString();
  }
  if (!winId.substr(0, 3) == 'rn_')
    winId = 'rn_' + winId;
	var wtop = (screen.height - height) / 2 - 30;
	var wleft = (screen.width - width) / 2;
	var ref = window.open(url,winId,'width='+width+',height='+height+',top='+wtop+',left='+wleft+
              ',resizable=yes,scrollbars=' + (scroll ? 'yes' : 'no') + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,copyhistory=no');
  ref.focus();
}


function popSubmitReview(id)
{
    popup('SubmitReview.aspx?ID=' + id, 450, 320);
}

function popReadReviews(id)
{
    popup('ProductReviews.aspx?ID=' + id, 450, 330, null, 1);
}

function popPrivacyPolicy()
{
    popup('../CustomerService/PrivacyPolicyReviews.html', 450, 330, null, 1);
}

function popImage(name)
{
    popup(name, 500, 500);
}