function popup(popurl,popwidth,popheight,scrollbar) {
	window.name = 'pbmain';
	var qschar;
	var result;
	var blquest = false;
	var x;
	for (x=0; x<popurl.length; x++) {
		result=popurl.charCodeAt(x);
		if (result==63) {blquest = true};
		if (blquest == true){qschar = '&'}
		else{qschar = '?'};
	}
	window.open(popurl + qschar +'windowWidth=' + popwidth + '&windowHeight=' + popheight,'popup','WIDTH=' + popwidth + ', HEIGHT=' + popheight + ', RESIZABLE=NO, SCROLLBARS=' + scrollbar + ', TOOLBAR=NO, LEFT=100, TOP=100').focus();
	window.popup.width='50';
}

