if(typeof(window.tagthis_send) == "undefined"){ // should prevent redefining function but no? //alert('Amortgage4you.co.uk'); function tagthis_send1(textfield,j,tagurl){ if (typeof(tagurl)=="undefined" || tagurl ==""){ tagurl = window.location.href; } if(textfield.value == ""){ alert ("Type a tag into the input box first"); } else { newtag=URLEncode(textfield.value); safeurl = URLEncode(tagurl); //alert("Tagging "+safeurl); extjs='http://i.tagthis.info/addtag.php?url='+safeurl+'&divnum='+j+'&tag='+newtag; var script=document.createElement('script'); script.src=extjs; var headnode = document.getElementsByTagName('head')[0]; headnode.appendChild(script); textfield.value=""; } } function gE(te){ return document.getElementById(te); } function URLEncode(plaintext) { // The Javascript escape and unescape functions do not correspond // with what browsers actually do... var SAFECHARS = "0123456789" + // Numeric "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + // Alphabetic "abcdefghijklmnopqrstuvwxyz" + "-_.!~*'()"; // RFC2396 Mark characters var HEX = "0123456789ABCDEF"; var encoded = ""; for (var i = 0; i < plaintext.length; i++ ) { var ch = plaintext.charAt(i); if (ch == " ") { encoded += "+"; // x-www-urlencoded, rather than %20 } else if (SAFECHARS.indexOf(ch) != -1) { encoded += ch; } else { var charCode = ch.charCodeAt(0); //test for unicode chars - can't urlencode them if (charCode > 255) { encoded += "+"; } else { encoded += "%"; encoded += HEX.charAt((charCode >> 4) & 0xF); encoded += HEX.charAt(charCode & 0xF); } } } // for return encoded; }//function function array_search(val, arr){ var i = arr.length; while (i--) if (arr[i] && arr[i] === val) break; return i; } function maketagthisform(tagged_url){ var i = 0; var divname = 'tagthis_formdiv'; while (gE(divname+i)){ i++; }//while document.write('\n
\n'+ 'Hosted tags for this page from TagThis.Info
\n'+ '
\n'+ '\n'+ '\n'+ '
'+ 'Tags: bad credit mortgage poor credit mortgage mortgage with poor credit adverse credit history bad credit help mortgage lender low rate mortgages self cert mortgages property price predictor house price values mortgage refinancing free mortgage tools latest mortgage news request call back london mortgages \n
\n'); }//function }//if maketagthisform('Amortgage4you.co.uk');