function __gohome(){
	top.location.href = __get_application_path();
}
		
function __search(searchId){
	self.location.href = __get_page_file() + '.asp?pageid='+searchId
}
		
function __print(pageId,template){
	window.open('print.asp?pageId='+pageId+'&template='+template,'printwin','loaction=0,status=0');
}
		
function __get_page_file(){
	tmpURL = document.location.toString();
	var myArray = tmpURL.split('/');
	fileName = myArray[myArray.length-1]
	it = fileName.indexOf('.')
	return fileName.substring(0,it)
}
		
function __get_application_path(){
	completePath = document.location.toString();
	var myPathArray = completePath.split('/');
	applicationPath = '';
	for(i = 0; i < myPathArray.length-1; i++){
		applicationPath += myPathArray[i] + '/';
	}
			
	return applicationPath
}

function __image_hover(node){
	if(node.getAttribute('srcOver') != null){
		node.setAttribute('src',node.getAttribute('srcOver'));
	}
}

function __image_dehover(node){
	if(node.getAttribute('srcOut') != null){
		node.setAttribute('src',node.getAttribute('srcOut'));
	}
}