<!--
var windowCount = 1;

function showModal(msg) {
	alert(msg);
}

function closeFrame() {
	self.close();
}

function changePage() {
	if (self.parent.frames.length != 0)
		self.parent.location = document.location;
}

function gonext(thePage) {
	i = window.opener;	
	if (i == null) {
		document.location = thePage;
	}
	else {
		opener.location = thePage;
	    self.close();
	}
}

function changeHREF(theAnchor, theLink, theWidth, theHeight) {
	theAnchor.href = theLink;
}

function openFRAME(theAnchor, theFile, aWidth, aHeight) {
	var windowName = 'Window'+windowCount;
	var theLink = 'JavaScript:openNewWindow(\''+theFile+'\',\''+windowName+'\','+aWidth+','+aHeight+')';
	theAnchor.href = theLink;
	theAnchor.target = "";
}

function openNewWindow(fileName,windowName,theWidth,theHeight) {
	window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight);
	windowCount++;
}

function changePRINT(theAnchor, theFile, aWidth, aHeight) {
	var windowName = 'Window'+windowCount;
	var theLink = 'JavaScript:openPRINTWindow(\''+theFile+'\',\''+windowName+'\','+aWidth+','+aHeight+')';
	theAnchor.href = theLink;
	theAnchor.target = "";
}

function openPRINTWindow(fileName,windowName,theWidth,theHeight) {
	window.open(fileName,windowName,"toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight);
	windowCount++;
}

//-->
