function printFrame(){	if (document.getElementById != null)	{		var html = '<HTML>\n<HEAD>\n';		if (document.getElementsByTagName != null)		{			var headTags = document.getElementsByTagName("head");			if (headTags.length > 0)				html += headTags[0].innerHTML;		}		html +='\n<LINK href=CSS/Print.css type=text/css rel=stylesheet>\n'		html += '\n</HE' + 'AD>\n<BO' + 'DY TOPMARGIN=10 LEFTMARGIN=10>\n'		html += '\n<BR><BR>\n';		var printReadyElem = document.getElementById("printFrame");		var gAutoPrint = false; // Aseta true jos haluat ett‰ tulostaa automaattisesti avautumisen j‰lkeen				if (printReadyElem != null)		{				html += printReadyElem.innerHTML;		}		else		{			alert("Sivulle ei ole asetettu tulostettavaa aluetta");			return;		}					html += '\n</BO' + 'DY>\n</HT' + 'ML>';				var printWin = window.open("","printFrame");		printWin.document.open();		printWin.document.write(html);		printWin.document.close();		if (gAutoPrint)			printWin.print();	}	else	{		alert("Pahoittelumme, tulostusominaisuus toimii ainoastaan uusimmissa selaimissa..");	}}function popDel(src)    {      var ret;      ret = confirm("Haluatko varmasti poistaa tietueen?");      if(ret!=false)       window.open(src,"del" , "top=1,left=1,width=10,height=10,resizable=0,scrollbars=0,z-lock=0");      self.focus();    }
