
function jsPrint() {
	
	adress='print.pbs';

	printwindow=window.open('',"print","width=700,height=480,scrollbars,menubar");
	
	var frm = document.createElement('form');
	var obj = (document.getElementById('main-content')?document.getElementById('main-content'):document.getElementById('content'));
	var cnt = document.createElement('input');
	cnt.type = 'hidden';
	cnt.name = 'content';
	cnt.value = obj.innerHTML;

	frm.method = 'post';
	frm.action = adress;
	frm.target = 'print';
	frm.appendChild(cnt);
	
	document.body.appendChild(frm);
	
	frm.submit();
	printwindow.focus();
	
}
/** remove img from Marika**/
function removeImg() {
	var isWindows = (navigator.userAgent.indexOf("Win") != -1) ? true: false;
	var howMany = document.images.length;
	var i;
	if(isWindows){
		if (isIE || gecko){
			for (i=11;i<=howMany;i++){
				document.images[i].style.visibility = 'hidden';
				document.images[i].height = '';
				document.images[i].width = '';
			}
		} else {
			document.images[11].src = "../images/dot.gif";
		}
	} else {
		document.images[11].src = "../images/dot.gif";
	}
}

