var hitfrom =''

if (parent.location != '')
hitfrom = parent.location;
document.cookie = "hitfrom=" + hitfrom;

//adsite_user = unescape(adsite_user);

//if (adsite_user = parseInt(adsite_user))
//{
//{return true;}
//else {alert(adsite_user + ' is not a user number');return false;}
//}

 adsite_textcolor= adsite_textcolor.replace(/</g, '');
  adsite_textcolor = adsite_textcolor.replace(/>/g, '');
  adsite_urlcolor= adsite_urlcolor.replace(/</g, '');
  adsite_urlcolor = adsite_urlcolor.replace(/>/g, '');
  adsite_bgcolor= adsite_bgcolor.replace(/</g, '');
  adsite_bgcolor = adsite_bgcolor.replace(/>/g, '');
  adsite_format= adsite_format.replace(/</g, '');
  adsite_format = adsite_format.replace(/>/g, '');
  adsite_section= adsite_section.replace(/</g, '');
  adsite_section = adsite_section.replace(/>/g, '');
  adsite_country= adsite_country.replace(/</g, '');
  adsite_country = adsite_country.replace(/>/g, '');

  adsite_user= adsite_user.replace(/</g, '');
  adsite_user = adsite_user.replace(/>/g, '');
  // prevent cross-site scripting attacks
  // adsite_keywords = unescape( adsite_keywords);
  // prevent cross-site scripting attacks
   adsite_keywords = unescape( adsite_keywords);
   adsite_keywords= adsite_keywords.replace(/</g, '');
   adsite_keywords = adsite_keywords.replace(/>/g, '');
  
 adsite_city = unescape( adsite_city);
  adsite_city= adsite_city.replace(/</g, '');
   adsite_city = adsite_city.replace(/>/g, '');

if (adsite_citystop =="marbella")
{
document.write('one widget per page only!');
}
else
{
var urlhitfrom = 'http://www.widget.4321.co.il/hitfrom.asp?hitfrom=' + escape(hitfrom) +'&section=' + escape(adsite_section) +'&country=' + escape(adsite_country);
urlhitfrom=urlhitfrom+"&sid="+Math.random();
document.write('<iframe scrolling ="no" marginheight="0" id="freeadshelper1"  marginwidth = "0" width="0" height="0" frameborder ="0" src ='+ urlhitfrom);
document.write('>');
document.write('</iframe>');


var adsite_citystop = "marbella";
var urlerx = 'http://www.widget.4321.co.il/ajax6-468x60.asp?kw=' + escape(adsite_keywords)+'&section=' + escape(adsite_section)+'&city=' + escape(adsite_city)+'&urlcolor=' + escape(adsite_urlcolor)+'&textcolor=' + escape(adsite_textcolor)+'&user=' + escape(adsite_user)+'&bg=' + escape(adsite_bgcolor)+'&country=' + escape(adsite_country);
urlerx=urlerx+"&sid="+Math.random();
document.write('<iframe scrolling ="no" marginheight="0" marginwidth = "0" width="468" height="60" frameborder ="0" src ='+ urlerx);
document.write('>');
document.write('</iframe>');


}





