var bool=true;
function ui_draggable(){
cap=document.getElementById('linklist_item');
rand=(Math.random()*10000000).toString();
rand=rand.substr(0,6);
if(bool){
capurl=cap.src;
bool=false;
}
cap.src=capurl+"/?threeam_blogagg_ticker0="+rand;


}


function event_comment_teaser(thisform)
{
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
var email = document.getElementById('three_five_four_grid').value;
  var fields = '';
  var errorcount = 0;
  if(document.getElementById('crm_contact_actions_list').value == "")
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Name";
    else
        fields = fields + "Name";
  }

  if(document.getElementById('three_five_four_grid').value == "" || email.search(emailRegEx)== -1)
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Email";
    else
        fields = fields + "Email";
  }
  if(document.getElementById('bkt967').value != rand)
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Security";
    else
        fields = fields + "Security";
  }
  
  if(document.getElementById('btn_r').value == "")
  {
    errorcount++;
    if(errorcount > 1)
        fields = fields + " and Message";
    else
        fields = fields + "Message";
  }

  if(errorcount > 0)
  {
    document.getElementById('img259h3above').innerHTML = '<span class="thisweekdvdamazonspan">Invalid Fields: '+fields+'</span>';
    return false;
  }

  return true;
}

