// B.H.

// B.H.
function do_nothing() {
  return; // javascript:do_nothing() to "fake" the links that us onclick to open a popup
}

function show_flash(fsrc,fwidth,fheight,fbgcolor,fwmode) {
  flash_obj_html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+fwidth+"' height='"+fheight+"' border='0'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='"+fsrc+"' /><param name='quality' value='high' /><param name='bgcolor' value='"+fbgcolor+"' /> <param name='wmode' value='"+fwmode+"' /><embed src='"+fsrc+"' wmode='"+fwmode+"' quality='high' bgcolor='"+fbgcolor+"' width='"+fwidth+"' height='"+fheight+"' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' /></object>";
  document.write(flash_obj_html);
}

function show_wmp(src,width,height,autostart,mimetype) {
  wmp_obj_html = '<object width="'+width+'" height="'+height+'" border="0" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" bgcolor="black"><param value="'+src+'" name="URL" />  <param value="1" name="rate" /> <param value="1" name="balance" /> <param value="0" name="currentPosition" /> <param value="" name="defaultFrame" /> <param value="1" name="playCount" /> <param value="'+autostart+'" name="autoStart" /> <param value="0" name="currentMarker" /> <param value="-1" name="invokeURLs" /> <param value="" name="baseURL" /> <param value="50" name="volume" /> <param value="0" name="mute" /> <param value="full" name="uiMode" /> <param value="-1" name="stretchToFit" /> <param value="0" name="windowlessVideo" /> <param value="-1" name="enabled" /> <param value="0" name="enableContextMenu" /> <param value="0" name="fullScreen" /> <param value="0" name="enableErrorDialogs" /> <param value="10319" name="_cx" /> <param value="9604" name="_cy" /> <embed src="'+src+'" width="'+width+'" height="'+height+'" type="'+mimetype+'" autoStart="'+autostart+'" /></object>';
  document.write(wmp_obj_html);
}

function change_to_wmp(elm_id,src,width,height,autostart) {
  wmp_obj_html = '<object width="'+width+'" height="'+height+'" border="0" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" bgcolor="black"><param value="'+src+'" name="URL" />  <param value="1" name="rate" /> <param value="1" name="balance" /> <param value="0" name="currentPosition" /> <param value="" name="defaultFrame" /> <param value="1" name="playCount" /> <param value="'+autostart+'" name="autoStart" /> <param value="0" name="currentMarker" /> <param value="-1" name="invokeURLs" /> <param value="" name="baseURL" /> <param value="50" name="volume" /> <param value="0" name="mute" /> <param value="full" name="uiMode" /> <param value="-1" name="stretchToFit" /> <param value="0" name="windowlessVideo" /> <param value="-1" name="enabled" /> <param value="0" name="enableContextMenu" /> <param value="0" name="fullScreen" /> <param value="0" name="enableErrorDialogs" /> <param value="10319" name="_cx" /> <param value="9604" name="_cy" /><embed src="'+src+'"  width="'+width+'" height="'+height+'" autostart="'+autostart+'" border="0" type="video/x-ms-wmv"></embed> </object>';
  aelm = document.getElementById(elm_id);
  aelm.innerHTML = wmp_obj_html; 
}

function SetDocLocation(url) {
   document.location=url;
}


function  show_699_popup(url) {
  window.open(url,'','width=630,height=550,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes');
}


function checkMail() {
  my_form = document.getElementById('myForm');
  if(my_form.theEmail.value=='') {
    document.getElementById('error').style.display='block';
  } else {
    my_form.submit();
  }
}

function addToFav()
{
 window.external.AddFavorite("http://www.sofash.co.il","Sofash");
}

function makeHompage()
{
this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sofash.co.il') ;return false;
}

function showBody(id) {
 if(document.getElementById('body'+id).style.display=='none') {
   document.getElementById('body'+id).style.display='block';
 } else {
 		 document.getElementById('body'+id).style.display='none';
 }
}

function openWindow(x)
{
window.open('../Response.php?aid='+x ,'mywindow','status=1,toolbar=1,width=400,height=350');
}



var xmlHttp;
function updateCounter(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="updateCounter.php"
url=url+"?id="+str
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
 } 
}function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}





