function showmedia(ind) {
var mi=0;
while (document.getElementById('media'+(++mi).toString())) {
document.getElementById('headerlink'+mi.toString()).className = (mi==ind) ? 'selected' : '';
document.getElementById('media'+mi.toString()).style.display = (mi==ind) ? '' : 'none';
}
return false;
}
//updateContact requires protoculous.js library
function updateContact(frm) {
var country = frm.country.value;
var type = frm.type.value;
var location=frm.location.value;
new Ajax.Updater('contactlist', 'sp?open&cid=contactlist&list=auto&country=' + country + '&type=' + type + '&location='+location+'&include=translation-' + translation);
}

