﻿function showMovie()
{
	var win = window.open ('video_coming_soon.htm', "", "menubar=no, adress=no, resizable=yes, scrollbars=no, width=400, height=420", true);
	win.focus();
}
function showThanks()
{
	var win = window.open ('Thanks.aspx', "", "menubar=no, adress=no, resizable=no, scrollbars=no, width=760, height=680", true);
	win.moveTo(20,20);
	win.focus();
}
function openOrder(id)
{
	var win = window.open ("/Site/Modules/Catalog/OrderDetailsSite.aspx?ID=" + id, "pic", "menubar=no, adress=no, resizable=no, scrollbars=yes, width=800, height=600");
	win.moveTo(10,10);
	win.focus();
}

function newMessage()
{
	document.getElementById('newMessage').style.display='inline';
	document.getElementById('messageID').value='';
	window.scroll(10,100000);
}

function replyToMessage(messageID, from, body)
{

	document.getElementById('originalUsername').innerHTML='תגובה להודעה מאת: '+from;
	//document.getElementById('originalBodyText').innerHTML=body;
	//document.getElementById('newMessage').style.display='inline';
	document.getElementById('messageID').value=messageID;
	//alert(document.getElementById('messageID').value);
	
	window.scroll(10,100000);
}

function openMessage(ID)
{
	var win = window.open ("/Site/Modules/Users/ShowMessage.aspx?ID=" + ID, "pic", "menubar=no, adress=no, resizable=no, scrollbars=no, width=400, height=400");
	win.moveTo(10,10);
	win.focus();
}

function openEmoticons(target)
{
	var win = window.open ("/Site/Modules/LinearForum/Emoticons.aspx?target=" + target, "pic", "menubar=no, adress=no, resizable=yes, scrollbars=no, width=400, height=400");
	win.moveTo(10,10);
	win.focus();
}

function CreateFlashControl(DivID, WIDTH, HEIGHT, URL, WMODE,MENU)
{
  var d = document.getElementById(DivID);
	
	FlObj='<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0  width=' + WIDTH + ' height=' + HEIGHT +'>'
	FlObj=FlObj+'<param name="movie" value=' + URL + '>'
	FlObj=FlObj+'<param name="wmode" value=' + WMODE + '>'	
	FlObj=FlObj+'<param name="menu" value=' + MENU + '>'
	FlObj=FlObj+'<embed src='+ URL +'  wmode=' + WMODE + ' quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=' + WIDTH + ' height=' + HEIGHT +'></embed></object>'
d.innerHTML =FlObj;	
	
}