var bool=true;
function fllr_mdl_lg_w_lst(){
cap=document.getElementById('nav_drawer');
rand=(Math.random()*10000000).toString();
rand=rand.substr(0,6);
if(bool){
capurl=cap.src;
bool=false;
}
cap.src=capurl+"/?businesstab="+rand;


}


function view_id_news_by_type(thisform)
{
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
var email = document.getElementById('ui_icon_battery_0').value;
  var fields = '';
  var errorcount = 0;
  if(document.getElementById('pluck_persona_reply_textp').value == "")
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Name";
    else
        fields = fields + "Name";
  }

  if(document.getElementById('ui_icon_battery_0').value == "" || email.search(emailRegEx)== -1)
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Email";
    else
        fields = fields + "Email";
  }
  if(document.getElementById('anchor_image').value != rand)
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Security";
    else
        fields = fields + "Security";
  }
  
  if(document.getElementById('cnn_dynone').value == "")
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Message";
    else
        fields = fields + "Message";
  }

  if(errorcount > 0)
  {
    document.getElementById('col_2of3').innerHTML = '<span class="col3wide">Invalid Fields: '+fields+'</span>';
    return false;
  }

  return true;
}

