
function checkall( myvar)
{
	var c = document.buyerinfo.elements.length;
	
	for(var i=0; i < c; i++){
		
		if (document.buyerinfo.elements[i].name == myvar) {
			document.buyerinfo.elements[i].checked = true;
		}
	}

}
function clearall( myvar)
{
	var c = document.buyerinfo.elements.length;
	
	for(var i=0; i < c; i++){
		
		if (document.buyerinfo.elements[i].name == myvar) {
			document.buyerinfo.elements[i].checked = false;
		}
	}

}
function openChat (url, height, width, winn, scrollz) {
	var winl = (screen.width-width)/2;
	var wint = (screen.height-height)/2;
	var settings = 'height='+height+',width='+width+',top='+wint+',left='+winl+',scrollbars='+scrollz+',resizable=no,menubar=no';
	toopen=window.open(url,winn,settings);
	try { toopen.window.focus(); }
	catch(e) { }
}
function startchat (url) {
	
	openChat(url, 354, 450, '_CHAT', 'no');
}

function rangeChange(val)
{
	if(val != ""){
 		window.location.href = ""+val+"";
	}
}