var PU_USED = new String(',');

function pu_open(object,url,width,height,persistent) {
	pu_openSpecial(object,url,width,height,persistent,"");
}

function pu_openSpecial(object,url,width,height,persistent,features) {
	if (features!='') {
		features=','+features;
	}
	pu_close(object);
	if(navigator.appVersion.indexOf("MSIE 4")!=-1) {
		setTimeout('pu_ie4("'+object+'","+"'+url+'",'+width+','+height+','+persistent+',"'+features+'");',250); //Give IE4 a chance to catch up
	} else {
		eval('pop_'+object+' = window.open(url,"pop_'+object+'","height="+height+",width="+width+features)');
	}
	if (PU_USED.indexOf(','+object+',')==-1 && (persistent=='' || typeof(persistent)=='undefined')) {
		PU_USED = ',' + object + PU_USED;
	}
	return true;
}

function pu_ie4(object,url,width,height,persistent,features) { //Just for IE4
	eval('pop_'+object+' = window.open(url,"pop_'+object+'","height="+height+",width="+width+features)');
	setTimeout('pop_'+object+'.focus();',250);
	return true;
}

function pu_close(object) {
	if (eval('typeof(pop_'+object+')')!="undefined" && !eval('pop_'+object).closed) {
		eval('pop_'+object).close();
		var i = PU_USED.indexOf(','+object+',');
		if (i!=-1) {
			PU_USED = PU_USED.substring(0,i)+PU_USED.substring(i+object.length+1);
		}
	}
	return true;
}

function pu_closeAll() {
	var list = PU_USED.split(',');
	for (var i=1;i<list.length-1;i++) {
		pu_close(list[i]);
	}
}

function pu_jump(group) {
	if (typeof(group)!='undefined' && group.selectedIndex!=0) {
		window.location=group.options[group.selectedIndex].value;
	}
	return true;
}