<!--

function Clean(id){
	document.getElementById(id).value="";
}

function Full(id){
	if (document.getElementById(id).value == "")
	{	
		document.getElementById(id).value="название книги";
	}
}
function Checkit(id){
	if (document.getElementById(id).value == "название книги")
	{	
		alert('Введите поисковый запрос');
		return false;
	} 
	else 
	{
		return true;
	}
 
}

function onewayfly(iddiv){
	var status;
	status = document.getElementById(iddiv).style.display;
	if ( status == "none")
	{
		document.getElementById(iddiv).style.display="block";
	}
	else 
	{
		document.getElementById(iddiv).style.display="none";
	}
}


function seriasLoad(sourceList, destList) {
//	alert(sourceList.value);
//	return;
	var destList = $(destList);
//	alert(ns);
	ns.request({
		prgsMsg : "Загрузка...",
		method : 'get',
		data: {
			'script_id': 315,
			'__pitem_id': sourceList.value
		},
		onComplete : function(text) {
			if (text) {
//				alert(text);
				setListOptions(destList, text, false);
			}
		}
	});
}
	// ((document.getElementById(id).value == "") && -->
