function printPage() {
	if (window.print) document.write('<p><a href="#" onclick="window.print(); return false;"><img src="/tpl/img/icon-print-page.gif" width="23" height="18" alt="Print this page"> Print this page</a></p>' );
}

// Hide/Show section details
function displayLinks(arrayID){
	if(document.getElementById(arrayID).style.display == 'block'){
		document.getElementById(arrayID).style.display='none';
	}
	else{
		for(i=0; i< divArray.length;i++){
			if(document.getElementById(divArray[i]).style.display =='block'){
				document.getElementById(divArray[i]).style.display='none';
			}
		}
		document.getElementById(arrayID).style.display='block';
	}
}

function hideAlldisplayLinks(max) {
	for (var i=1;i<=max;i++) {
		document.getElementById('linkdiv'+i).style.display = "none";
	}
}

// Pop up script
function oWin(url,width,height,name) {
	if (typeof(name)=="undefined") name="w"+new Date().getTime();
	if ((typeof(window["win_"+name])=="object")&&!window["win_"+name].closed) {
		window["win_"+name].location = url;
	} else {
		window["win_"+name]=window.open(url,name,"location=0,status=0,resizable=1,menubar=0,directories=0,width="+width+",height="+height);
	}
	window["win_"+name].focus();
}

function oWinWithScroll(url,width,height,name) {
	if (typeof(name)=="undefined") name="w"+new Date().getTime();
	if ((typeof(window["win_"+name])=="object")&&!window["win_"+name].closed) {
		window["win_"+name].location = url;
	} else {
		window["win_"+name]=window.open(url,name,"scrollbars=1,location=0,status=0,resizable=1,menubar=0,directories=0,width="+width+",height="+height);
	}
	window["win_"+name].focus();
}