// JavaScript Document

function open_new_window(pURL,name,features){
	new_window = window.open(pURL,name,features);
	new_window.focus();
}


function showItem(newItem) {
	var item = null;
	item = document.getElementById(newItem);
	item.style.display = 'block';
}

function hideItem(newItem) {
	var item = null;
	item = document.getElementById(newItem);
	item.style.display = 'none';
}

function growItem(newItem, itemWidth, itemHeight) {
	var item = null;
	newWidth == (itemWidth * 1.25);
	newHeight == (itemHeight * 1.25);
	item = document.getElementById(newItem);
	item.style.width = newWidth + 'px';
	item.style.height = newHeight + 'px';
}

function shrinkItem(newItem, itemWidth, itemHeight) {
	var item = null;
	newWidth == (itemWidth * 0.8);
	newHeight == (itemHeight * 0.8);
	item = document.getElementById(newItem);
	item.style.width = newWidth + 'px';
	item.style.height = newHeight + 'px';
}

function showItemBorder(newItem, borderNewWidth, borderNewColor) {
	var item = null;
	item = document.getElementById(newItem);
	item.style.border = borderNewWidth + 'px solid #' + borderNewColor;
}

function hideItemBorder(newItem, borderOriginalWidth, borderOriginalColor) {
	var item = null;
	item = document.getElementById(newItem);
	item.style.border = borderOriginalWidth + 'px solid #' + borderOriginalColor;
}

function indicatePage(newItem, newColor) {
	var item = null;
	item = document.getElementById(newItem);
	item.style.color = '#' + newColor;
	item.style.fontWeight = 'bold';
}

function AdjustSize(d,w,h)
	{
	   document.getElementById(d).width = w;
	   document.getElementById(d).height = h;
	}
