function changePage(object,urlindex){
	option = object.options;
	nr = option[object.selectedIndex].text;
	location.href = "kunstnere.php?index="+urlindex+"&vis="+nr;
}

function changePaintingPage(object,urlindex,query){
	option = object.options;
	nr = option[object.selectedIndex].text;
	pos = query.indexOf("vis=");
	pos1 = query.indexOf("index=");
	if(pos==-1)
		query += "&index="+urlindex+"&vis="+nr;
	else{
		posNext = query.indexOf("&",pos);
		if(posNext != -1)
			query = query.substring(0,pos)+"vis="+nr+query.substring(posNext,query.length);
		else
			query = query.substring(0,pos)+"vis="+nr;
		posNext = query.indexOf("&",pos1);
		if(posNext != -1)
			query = query.substring(0,pos1)+"index="+urlindex+query.substring(posNext,query.length);
		else
			query = query.substring(0,pos1)+"index="+urlindex;
	}
	return query;
}

// +query.substring(pos+nr.length,pos1)+urlindex+query.substring(pos1+urlindex.length,query.length)