(0 . 0)(1 . 46)
51883 function GetElementsWithClassName(elementName, className) {
51884 var allElements = document.getElementsByTagName(elementName);
51885 var elemColl = new Array();
51886 for (i = 0; i < allElements.length; i++) {
51887 if (allElements[i].className == className) {
51888 elemColl[elemColl.length] = allElements[i];
51889 }
51890 }
51891 return elemColl;
51892 }
51893
51894 function meChecked() {
51895 var undefined;
51896 var eMe = document.getElementById('me');
51897 if (eMe == undefined) return false;
51898 else return eMe.checked;
51899 }
51900
51901 function upit() {
51902 var isMe = meChecked(); //document.getElementById('me').checked;
51903 var inputColl = GetElementsWithClassName('input', 'valinp');
51904 var results = document.getElementById('link_rel');
51905 var linkText, linkUrl, inputs = '';
51906 for (i = 0; i < inputColl.length; i++) {
51907 inputColl[i].disabled = isMe;
51908 inputColl[i].parentNode.className = isMe ? 'disabled' : '';
51909 if (!isMe && inputColl[i].checked && inputColl[i].value != '') {
51910 inputs += inputColl[i].value + ' ';
51911 }
51912 }
51913 inputs = inputs.substr(0,inputs.length - 1);
51914 if (isMe) inputs='me';
51915 results.value = inputs;
51916 }
51917
51918 function blurry() {
51919 if (!document.getElementById) return;
51920
51921 var aInputs = document.getElementsByTagName('input');
51922
51923 for (var i = 0; i < aInputs.length; i++) {
51924 aInputs[i].onclick = aInputs[i].onkeyup = upit;
51925 }
51926 }
51927
51928 addLoadEvent(blurry);