function __doPostSelect(sname,val)
{
	var objcheck=document.getElementsByName(sname);
	for(var i=0;i<objcheck.length;i++)
	{
		objcheck[i].checked = val;
	}
}
function __doPostDel(){
	var objcheck=document.getElementsByName("baskcheck");
	var val = "";
	for(var i=0;i<objcheck.length;i++){
		if(objcheck[i].checked==true){
			val += objcheck[i].value + ";";
		}
	}
	if(val!=""){addbasket(val);}
}
/*ajax ---------------------------------------------*/
function addbasket(id){
	var url = "/actionbasket.asp";
	var pars = "id=" + id + "&action=dels";
	var editAjax = new Ajax.Request(url,{method: 'get', parameters: pars, onComplete:getbasket});
}
function getbasket(resaultObj){
	var xmls=resaultObj.responseXML;
	var suc=xmls.getElementsByTagName("result")[0].getAttribute("value");
	if(suc=="true"){window.location="/basket";}else{}
}
/*end ajax*/


function setinquiry(obj){
	var ReturnValue = "";
	var items=document.getElementsByName(obj)
	for(var i=0;i<items.length;i++){
		if(items[i].checked==true){
			ReturnValue += items[i].title+";";
		}
	}
	if(ReturnValue!=""){
		window.location="/send-inquiry/"+ReturnValue;
	}
	else
		window.location="/send-inquiry";

}
