// <!--

function open_history(sID, sItem)
{
	var x= window.open("popup.php?id="+sID+"&item="+sItem, sID, "menu=no,toobar=no,resizable,scrollbars=1,width=500,height=700");
	if (x) x.focus();
	return false;
}

function open_popup(sID, sItem)
{
	var x= window.open("popup.php?id="+sID+"&item="+sItem, sID, "menu=no,toobar=no,resizable,scrollbars=1,width=400,height=300");
	if (x) x.focus();
	return false;
}
function open_partner(sID, sURL)
{
	var x= window.open(sURL, sID, "menu=no,toobar=no,resizable,scrollbars=1,width=600,height=340");
	if (x) x.focus();
	return false;
}
function open_image(sTitle, sFile)
{
	var x= window.open("playvideo.php?title="+sTitle+"&filename="+sFile, 'w1', "menu=no,toobar=no,resizable,scrollbars=1,width=840,height=580");
	if (x) x.focus();
	return false;
}
function open_image_old(sTitle, sFile)
{
	var x= window.open("playvideo1.php?title="+sTitle+"&filename="+sFile, 'w1', "menu=no,toobar=no,resizable,scrollbars=1,width=1024,height=742");
	if (x) x.focus();
	return false;
}
var wDemo= null;
function open_demo_now(sLang,sApp)
{
	wDemo= window.open("playdemo.php?lang="+sLang+"&app="+sApp, 'w2', "menu=no,toobar=no,resizable,scrollbars=1,width=1024,height=800");
	if (null != wDemo) setTimeout("wDemo.focus()",150);
	return false;
}
function open_demo(sLang,sApp)
{
	window.location.href= 'management-software-products.php?page=online&prod='+sApp;
	return false;
}
function my_submit(sFormId, sButton)
{
	document.forms[sFormId]["mode"].value= sButton;
	if (sButton == 'newsletter' && document.forms[sFormId]["nlemail"].value != '')
	{
		window.location.href= "http://www.gestix.com/lists/?p=subscribe&id=2&email=" + document.forms[sFormId]["nlemail"].value
			+ "&emailconfirm=" + document.forms[sFormId]["nlemail"].value;
	}
	return false;
	// document.forms[sFormId].submit();
}
function set_attrs()
{
	var obj= document.getElementById('contact_link');
	if (null != obj)
	{
		var Attrs= obj.attributes;
		for (jj= 0; jj < Attrs.length; jj++)
		{
			if (Attrs[jj].nodeName=='class' || Attrs[jj].nodeName=='CLASS')
			{
				if (Attrs[jj].nodeValue == 'contact_noblink')
				{
					Attrs[jj].nodeValue=  'contact_blink';
					window.setTimeout("set_attrs()", 1908);
				}
				else
				{
					Attrs[jj].nodeValue=  'contact_noblink';
					window.setTimeout("set_attrs()", 7771);
				}
				break;
			}
		}
	}
	
}

// -->