﻿function claim_Listing(url, compId, type, catId, compName, phone, address, city, state, zip, country){
    //_claimListing2(url, compId, type, catId, compName, phone, address, city, state, country);
    
    var form = document.createElement("form");
    form.method = 'post';
    form.action = url;
    form.target = '_blank';  
    
    var params = $H({
         compId: compId,
         t: type,
         catId: catId,
         compName: compName,
         phone: phone,
         add: address,
         city: city,
         state: state,
         zip: zip,
         country: country,
         s: 'claim'
        });
    params.each(function(param){
        var f = document.createElement("input");              
        f.setAttribute("name", param.key);
        f.setAttribute("value", param.value);
        f.style.display = "none";
        form.appendChild(f);
        document.body.appendChild(form);    // may not be necessary                   
     });
     
   if(navigator.userAgent.match('Chrome')){ 
       //work around for Chrome bug: repeated form submit fail 
       //ref: http://code.google.com/p/chromium/issues/detail?id=30907
       window.open('','dm');
       form.target = 'dm';
   }
   form.submit();
}

function ToggleArticle(artId)
{
    Effect.toggle('nsArt_'+artId, 'blind',{ duration: 0.5 }); 
    return false;
}
function Toggle(e)
{
    Effect.toggle(e, 'blind',{ duration: 0.5 }); 
    return false;
}


