
function fillBlanks(){if(document.invitation){for(var i=0;i<document.invitation.elements.length;i++){var e=document.invitation.elements[i];if(e.value==''){if(e.name.substring(0,3)=="fir")e.value='first name';if(e.name.substring(0,3)=="las")e.value='last name';if(e.name.substring(0,3)=="ema")e.value='email address';}}}}
function leaveBlanks(){if(document.invitation){for(var i=0;i<document.invitation.elements.length;i++){var e=document.invitation.elements[i];if(e.value=='first name'||e.value=='last name'||e.value=='email address')e.value='';}}}
function clearDefaults(){if(document.invitation){for(var i=0;i<document.invitation.elements.length;i++){var e=document.invitation.elements[i];if(e.value=="first name")e.value='';if(e.value=="last name")e.value='';if(e.value=="email address")e.value='';}}}
function fixDefaultBody(){}
var inv={initA:function(){inv.setSidebarPromo();document.getElementById('customize-block').style.display='none';document.getElementById('send-invite1').style.display="block";var customizeLink=document.getElementById('customize-link');customizeLink.onclick=function(){inv.showHideCustomize(this.firstChild);}
customizeLink.firstChild.src="imp_images/preview_closed.gif"},initB:function(){inv.setSidebarPromo();var customizeLink=document.getElementById('customize-link');document.getElementById('customize-block').style.display='block';customizeLink.onclick=function(){inv.showHideCustomize(this.firstChild);}},initPost:function(){document.getElementById('customize-block').style.display='none';document.getElementById('send-invite1').style.display="block";var customizeLink=document.getElementById('customize-link');customizeLink.onclick=function(){inv.showHideCustomize(this.firstChild);}
customizeLink.firstChild.src="imp_images/preview_closed.gif"},setSidebarPromo:function(){if(document.getElementById('has-javascript'))document.getElementById('has-javascript').style.display="block";if(document.getElementById('no-javascript'))document.getElementById('no-javascript').style.display="none";},showHideCustomize:function(el){var customizeBlock=document.getElementById('customize-block');var sendbutton1=document.getElementById('send-invite1');if(customizeBlock.style.display=="block"){customizeBlock.style.display='none';el.src="imp_images/preview_closed.gif";sendbutton1.style.display='block';}else{customizeBlock.style.display='block';el.src="imp_images/preview.gif";sendbutton1.style.display='none';}},handleErrors:function(){if(document.getElementById('hdrsuccess')){document.getElementById('customize-block').style.display='none';document.getElementById('customize-link').firstChild.src="imp_images/preview_closed.gif";}else{document.getElementById('customize-block').style.display='block';document.getElementById('customize-link').firstChild.src="imp_images/preview.gif";}},randomTip:function(){var tip=new Array();tip[0]="Harvard Business School graduates average 58 connections";tip[1]="CEOs average 29 connections";tip[2]="People with 20+ connections appear in search results 14.6x more often";tip[3]="Adding 5 connections makes you 3.7x more likely to receive a job offer";var newTip=tip[Math.floor(tip.length*Math.random())];var tipNode=document.getElementById('invite-tip');tipNode.innerHTML=newTip;}}
