﻿function itwTest() 
{
	alert("hallo");
}

function itwSetFrame() 
{
	if (parent.adminFrTree)
	{
		parent.adminFrTree.location.reload();
	}
}

function itwSetTitle(strTitle) 
{
	if (parent.adminFrTree)
	{
		top.document.title = strTitle;
	}
	this.focus();
}

function itwBack(strURL) 
{
	if (strURL == "")
	{
		history.back();
	}
	else
	{
		window.location = strURL;
	}
}

function itwWin(strURL, strFrame)
{
	window.open(strURL,strFrame);
}

function itwPopwin(strURL,width,height)
{
	var iWidth = 640;
	var iHeight = 480;
	
	if (width != null)
	{
		iWidth = width;
	}
	
	if (height != null)
	{
		iHeight = height;
	}

	window.open(strURL,"","width=" + iWidth + ",height=" + iHeight + ",resizable=yes,scrollbars=yes,menu=no,toolbar=no,status=no,hotkeys=no")
}

function itwAbcMemberReturn()
{
	if (window.opener)
	{
		if (window.opener.document.Form1)
		{
			if (window.opener.document.Form1.uiTbxabcMemberNo)
			{
				window.opener.document.Form1.uiTbxabcMemberNo.value = document['Form1'].hdnAbcMemberNo.value;
				window.opener.document.Form1.uiTbxCompanyName.value = document['Form1'].hdnCompanyName.value;
				window.opener.document.Form1.uiTbxPhone.value = document['Form1'].hdnPhone.value;
				window.opener.document.Form1.uiTbxFax.value = document['Form1'].hdnFax.value;
				window.opener.document.Form1.uiTbxEmail.value = document['Form1'].hdnEmail.value;
			}
		}
	}
	window.close();
}

function abcPrintWin( strURL )
{
	window.open(strURL,"","left=15,top=15,width=640,height=480,resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=no,status=yes,hotkeys=no");
}


function mouseoverRegionMenu(menu) {
	document.getElementById(menu).style.display = "inline";
}

function mouseoutFromRegionMenu(menu) {
	document.getElementById("menu1").style.display = "none";
}





