function CheckSubscribe() {


if (document.siteSearch.select1.value == 'Farmersweekly')
{
	window.open("http://www.qssweb.co.uk/rbpsubs/default.aspx?title=fwe&entry=new&subtype=a&prom=2229");
	return false;
}
if (document.siteSearch.select1.value == 'Crops')
{
	window.open("http://www.qssa.co.uk/reed/subcentre/default.asp?title=CRW");
	return false;
}
if (document.siteSearch.select1.value == 'Poultry')
{
	window.open("http://www.qssa.co.uk/reed/subcentre/default.asp?title=PWO");
	return false;
}
}
//TRACKER ID 7313
function liLocationID_onChange(select, maxItems){
 var count = 0;
 var tooMany = false;
 for (var sel=0; sel<select.options.length; sel++) {
	// if already maxItems locations select, unselect the next ones
	if (tooMany)
		select.options[sel].selected = false;
	else { //still less than maxItems locations selected, go ahead
		if (select.options[sel].selected)
			count += countIDs(select.options[sel].value); // add to the counter for the total number of locations selected
		if (count > maxItems) {
			tooMany = true; // if more than maxItems locations selected update the variable
			select.options[sel].selected = false; // unselect the option
		}
	}		
 }
 if (tooMany) { // send a message to the user
   alert('Too many locations selected');
   return false;
 }
 else return true;
}


//Tracker ID 7313
function countIDs(option){
 var IDs = option.split(',');
 return IDs.length;
}
