var pageLocation;
var pageSSLLocation;

function changePage(value, SSL) {
	if (SSL == true) {
//		window.location.href = ('http://localhost/hfdevelopment/' + value);
	} else {
//		window.location.href = ('http://localhost/hfdevelopment/' + value);
	}
}

function commentsOpener(thisURL, thisWidth, thisHeight){
	window.open(thisURL,"comments","toolbar=no,width=" + thisWidth + ",height=" + thisHeight + ",top=30,left=30, location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,hotkeys=0");
	return true
}

function confirmCancel(value) {
	var inputCheck;
	inputCheck = confirm("Are you sure you want to cancel? Press OK to confirm");
	
	if (inputCheck == true) {
		window.location = value;
	}
	return true
}

function confirmValidation(value) {
	alert(value);
}

function NodeClick(treeId, nodeId) {
	var node = igtree_getNodeById(nodeId);

	if (node.getExpanded() == false) {
		if (node.hasChildren() == true) { node.setExpanded(true); }
	} else {
		if (node.hasChildren() == true) { node.setExpanded(false); }
	}
}

function ScrollToTop(){
	window.scrollTo(0,0);
}
 