// Set Plug&play function.



// Main Javascript function.
function main() {

	}

// Generic Roll Over for Gif.	
function roll(id,state) {
	if(state == "off") state = 0;
	else if(state == "on") state = 1;

	state = (state) ? "_on" : "_off";
	document.images[id].src =  "Images/" + id + state + ".gif";
	}	
	
// Generic Popup window Function
function popWin(url,w,h,scroll,tools,name,center) {
	var str = "height=" + h + ",innerHeight=" + h;
	str += ",width=" + w + ",innerWidth=" + w;
	if(!center) var center = false;
	if(!scroll) scroll = 0;
	if(!tools) tools = 0;
	if(!name) name = "pop";
	if((window.screen) && (center)) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		var xc = (aw - w) / 2;
		var yc = (ah - h) / 2;
		str += ",left=" + xc + ",screenX=" + xc;
		str += ",top=" + yc + ",screenY=" + yc;
		}
	pop = window.open(url,name,'toolbar=' + tools + ',location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizable=1,' + str).focus();
	}		