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 itwSetTitleMember(strTitle) 
{
	if (parent.adminFrTree)
	{
		top.document.title = strTitle;
//		parent.adminFrTree.location.reload();
	}
	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(strElement)
{
	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;
			}
			if (strElement > '')
			{
				if (window.opener.document['Form1'].elements[strElement])
				{
					window.opener.document['Form1'].elements[strElement].value = document['Form1'].hdnAbcMemberNo.value;
				}
			}			
		}
	}
	window.close();
}

function itwAbcCoordinateReturn()
{
	if (window.opener)
	{
			if (window.opener.document.Form1.uiHdn_CoordidObj)
			{
				window.opener.document.Form1.uiHdn_CoordidObj.value = document['Form1'].hdnidObj.value;
				window.opener.document.Form1.uiTbx_CoordZipCode.value = document['Form1'].hdnZipCode.value;
				window.opener.document.Form1.uiTbx_CoordLocation.value = document['Form1'].hdnLocation.value;
				window.opener.document.Form1.uiTbx_CoordLatitude.value = document['Form1'].hdnLatitude.value;
				window.opener.document.Form1.uiTbx_CoordLongitude.value = document['Form1'].hdnLongitude.value;
			}
	}
	window.close();
}

function itwAbcProductGroupReturn()
{
	if (window.opener)
	{
			if (window.opener.document.Form1.uiHdn_idCatProductGroup)
			{
				window.opener.document.Form1.uiHdn_idCatProductGroup.value = document['Form1'].uiHdn_idCatProductGroup.value;
				window.opener.document.Form1.uiTbx_ProductGroup.value = document['Form1'].uiHdn_ProductGroup.value;
			}
	}
	window.close();
}

function itwVoucherReturn(strElement)
{
	if (window.opener)
	{
			if (window.opener.document.Form1.uiTbx_idFromVoucher)
			{
				window.opener.document.Form1.uiTbx_idFromVoucher.value = document['Form1'].hdnIdFromVoucher.value;
			}
			if (strElement > '')
			{
				if (window.opener.document['Form1'].elements[strElement])
				{
					window.opener.document['Form1'].elements[strElement].value = document['Form1'].hdnAbcMemberNo.value;
				}
			}			
	}
	window.close();
}
