function article_collection(what_to_do) {
	
	//var nodetype = session.GetValue("nodetype")
	var selected = check1();
	
	if(selected!='') {
		if (what_to_do=='abstract') 
			GoTo('thisPage?event=middle.art_details(uid_abstract='+selected+')'); 
		else if (what_to_do=='cart') 	
			GoTo('thisPage?event=middle.order_article(uid_abstract='+selected+')');
		else {
			var open_win_param = APP_URL+'include_php/put_in_my_library.php?lang='+lang+'&uid='+ses_userid+'&clas_css='+clas_css+'&uniqueid='+uniqueid+'&uid_abstract='+selected+'&nodetype=2';
			window.open(open_win_param,"putInMyLibrary","alwaysRaised=yes,resizable=no,scrollbars=no,status=no,menubar=no,width=466,height=560")	
		}
	
	} else {
		alert(noarticlesselected)
	}
}

function check1() {
	
	
	var form = document.viewAbstract;
	var selection = form.selection;
	
	var selected = "";
	if (selection.length > 1) {
		for(var i=0; i<selection.length; i++) {
			if (selection[i].checked) {
				selected += ','+selection[i].value;
			}
		}
		selected = selected.substr(1);
	}else {
		if (form.selection.checked) 
			selected = +form.selection.value;
	}
	
	
	return selected;
}


