function gotoUrlOpener(url) {
  if (window.opener && window.opener.top && !window.opener.closed) {
    window.opener.top.location.href = url;
    window.opener.top.focus();
  } else {
    gotoUrlNew(url);
  } // end if
}
function gotoUrlOpenerClose(url) {
  gotoUrlOpener(url);
  closeWindow();
}
function gotoUrlNew(url) {
  window.open(url);
}
function gotoUrlNewCloseFF(url) {//for firefox to open a new external window
  window.open(url,"_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes"); 
  closeWindow();
}
function gotoUrlNewClose(url) {
  gotoUrlNew(url);
  closeWindow();
}
function gotoHomeOpener() {
  gotoUrlOpenerClose("/");
}
function gotoHomeOpenerClose() {
  gotoHomeOpener();
  closeWindow();
}
function gotoHomeNew() {
  gotoUrlNewClose("/");
}
function gotoHomeNewClose() {
  gotoHomeNew();
  closeWindow();
}
function closeWindow() {
  window.close();
}

function showHelp() {
//	var helpWin = window.open("/buyer/help.html","Help","resizable=1,menubars=1,width=475,height=400");
	popupWindow("/buyer/help.html","Help","resizable=1,menubars=1,width=475,height=400");
}

function showHelp2(page) {
	popupWindow("/buyer/help.jsp?page="+page,"Help","resizable=1,menubars=1,width=475,height=400");
}

function showHelp3(filename) {
		var helpWin = window.open(filename,'Help','width=400,height=300,resizable=yes,scrollbars=yes,top=50,left=100');
}

function popupWindow(url,name,features) {
	// kludged for IE
	var x = name;
	if (document[name]!=null && !document[name].closed) {
		//document[name].focus();
		document[name].close();
		name += "x";
	}
	document[x] = window.open(url,name,features);
}

function Certify(URL) {
  popupWin = window.open(URL, 'Participant', 'location,scrollbars,width=450,height=300')
  window.top.name = 'opener';
}

function signioWin(name,url) {
	var signioWindow = window.open(url,name,'width=500,height=350,resizable=yes,scrollbars=yes,top=50,left=50');
}

function showRatingsPopup(url) {
	window.open(url,"","width=260,height=180,");
}

