function new_window2(url, height){
	newwin1= open(url,"wndwname","toolbar=no,directories=no,menubar=no,status=no,scrollbars=no");
if (document.all){
newwin1.moveTo(0,0)
newwin1.resizeTo(screen.width,height)
}}

function fncLinkEmailAddress(FirstPart, Message, declareClass, linkWord){

	var domain=('magnatech.com');

	var eMaddress=(FirstPart + '@' + domain);

	return ('<A href="mailto:' + eMaddress + Message + '" class="' + declareClass +'">' + linkWord + '</A>');

}

function fncEmailAddress(FirstPart, Message){

	var domain=('magnatech.com');

	var eMaddress=(FirstPart + '@' + domain);

	return ('<A href="mailto:' + eMaddress + Message + '">' + eMaddress + '</A>');

}

function fncMailTo(FirstPart, Message){

	var domain=('magnatech.com');

	var eMaddress=(FirstPart + '@' + domain);

	return ('<A href="mailto:' + eMaddress + Message + '">');

}

function copyDate() {
  var cpyrt = document.getElementById("copyright")
  if (cpyrt) {
     cpyrt.firstChild.nodeValue = (new Date()).getFullYear();
  }
  var cpyrt = document.getElementById("copyright2")
  if (cpyrt) {
     cpyrt.firstChild.nodeValue = (new Date()).getFullYear();
  }
}

window.onload = copyDate;

function fncMaximizeWindow()  {

	window.moveTo(0,0);

	if (document.all) {

	window.resizeTo(screen.availWidth,screen.availHeight);

	}

	else if (document.layers) {

	if

	(window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)

	{

	window.outerHeight = screen.availHeight;

	window.outerWidth = screen.availWidth;

	}

	}



}

function popup_window( url, id, width, height )
	{
	   //extract the url parameters if any, and pass them to the called html
	   var tempvar=document.location.toString(); // fetch the URL string
	   var passedparams = tempvar.lastIndexOf("?");
	   if(passedparams > -1)
		  url += tempvar.substring(passedparams);
	  popup = window.open( url, id, 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,top=10,left=10,width=' + width + ',height=' + height + '' );
	  popup.focus();
}

function popup_noscroll( url, id, width, height )
	{
	   //extract the url parameters if any, and pass them to the called html
	   var tempvar=document.location.toString(); // fetch the URL string
	   var passedparams = tempvar.lastIndexOf("?");
	   if(passedparams > -1)
		  url += tempvar.substring(passedparams);
	  popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=yes,top=0,left=0,width=' + width + ',height=' + height + '' );
	  popup.focus();
}

define0=new Image()
define0.src="http://magna.magnatech.com/help/common_images/more_off.gif"
define1=new Image()
define1.src="http://magna.magnatech.com/help/common_images/more_on.gif"

preload=new Array(2)
preload[0]=define0
preload[1]=define1

defyne0=new Image()
defyne0.src="http://magna.magnatech.com/help/common_images/next-01.gif"
defyne1=new Image()
defyne1.src="http://magna.magnatech.com/help/common_images/next-02.gif"

preload2=new Array(2)
preload2[0]=defyne0
preload2[1]=defyne1


/* Robert's scripts below - 1st in pair is for home page, 2nd in pair (openXDemoMT_3) is for pages in MT_3 folder */

/* MYSTIC DEMO */
function openMysticDemo()
{
	window.open("Mystic_demo/00_Mystic.html","mystic1","top=10,left=10,scrollbars=1,resizable=1,width=740,height=500");
}

function openMysticDemoMT_3()
{
	window.open("Mystic_demo/00_Mystic.html","mystic1","top=10,left=10,scrollbars=1,resizable=1,width=740,height=500");
}

/* IMAGIC DEMO */
function openImagicDemo()
{
	window.open("iMagic_demo/iMagic_demo_01.html","imagic1","top=0,left=0,scrollbars=1,resizable=1,width=800,height=500");
}

function openImagicDemoMT_3()
{
	window.open("iMagic_demo/iMagic_demo_01.html","imagic1","top=0,left=0,scrollbars=1,resizable=1,width=800,height=500");
}

/* UTM DEMO */
function openUtmDemo()
{
	window.open("UTM_demo/UTM_no_sound.html","utm1","top=10,left=10,scrollbars=1,resizable=1,width=740,height=430");
}

function openUtmDemoMT_3()
{
	window.open("UTM_demo/UTM_no_sound.html","utm1","top=10,left=10,scrollbars=1,resizable=1,width=740,height=430");
}

/* TRIP DEMO */
function openTripDemo()
{
	window.open("TRIP_demo/index.html","utm1","top=0,left=0,scrollbars=1,resizable=1,width=790,height=570");
}

function openTripDemoMT_3()
{
	window.open("TRIP_demo/index.html","utm1","top=0,left=0,scrollbars=0,resizable=1,width=800,height=500");
}

/* GM DEMO */
function openGmDemo()
{
	window.open("GM_demo/01_MGM_demo.html","utm1","top=0,left=0,scrollbars=1,resizable=1,width=800,height=500");
}

function openGmDemoMT_3()
{
	window.open("GM_demo/01_MGM_demo.html","utm1","top=0,left=0,scrollbars=1,resizable=1,width=800,height=500");
}

/* ON-QUEUE DEMO */
function openOnQ_Demo()
{
	window.open("http://magna.magnatech.com/OnQ_demo/","OnQ1","top=0,left=0,scrollbars=1,resizable=1,width=790,height=570");
}

/* ON-VIEW DEMO */
function openOnView_Demo()
{
	window.open("http://magna.magnatech.com/OnView/","OnV1","top=0,left=0,scrollbars=1,resizable=1,width=790,height=570");
}

/* ClientQ DEMO */
function openClientQ_Demo()
{
	window.open("http://magna.magnatech.com/ClientQ_MT/","ClientQ1","top=0,left=0,scrollbars=1,resizable=1,width=1050,height=823");
}