/**
 * Decrypts encrypted mail links/addresses inside normal text.
 * 
 * @param encryptedMail
 *        The encrypted mail link/address.
 * @return
 *        The decrypted mail link/address.
 */
function decryptMail(encryptedMail)
{
  var mail = '';
  var mchar;
  
  // The encrypted mail address is URI decoded
  encryptedMail = decodeURIComponent(encryptedMail);
  for (var i = 0; i < encryptedMail.length; i++) {
    // Each character in the mail address is
    // ...converted to its decimal ASCII code
    mchar = encryptedMail.charCodeAt(i);
    // ...XORed with a "magic number"
    mchar ^= (31 - (i % 5));
    // ...converted to a character and appended to the final string
    mchar = String.fromCharCode(mchar);
    mail += mchar;
  }
  
  return mail;
}

function ch_color(id,color){
	obj = document.getElementById(id);
	obj.style.color = color;
	}

function ch_border(id,borderstring){
	obj = document.getElementById(id);
	obj.style.border = borderstring;
	}
	
function ch_bg_color(id,color){
	obj = document.getElementById(id);
	obj.style.backgroundColor = color;
	}

function on_focus_cc_element(id,borderstring,color){
	obj = document.getElementById(id);
	obj.style.border = borderstring;
	obj.style.color = color;	
	}
	
function on_focus_se_element(id,color,fontstyle){
	obj = document.getElementById(id);
	obj.style.fontStyle = fontstyle;
	obj.style.color = color;	
	}



//content_site_form_data1 - colors
cc_element_font_color_select='#9D2727';
cc_element_border_select='1px solid #9D2727';
cc_element_font_color='#666666';
cc_element_border='1px solid #666666';

cc_color_btn='#bed600';
cc_color_btn_hover='#9D2727';
cc_color_btn_txt='#9D2727';
cc_color_btn_txt_hover='#bed600';


re_color_btn='#F7F7F7';
re_color_btn_hover='#9D2727';
