﻿function moveDiv(dName, appendTo){
    document.getElementById(appendTo).appendChild(document.getElementById(dName));
}
function SetupPrintMenu(){
	var Nodes = document.all.rptMenu.children;
	if(Nodes!=null){
		for(var i=0;i<Nodes.length;i++){
			Nodes.item(i).firstChild.firstChild.style.width = document.all.rptMenu.scrollWidth;
		}
	}
    document.all.rptListing.style.left = document.all.Print.offsetLeft + document.all.nav.offsetLeft - 9;
    document.all.rptListing.style.top = document.all.Print.offsetTop + 9;
}
function SetupDeleteMenu(){
	var Nodes = document.all.delMenu.children;
	if(Nodes!=null){
		for(var i=0;i<Nodes.length;i++){
			Nodes.item(i).firstChild.firstChild.style.width = document.all.delMenu.scrollWidth;
		}
	}
	document.all.delListing.style.left = document.all.Delete.offsetLeft + document.all.nav.offsetLeft - 9;
    document.all.delListing.style.top = document.all.Delete.offsetTop + 9;
}
function SetupEmailMenu(){
	var Nodes = document.all.emailMenu.children;
	if(Nodes!=null){
		for(var i=0;i<Nodes.length;i++){
			Nodes.item(i).firstChild.firstChild.style.width = document.all.emailMenu.scrollWidth;
		}
	}
	document.all.emailListing.style.left = document.all.Email.offsetLeft + document.all.nav.offsetLeft - 9;
    document.all.emailListing.style.top = document.all.Email.offsetTop + 9;
}