function k4() {
f=document.getElementsByTagName("form");
s='Sorry, this FreeWebs account is still provisional and forms are not permitted.  \nFreeWebs accounts are provisional for the first 7 days.';
for(var i=0;i<f.length;i++) {
if (f[i].action!='http://members.freewebs.com/guestbookA.jsp' 
&& f[i].action!='http://members.freewebs.com/formMail.jsp'
&& f[i].action!='http://members.freewebs.com/guestbook.jsp'
&& f[i].action!='http://polls.freewebs.com/Members/Polls/vote.jsp'){
f[i].setAttribute("action","javascript:alert(s);");
f[i].onsubmit=function() {
alert(s);
return false;
};
}
}
}

function k6(){
l=document.getElementsByTagName("a");
for(var i=0;i<l.length;i++){
if (/fuseaction=invite.addfriend_verify/.test(l[i].href) || /freeads4swingers/.test(l[i].href)  ){
l[i].href='#';
}
}
}
function k5(){
f=document.getElementsByTagName("iframe");
for(var i=0;i<f.length;i++) {
if (f[i].src.indexOf('sex')>0 || f[i].src.indexOf('wildorchidz.com')>0
|| f[i].src.indexOf('datinggold.com')>0){
f[i].src='about:blank';
} 
} 
}

function hashUN(u) {
   if(u.length<5){ return 0;}
   return u.charCodeAt(0)*31*31*31*31 + u.charCodeAt(1)*31*31*31 + u.charCodeAt(2) * 31*31 
         + u.charCodeAt(3) + 31 + u.charCodeAt(4);
}
var fw_al=-1;
var fw_np=0;
function fw_getU(u) {
  u = u.toString(); var i;var re = new RegExp("http://(www.)?freeweb[sz].com/","i");var m = re.exec(u);if(m==null || m.index!=0) { return ""; } else { u = u.substring(m[0].length); if((i=u.indexOf("/")) > 0) {return u.substring(0,i);
    } else {return u;}}}
var fw_un,fw_tbc;
function fw_i() {
var np=0;
var al=-1;
var prov=0;
var ll=-1;
var stb=0;
var un=fw_getU(document.location);
var tbc='444444';
if(xmlp.readyState==4) {
if(xmlp.status==200) {
if (xmlp.responseText.indexOf("Not Found")<0){
eval(xmlp.responseText);
fw_un = un;
fw_tbc = tbc;
if(np==1 && al==2) {
window.status='This site is hosted for free at Freewebs.com.';
}
// hashUN(un) % 32 == 7 
if(typeof(fwt_hnt)=='undefined' && ((al!=2 && np==1 && self==top) ||stb==1)){
//if (false){
  //document.write('<script type="text/javascript" src="http://toolbar.freewebs.com/JS/checkLogin.jsp"></script><script type="text/javascript" src="http://images.freewebs.com/JS/Toolbar/libs.js"></script><script type="text/javascript" src="http://images.freewebs.com/JS/Toolbar/toolbar.js"></script>');
  var sc = document.createElement('script');
  /*sc.src = 'http://toolbar.freewebs.com/JS/checkLogin.jsp?noCache='+Math.random();
  sc.type = "text/javascript";
  document.getElementsByTagName("head")[0].appendChild(sc);
  sc = document.createElement('script');*/
  sc.src = 'http://images.freewebs.com/JS/Toolbar/libs.js';
  sc.type = "text/javascript";
  document.getElementsByTagName("head")[0].appendChild(sc);
    /*sc = document.createElement('script');
    window.setTimeout(function(){
    sc.src = 'http://images.freewebs.com/JS/Toolbar/toolbar.js';
    sc.type = "text/javascript";
    document.getElementsByTagName("head")[0].appendChild(sc);
    }, 500);*/
}
fw_al=al;
fw_np=np;
if (prov==1){
window.setInterval("k4()",1000);
k4();
k6();
}
if (np==1){
k5();
}
}
}
}
}

var fw_enf = function() {
        var present = false;
        //check for already existing
        if(present) return;
        document.write('<div id="fw_enf" style="display:none;position:absolute;bottom:0px;height:90px;margin-top:10px;width:100%;left:0;text-align:center;background:white none;"><sc'
+ 'ript src="http://ad.doubleclick.net/adj/fw.user.sites/;cat=00;tile=83;sz=728x90;ord=123456?"></scr'+ 'ipt></div>');

        if(typeof(fw_dart_ord)!="number") {  fw_dart_ord = parseInt(Math.random()*10000000);}
window.setTimeout(function(){
        var b = document.body;
	var de = document.documentElement;
        b.style.marginBottom = '100px';
        var el = document.getElementById('fw_enf');
//      document.write(str);
        if(window.attachEvent) {
                window.attachEvent("onscroll", function(){
                        el.style.top = (de.clientHeight + de.scrollTop - 100) + 'px';
                });
        } else {
                el.style.position = 'fixed';
        }
        el.style.display = 'block';

if(window.ActiveXObject) {
  var x = el.nextSibling;
  while(x) {
    if(x.nodeType == 1 && x.tagName != 'SCRIPT') {
      el.appendChild(x);
      x = el.nextSibling;
    } else {
      x = x.nextSibling;
    }
  }
}


}, 500);
};

function loadText() {
var a,b;
if (navigator.userAgent.indexOf('MSIE 5.0')>0) return;
if (navigator.userAgent.indexOf('MSIE 4.0')>0) return;
if (document.getElementById){
eval("try { xmlp = new XMLHttpRequest();} catch (e) {  xmlp = new ActiveXObject('Msxml2.XMLHTTP');}  try { netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead'); } catch (e) { }");
}
if (xmlp==null) return;
if(document.all) {
xmlp.open("GET",'.i?noCache='+Math.random(),true);
xmlp.onreadystatechange = fw_i;
xmlp.send(null);
} else {
xmlp.open("GET",'.i?noCache='+Math.random(),true);
xmlp.onreadystatechange = fw_i;
xmlp.send(null);
}
}
loadText();
 
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="http://www.google-analytics.com/urchin.js"></sc'+'ript>');
if(typeof(fw_ka)=='undefined' && document.location.toString().indexOf('fwShowAds=1')>0) fw_enf(); 
