﻿function changeiframe() {
    document.getElementById("loading").style.display = "none";
    document.getElementById("loading").style.visibility = "hidden";
    document.getElementById("iframe").style.display = "block";
    document.getElementById("iframe").style.visibility = "visible";
}
function checkPhone() {
    var len = document.getElementById("tbphone").value.length;
    if (len != 7) {
        alert("מספר טלפון לא תקין");
        return false;
    }
    else {
        _gaq.push(['_trackEvent', 'Waplink', 'Send']);
    }
}
var ie6 = false; function ieVer() {
    var rv = -1; if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}

if ((navigator.appName == "Microsoft Internet Explorer") && (ieVer() < 7)) {
    ie6 = true;
    //document.getElementById("divphone").style.left = "-515px";
    //document.getElementById("bttsubmit").style.top = "150px";
}
//window.moveTo(0, 0)
//if (window.innerHeight && window.innerHeight < 800) {
//    window.innerHeight = 800;
//    if (window.innerWidth && window.innerWidth < 1000)
//        window.innerWidth = 1000;
//}
//else if (document.documentElement.clientHeight && (document.documentElement.clientHeight < 900 || document.documentElement.clientWidth < 1000)) {
//    window.resizeTo(1000, 1000);
//}
//else if (document.body.clientHeight && (document.body.clientHeight < 900 || document.body.clientWidth < 1000)) {
//    window.resizeTo(1000, 1000);
//}
window.scrollTo(0, 0);



