function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location=?supertag='"+selObj.options[selObj.selectedIndex].value+"'")
if(restore)selObj.selectedIndex=0}
function getURLVar(urlVarName){
var urlHalves=String(document.location).split('?')
var urlVarValue=''
if(urlHalves[1]){
var urlVars=urlHalves[1].split('&')
for(i=0;i<=(urlVars.length);i++){
if(urlVars[i]){
var urlVarPair=urlVars[i].split('=')
if(urlVarPair[0]&&urlVarPair[0]==urlVarName){
urlVarValue=urlVarPair[1]}}}}
return urlVarValue}
function rtrim(str,charlist){
charlist=!charlist ? ' \s\xA0' :(charlist+'').replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,'\$1')
var re=new RegExp('['+charlist+']+$','g')
return(str+'').replace(re,'')}
function appendTags(){
var supertag1=document.getElementById('tags1').value
var supertag2=document.getElementById('tags2').value
var supertag3=getURLVar('tags')
var redirect='?'
var t1=''
var t2=''
if(getURLVar('id')){
redirect+='id='+getURLVar('id')+'&'}
if(supertag1 || supertag2 || supertag3){
redirect+='tags='}
if(supertag1&&supertag1 !='odaberi:'){
redirect+=supertag1+','
t1='&t1='+supertag1}
if(supertag2&&supertag2 !='odaberi:'){
redirect+=supertag2+','
t2='&t2='+supertag2}
var urlHalves=String(document.location).split('?')
window.location=urlHalves[0]+rtrim(redirect,',')+t1+t2}
function selectSupertags(){
var supertag1=document.getElementById('tags1').options
for(var i=0;i<supertag1.length;i++){
if(supertag1[i].value==getURLVar('t1')){
document.getElementById('tags1').options[i].selected=true}}
var supertag2=document.getElementById('tags2').options
for(var i=0;i<supertag2.length;i++){
if(supertag2[i].value==getURLVar('t2')){
document.getElementById('tags2').options[i].selected=true}}}
$(document).ready(function(){selectSupertags(1);selectSupertags(2);})
