<!--//



function link(url){document.location.href=url}
function puw(url,x,y){pop='width='+x+',height='+y+',titlebar=0,toolbar=0,location=0,menubar=0,scrollbars=1,resizable=0,channelmode=0,directories=0,status=1';xwin=window.open(url,'_blank',pop,true);xwin.opener=self;xwin.creator=self}


function onABCommComplete(data) {
  // OPTIONAL: do something here after the new data has been populated in your text area

	var emails = [];
	for (var i = 0; i < data.length; i++){
		emails.push(data[i][1]);
	}
	var textAreaId = 'contacts';
	document.getElementById(textAreaId).value = emails.join(', ');
}



function postVis(id){
	divVis('details','none');
	divVis('photos','none');
	divVis('link','none');
	divVis(id,'block');
}



function divVis(id, wtd){
	var newClass;
	document.getElementById('vis-'+id).style.display = wtd;
}



function getRef(){
	if (window.name != ""){
		var refid = /^\d{4}\w\d{4}$/.exec(window.name);
		if (refid){
			setCookie('rid', refid, 30);
		}
	}
}



function setCookie(c_name, value, expiredays){
	var exdate = new Date();
	exdate.setDate(exdate.getDate() + expiredays);
	document.cookie = c_name + "=" + escape(value) +
	((expiredays==null) ? "" : ";expires=" + exdate.toGMTString());
}


//-->
