var url = window.location.toString(); url=url.replace(/&/g,"___") var parameters = "id=221&Size=3&CompanyID=266&addr="+url; document.write("