<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function varitext(text){
text=document
print(text)
}
//  End -->


function openWindow(winName) {
	newWindow = window.open(winName, "newWin", "toolbar=no,location=no,scrollbars=yes,resizeable=yes,width=800,height=600,left=0,top=0")
}

supportWindow=null

function openSupport(supportName) {
if (supportWindow && !supportWindow.closed) {
supportWindow.close()
}
	supportWindow = window.open(supportName, "supportWin", "toolbar=no,location=no,scrollbars=yes,resizeable=yes,width=600,height=400,left=200,top=0")
}

function closeSupport(supportName) {
if (supportWindow && !supportWindow.closed) {
supportWindow.close()
}
}

taskWindow=null

function openTask(taskName) {
	if (taskWindow && !taskWindow.closed) {
	taskWindow.close()
	}
	
	taskWindow = window.open(taskName, "taskWin", "toolbar=no,location=no,scrollbars=yes,resizeable=yes,width=700,height=600,left=0,top=0")
}

function closeTask(taskName) {
if (taskWindow && !taskWindow.closed) {
taskWindow.close()
}
}

scWidth=screen.width-10
scHeight=screen.height-200

function newWindow(winName) {
demoWindow = window.open(winName, "demoWin", "toolbar=yes,menubar=yes,resizeable=yes,status=yes,location=yes,width="+scWidth+",height="+scHeight+",left=0,top=0")
}

function toggle(element) {
var nSpan = document.getElementById(element);
if (nSpan.style.display == 'none') {
	nSpan.style.display = 'block';
	}
else {
	nSpan.style.display = 'none'
	}
}