', "gi"), "");
badgeCode = badgeCode.replace(new RegExp('\
',"gi"),"");
if(badgeCode.indexOf('')==-1){
badgeCode = badgeCode.replace(new RegExp('\<\/object>',"gi"), "");
}
msgCodePre = '';
msgCodePost = '
';
msgCodeUser = document.getElementById('ccMessage').value;
msgCodeUser = msgCodeUser.replace(new RegExp('\\n',"g"),"
");
msgCode = msgCodePre + msgCodeUser + msgCodePost;
pv = "ZUzeb011_" + pv;
cardId = "12352";
catId = "44244/44306";
src = "http://t.myfuncards.com/images/nocache/tr/mfc/rds/" + catId + "/" + cardId + ".gif";
signatureCode = '
'
codeToCopy = '' + badgeCode + '
' + msgCode + '
' + signatureCode + '' ;
codeToCopy = codeToCopy.replace(new RegExp( "\\r|\\n|\\t", "g" ),"");
codeToCopy = Trim(codeToCopy);
document.getElementById('txt_copy_code').value = codeToCopy;
}
function copyCodeShow() {
//$('CopyCode').toggle();
//I miss prototype
document.getElementById('CopyCode').style["display"] = "";
}
// remove leading and end space
function Trim(str) {
if(str.charAt(0) == " "||str.charAt(0) == "\t"){
str = Trim(str.substring(1));
}
if (str.charAt(str.length-1) == " "){
str = Trim(str.substring(0,str.length-1));
}
return str;
}
/**
* Function to take the innerHTML or text value of an object
* and copy to the clip board
**/
function CopyCode( src ) {
var srcObj = document.getElementById( src );
var copyVal = null;
if( typeof( srcObj ) != "undefined" ) {
switch( srcObj.tagName ) {
case "DIV":
copyVal = srcObj.innerHTML;
break;
case "INPUT":
copyVal = srcObj.value;
break;
}
}
CopyCodeText( copyVal );
}
/**
* Used to copy a string to clipboard, thank you webfetti!
**/
function CopyCodeText( copyVal ) {
var oFlash = getFlashMovieObject('copyToClipboard');
oFlash.SetVariable('c', copyVal);
cardId = "12352";
catId = "44244/44306";
u_str = "/clicks/copy_code/" + catId + "/"+ cardId;
urchinTracker(u_str);
}
function CopyCodeUpdateButton(btnId) {
if(btnId == null) btnId = "copyCode_btn";
var btn = document.getElementById( btnId );
//btn.innerHTML = "Copied";
btn.className = "copied";
setTimeout( "document.getElementById('" + btnId + "').className='';", 5000 );
}
function CopyCodeTextAnim() {
cc_animInterval = setTimeout( "CopyCodeSwitchBorder(0)", 400 );
}
function CopyCodeSwitchBorder(cc_anim) {
if( cc_anim < 10 ) {
var inp = document.getElementById( "txt_copy_code" );
if( (cc_anim%2) == 1 ) inp.style.borderColor = "#f99517";
else inp.style.borderColor = "#2a6b96";
cc_anim++;
setTimeout( "CopyCodeSwitchBorder("+cc_anim+")", 400 )
} else {
cc_animInterval = null;
cc_anim = 0;
}
}
function CopyCodeReset() {
document.getElementById( "txt_copy_code" ).style.backgroundColor = "#fff";
document.getElementById( "txt_copy_code" ).style.borderColor = "#2a6b96";
document.getElementById( "txt_copy_code" ).value = "";
clearInterval( cc_animInterval );
cc_animInterval = null;
cc_anim = 0;
}
function CopyCodeHandler(pv){
combineCode(pv);
if(tbCheck('cc')){
CopyCode('txt_copy_code');
CopyCodeUpdateButton('copyCode_btn')
CopyCodeTextAnim();
//CopyCodeUpdateButton();
}
else {
location.href=sDownloadUrl+"?partner=ZUzeb011";
}
}
function getFlashMovieObject(movieName){
if(window.document[movieName]){return window.document[movieName];}
if(navigator.appName.indexOf("Microsoft Internet")==-1){
if(document.embeds && document.embeds[movieName]){
return document.embeds[movieName];
}
}else{
return document.getElementById(movieName);
}
return null;
}
function tbCheck(loc, aType){
if(oToolbarController.bInstalled && !oToolbarController.bUpgradeRequired){
return true;
}
else{
// START Pass utm vars to download process
//var assetTmp=getTmpAsset(aType);
//END Pass utm vars to download process
location.href=sDownloadUrl+"?partner=ZUzeb011";
return false;
}
}
function getParentPartnerValue(){
if (oToolbarController.bInstalled){
return oToolbarController.sParentPartnerID;
}
else
return 'ZUxpr999';
}
Holidays :
Other eCards :
Admin Professionals' Day