	function openWorkOrderResolution(ID){
		openPopup("Resolution.aspx?WoID=" + ID, 400, 400);
	}
	function openWorkOrderDetails(ID){
		openPopup("Details.aspx?WoID=" + ID, 400, 420);
	}
	
	function openPopup(Location, Width, Height){
		window.open(Location,"","width=" + Width + ",height=" + Height + ",top=" + generateTop(Height) + ",left=" + generateLeft(Width) + ", status=yes");
	}
	function generateLeft(Width){
		return (screen.width - Width) / 2;
	}
	function generateTop(Height){
		return (screen.height - Height) /2;
	}
	function setDate(type){
		openPopup('DateTimeSelector.aspx?DateType=' + type, 285, 290);
	}
	function setTechnicians(){
		openPopup('TechnicianSelector.aspx', 400, 350);
	}
	function setRequester(){
		openPopup('GetCollection.aspx', 400, 350);
	}

	function AddToRight(listLeftID, listRightID){
		if(document.getElementById){
			var listLeft = document.getElementById(listLeftID);
			var listRight = document.getElementById(listRightID);
			var listLeftSelectedIndex = listLeft.selectedIndex;
			
			if(listLeftSelectedIndex > -1){
				var newOption = new Option(listLeft.options[listLeftSelectedIndex].value, listLeft.options[listLeftSelectedIndex].value);
				listRight.options[listRight.options.length] = newOption;
				listLeft.options[listLeftSelectedIndex] = null;
			}
			else{
				alert("Please select a technician from the list at left.");
			}
		
		}
	}
			
	function AddToLeft(listLeftID, listRightID){
		if(document.getElementById){
			var listLeft = document.getElementById(listLeftID);
			var listRight = document.getElementById(listRightID);
			var listRightSelectedIndex = listRight.selectedIndex;
			
			if(listRightSelectedIndex > -1){
				var newOption = new Option(listRight.options[listRightSelectedIndex].value, listRight.options[listRightSelectedIndex].value);
				listLeft.options[listLeft.options.length] = newOption;
				listRight.options[listRightSelectedIndex] = null;
			}
			else{
				alert('Please select a technician to remove from the list at right.');
			}
		
		}

	}
	

	
	
