﻿// JScript File


function sf(){
    if (document.all) 
        {document.forms(0).item(0).focus();}
    else {document.forms[0].elements[0].focus();}
}
function sf2(){
    if (document.all) 
        {document.forms(1).item(0).focus();}
    else {document.forms[1].elements[0].focus();}
}

function CreateBookmark(){
var url = 'http://www.IsraelViews.com/';
var title = 'Google search with Israel Views- IsraelViews.com';

if (window.sidebar) // ff
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for IE7, Firefox, Opera, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=state_Change;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  //alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  if (xmlhttp.status==200)
    {// 200 = "OK"
    //document.getElementById('A1').innerHTML=xmlhttp.status;
    //document.getElementById('A2').innerHTML=xmlhttp.statusText;
    var str=xmlhttp.responseText;
    document.getElementById('A3').innerHTML=str;//.substring(0,5);
    }
  else
    {
    //do nothing
    // alert("Problem retrieving XML data:" + xmlhttp.statusText);
    }
  }
}

function writeEmail() {
    document.write ("<a href='mailto:israelview");
    document.write("smail@gmail.com'>israelview");
    document.write ("smail@gmai");
    document.write ("l.com</a>");
}