// JavaScript Document
function OpenInfoWin(MZid){
	MZwin=window.open ("http://www.megazimmer.co.il/MZinfo.asp?ID=" + MZid, 'MZwin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=626,height=414')
}

var newwindow = '';

function popitup(url)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'name', 'height=229, width=320, screenX=1, screenY=1, top=1, left=1');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

var newwindow2 = '';
function popitup2(url, width, height, u_left, u_top,  u_name)
{
	if (!newwindow2.closed && newwindow2.location)
	{
		newwindow2.location.href = url;
	}
	else
	{
		newwindow2=window.open(url, u_name, 'height='+height+', width='+width+', screenX='+u_left+', screenY='+u_top+', top='+u_top+', left='+u_left);
		if (!newwindow2.opener) newwindow2.opener = self;
	}
	if (window.focus) {newwindow2.focus()}
	return false;
}

function closeChild() {
  if (newwindow && newwindow.open && !newwindow.closed) newwindow.close();
}

function sendSMS(pic_url)
{
	popitup2("smspic.asp?pic_url="+pic_url, 350, 250, 200, 200, "mms");
}

function GenIframe(WebURL){
	document.getElementById("SignalWebsite").innerHTML = '<iframe src="' + WebURL + '" width="0" height="0" frameborder="0"></iframe>';
}