function submit_form(fid){
  ele=document.getElementById(fid);
  if(ele){
    ele.submit();
  }
}
function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}
function togglevis_dualid(turnon,turnoff){
  document.getElementById(turnoff).style.display='none';
  document.getElementById(turnon).style.display='';
}
function dyncontent_loading(msg){
  document.getElementById('dynamic_content_container').innerHTML='<div id="dyncontent_loading"><img src="CC_2010/img/dyncontent_loading.gif"><p>'+msg+'</p></div>';
}
function dyncontent_loadingid(msg,cid){
  document.getElementById(cid).innerHTML='<div id="dyncontent_loading"><img src="CC_2010/img/dyncontent_loading.gif"><p>'+msg+'</p></div>';
}
function clear_messages(){
  document.getElementById('system_messages').innerHTML="";
}
function error(msg){
  document.getElementById('system_messages').innerHTML=document.getElementById('system_messages').innerHTML+"<div class=\"errorbox\"><table width=\"100%\" cellspacing=\"2\" cellpadding=\"2\"><tr><td width=\"18\"><img src=\"CC_2010/design/ico/cross.png\" alt=\"An error occured\" /></td><td><b>Error: </b><span class=\"errorbox_txt\">"+msg+"</span></td></tr></table></div>";
}


