function helpWindow(url) {
	hWindow = window.open(url, 'helpwindow', 'height=300,width=450,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0,dependant=1,alwaysRaised=1');
	hWindow.focus();
	return false;
}

function helpWindow2(url,width) {
	hWindow = window.open(url, 'helpwindow'+width, 'height=300,width='+width+',menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,dependant=1,alwaysRaised=1');
	hWindow.focus();
	return false;
}

function popupInfoWindow(srcLink, url) {
	hWindow = window.open('', 'popupInfo', 'height=400,width=560,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,dependant=1,alwaysRaised=1');
	hWindow.focus();
	srcLink.target = 'popupInfo';
	srcLink.href = url;
	return true;
}

function closeAllWindows() {
	document.getElementById('101').style.visibility = 'hidden'
	document.getElementById('102').style.visibility = 'hidden'
	document.getElementById('103').style.visibility = 'hidden'
}

function selectDisable() {
	var sElement = document.getElementsByTagName('select')
	if (!sElement.item(0)) {
		// Do nothing
	} else {
		var n=0;
		do { 
			sElement.item(n).style.visibility = 'hidden';
		} while(++n < sElement.length);
	}
	var sObject = document.getElementsByTagName('object')
	if (!sObject.item(0)) {
		// Do nothing
	} else {
		var n2=0;
		do { 
			if(sObject.item(n2).id != 'demo') {
				sObject.item(n2).style.visibility = 'hidden';
			}
		} while(++n2 < sObject.length);
	}
	return true;
}

function selectEnable() {
	var sElement = document.getElementsByTagName('select')
	if (!sElement.item(0))	{
		// Do nothing
	} else	{
		var n=0;
		do {
			sElement.item(n).style.visibility = 'visible';
		} while(++n < sElement.length);
	}
	var sObject = document.getElementsByTagName('object')
	if (!sObject.item(0))	{
		// Do nothing
	} else	{
		var n2=0;
		do {
			sObject.item(n2).style.visibility = 'visible';
		} while(++n2 < sObject.length);
	}
	return true;
}

