return false;
}
}
- var body = document.getElementById("google-div");
- body.style.display = 'none';
+ if ($("#google-div").length > 0) {
+ var body = document.getElementById("google-div");
+ body.style.display = 'none';
+ }
return true;
}
{
try
{
- var body = document.getElementById("google-div");
- body.innerHTML = '';
- body.style.display = '';
+ if ($("#google-div").length > 0) {
+ var body = document.getElementById("google-div");
+ body.innerHTML = '';
+ body.style.display = '';
+ }
var dialog = document.createElement("div");
dialog.className = "customDialog";
attachEventListener(dialogButton, "click", mySubmit, false);
dialog.appendChild(dialogButton);
- body.appendChild(dialog);
+ if ($("#google-div").length > 0) {
+ body.appendChild(dialog);
+ }
var scrollingPosition = getScrollingPosition();
var viewportSize = getViewportSize();
return false;
}
}
- var body = document.getElementById("google-div");
- body.style.display = 'none';
+ if ($("#google-div").length > 0) {
+ var body = document.getElementById("google-div");
+ body.style.display = 'none';
+ }
return true;
}