/*########################################################################*\	Developed by 		: Jerry van Heerikhuize	Version				: 1.0.0	Creation Date		: 2/7/06	Modification Date	: 12/05/07	Creation by			: Jerry van Heerikhuize	Modification by		: Jeroen Schoonderbeek	Description			: Print function	File				: print.js	ID					: 9931711E-3689-4EC3-AC00-E139D163636B\*########################################################################*/printArea = function(printareaId) {		/* set popheight and width */	var popup_height = 500;	var popup_width = 575;	var w = window.open('','','height=' + popup_height + ',width=' + popup_width + ',toolbar=yes,scrollbars=yes')		/* Center popup window */	var intwidt;	var intheight;	intwidth = screen.availWidth;	intheight = screen.availHeight;	intwidth = parseInt (intwidth);	intheight = parseInt (intheight);	if (intwidth > 0 && intheight > 0){		w.moveTo ( ( ( intwidth-popup_width ) / 2 ), ( ( intheight - popup_height ) / 2) );		w.focus();	}			var printarea = document.getElementById(printareaId);		if (printarea == null) {				alert("no print area defined");	} else {			var str = '<html>\n';		str +=	'<head>\n';		str += '<link href="cmnrcs/css/private.css" charset="utf-8" rel="stylesheet" type="text/css" />';		str += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n';		str += '<title>print</title>';		str += '</head>\n';		str += '<body onload="setTimeout(\'window.print()\', 250); ">\n';		str += '<img src="imgs/search_button.gif" /><br /><div id="p-article">' + printarea.innerHTML;		str += '<span style="margin-left:5px;color:#AAA;"><br /><br /><strong>MeeQ Interaction Design</strong><br /></span>';		str += '</div></body></html>\n';				//alert (str);				w.document.open();				w.document.write(str);				w.document.close();	}	};
