var hasClicked=false;
if (top != self) {
	window.top.location.href=window.top.location.href;
}

function login() {
    if(! hasClicked){
        hasClicked=true;
        return true;
    }
    return false;
}