
function OpenTemplateEditor(MagazineId,PageId,ControlName,DataType)
{
	
}

<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function SendUserMessage(UserId, MyId)
{
	window.open("UserMessage.aspx?userid="+UserId+"&myid="+MyId,""," width=450,height=300,top=150,left=300 ")
	return false;
}


function display(imgName, imgUrl)
{
	if (document.images && typeof imgUrl != 'undefined')
	{
		document[imgName].src = imgUrl.src;
	}
}


function LanguageImage_Rollover()
{
	Image = new Image();
	Image.src = "images/but_hebrew_n.jpg";
	
	ImageOver = new Image();
	ImageOver.src = "images/but_hebrew_r.jpg";
	
	
}

function KeyDownHandler()
{
	//alert("KeyDownHandler");
    // process only the Enter key
    if (event.keyCode == 13)
    {
        // cancel the default submit
        event.returnValue=false;
        event.cancel = true;
        // submit the form by programmatically clicking the specified button
        //btn.click();
    }
}

function ValidateNewsletter()
{
	var f = document.frmActive;	
	
	if(!f.txtName.value)
		{
			alert("Enter name");
			f.txtName.focus();
			return false;
		}
	if(!f.txtEmail.value)
		{
			alert("Enter email");
			f.txtEmail.focus();
			return false;
		}
	if(!isokEmail(f.txtEmail.value))
		{
			alert("Check your email");
			f.txtEmail.focus();
			return false;
		}	
		
	f.submit();
}

function ValidateContactForm()
{
	var f = document.frmActive;	
	
	if(!f.txtName.value)
		{
			alert("Enter name");
			f.txtName.focus();
			return false;
		}
	if(!f.txtCompany.value)
		{
			alert("Enter company name");
			f.txtCompany.focus();
			return false;
		}
	if(!f.txtAddress.value)
		{
			alert("Enter address");
			f.txtAddress.focus();
			return false;
		}
	if(!f.txtPhone.value)
		{
			alert("Enter phone number");
			f.txtPhone.focus();
			return false;
		}
	if(!f.txtEmail.value)
		{
			alert("Enter email");
			f.txtEmail.focus();
			return false;
		}
	if(!isokEmail(f.txtEmail.value))
		{
			alert("Check your email");
			f.txtEmail.focus();
			return false;
		}	
		
	f.submit();
}

function isokEmail(string)
{
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}  

function check_map_link(MenuItem)
{
	var LINK = document.getElementById("pageLink" + MenuItem.toString());
		
	if(!LINK)
	{
		open_page(MenuItem);
		return false;
	}
}

function check_map_link_bottom(MenuItem)
{
	var LINK = document.getElementById("pageLink" + MenuItem.toString() + "_bottom");
		
		if(!LINK)
		{
			open_page(MenuItem);
			return false;
		}
}

function open_page(MenuItem)
{
	location.href = "page.aspx?cid=" + MenuItem + "&pid=0";
	return false;
}

// Rev. 09/07/2003

//var catStr = "";

function new_window(url) 
{ 
	var h;
	var w;
	var features;
	w = screen.availWidth-10;
	h = screen.availHeight-20;
	features = "width="+w+",height="+h;
	features += ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,left=0,top=0";

	link = window.open(url,"Link",features); 
} 

function Toggle(item) {
	
	var all_cats;
	var label;
	label = document.getElementById("incMenu_lblTest");
	if(label)
	{
		//id's vseh otkryvayuwihsya categories
		all_cats = label.innerHTML;
		var myArray = all_cats.split(",");
		//verhnee submenu chto nuzhno zakryt... esli nuzhno...		
		var sub_menu;
		//esli eto subcategory to nichego delat ne nado... 
		var parent;
		parent = false;
		//poluchit id iz item
		var item_id;
		item_id = item.substr(3, item.length - 1)
		
		var _num = 0;
		while(_num < myArray.length)
		{
			if(myArray[_num] == item_id)
			{
				parent = true;
			}	
			_num += 1;		
		}
		_num = 0;
		if(parent == true)
		{
			while(_num < myArray.length)
			{
				sub_menu = document.getElementById("sub"+myArray[_num]);
				if(sub_menu)
				{
					if(myArray[_num] != item_id)					
					{
						sub_menu.style.display="none";
					}					
				}
				_num += 1;
			}
		}		
	}
	//alert(item.indexOf("b"));
	//alert(item.length);
	//alert(item.substr(3, item.length - 1) + ",");
	
   obj=document.getElementById(item);
   if(obj)
   {
		visible=(obj.style.display!="none")
		//key=document.getElementById("x" + item);
		if (visible) {
			obj.style.display="none";
			//catStr = "";
			//key.innerHTML="<img src='folder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
		} else {			
			//alert("close all");
			//key.innerHTML="<img src='textfolder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
					/*
					var cat_count;
					for(cat_count=1;cat_count<=50;cat_count++)
					{
						var temp_cat;
						temp_cat = document.getElementById("sub" + cat_count.toString())
						if(temp_cat)
						{
							temp_cat.style.display= "none";
						}
					}
					*/
			obj.style.display="block";
			//catStr = catStr + item.substr(3, item.length - 1) + ",";
		}
	}
	
	//alert(catStr);
}

function Expand() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="block";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="<img src='textfolder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   }
}

function Collapse() {
   divs=document.getElementsByTagName("DIV");
   for (i=0;i<divs.length;i++) {
     divs[i].style.display="none";
     key=document.getElementById("x" + divs[i].id);
     key.innerHTML="<img src='folder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   }
}

function MenuScroll(obj){
	//alert(document.body.scrollTop);
}

function SetMenuFunction(){
	var menu = document.getElementById("divMenu");
	if(menu){
		menu.style.position = "absolute";
		var newX = document.body.scrollTop + 20;
		if(newX < 147){
			newX = 147;
		}
		//menu.style.left = 0;
		menu.style.top = newX;
	}
}

function SetHomePage(obj, url)
{
	obj.setHomePage(url);
	return false;
}
function replaceImg(obj,flag){
	if (flag==0) {
		obj.src="images/search_O.jpg";
	}
	else{
		obj.src="images/search.jpg";
	}
}
//window.setInterval("SetMenuFunction()", 1);
//-->

function OpenMeetingMovie()
{
	window.open("system/meeting/movie.html", "Movie", " width=820,height=620,resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no ");
	return false;
}

function PopUpNickName()
{
	window.open("system/meeting/tv.html", "PopUpNickName", " width=484,height=263,left=220,top=150 ")
}

function PopUpHelp()
{
	window.open("system/meeting/help.htm", "PopUpHelp", " width=620,height=700,left=320,top=0,scrollbars=yes ")
}

function AdjustWindow()
{
	try
	{
		window.scrollTo(0,0);
		document.getElementById("incSERVICE_frmLink").style.height=incSERVICE_frmLink.document.body.scrollHeight;
	}
	catch(e)
	{
	}

}

function GoHome()
{
location.href="default.aspx";
}

function showFloatBanner()
{

	alert("test");
}


function closeWindow()
		{
		document.all("PopUps").style.display='none';
		}
		
		function VIP ()
{
  
   var features = " width=600,height=500,left=150,top=150,resizable=no,scrollbars=no ";
	//window.open("https://club50.co.il/courses/pop_up/course_enrollment.aspx?cid="+number, "upload_window", features);
	window.open("/Club50/VIP/VIP_enrollment.aspx", "upload_window", features);
	
	return false;
}