';
f.g.value = f.asin.value+f_opt;
f.html.value = f.tmpa[la].value + f.html.value+f.tmpb[la].value;
f.html.value =f.html.value.replace(/__AMAZONID__/g,f.id.value);
f.html.value =f.html.value.replace(/__TITLE__/g,f.ProductName.value);
var obj2 = document.getElementById('preview');
obj2.innerHTML = f.html.value;
}
function sf() {
document.all.saimg.style.top = parseInt(f.top.value)+haY;
document.all.saimg.style.left = parseInt(f.left.value)+haX;
document.all.wakuimg.style.top = parseInt(f.wy.value)+10;
document.all.wakuimg.style.left = parseInt(f.wx.value)+10;
document.all.hawaku.style.height = f.wy.value;
document.all.hawaku.style.width = f.wx.value;
imgurl=imgurla[f.ck.value][f.pt.value];
if (f.wy.value >= 300-haY)
document.all.sawaku.style.height = parseInt(f.wy.value) + (haY*2); else document.all.sawaku.style.height = 300;
if (f.wx.value >= 300-haX)
document.all.sawaku.style.width = parseInt(f.wx.value) + (haX*2); else document.all.sawaku.style.width = 300;
if (f.rot.value < 0)
f.rot.value=0;
if (f.rot.value > 90)
f.rot.value=90;
lr = '';
if (f.rot.value > 0){
for (i = 0; i < f.lr.length; i++) {
if (f.lr[i].checked) {
lr = f.lr[i].value;
}
}
imgurl = imgurl.replace('_.','');
imgurl = imgurl.replace('jpg',lr + f.rot.value+'.jpg');
}
document.all.saimgs.src = imgurl;
document.getElementById('presize').innerHTML = imgsa[f.ck.value];
document.getElementById('preimgs').innerHTML = '';
setm();
}
function sc() {
f.top.value =0;
f.left.value =0;
sf();
}
function ws(x,y) {
f.wx.value =x;
f.wy.value =y;
sf();
return false;
}
function si(n) {
f.mx[n].value = f.left.value;
f.my[n].value = f.top.value;
sf();
}
function ci(n) {
f.mx[n].value = '';
f.my[n].value = '';
sf();
}
function ei(n) {
if (f.mx[n].value =='' || f.my[n].value=='')
return;
f.left.value = f.mx[n].value;
f.top.value = f.my[n].value;
sf();
}
function g(a) {
location.href = '/adslide/'+a+f_opt;
return false;
}
// -->