	// JavaScript Document
	function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
	}
	
	// print function
	function printArea(){
		var win='',printContent='';
		var header='',footer='',winWidth=458;
		
		header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n';
		header+= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n';
		header+= '<head>\n';
		header+= '<title>Print</title>\n';
		header+= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n';
		header+= '<link rel="stylesheet" type="text/css" href="fileadmin/templates/css/en/style.css" />\n';
		header+= '</head><body style="background:#fff;"><div id="printArea">\n';
		header+= '<a class="print" onclick="window.print();return false;" href="#"></a>\n';
		footer = '\n</div></body></html>';
		
		if(window.document.getElementById('printBigColumn')) winWidth=900;
			
		
		win = window.open("","printOut", "width="+winWidth+",height=550,menubar=no,resizeable=yes,scrollbars=yes");

		printContent = getContent();
		
		win.document.writeln(header);
		win.document.writeln(printContent);
		win.document.writeln(footer);
		win.document.close();
		return;
	}
	
	// get data from div
	function getContent(){
		var printContent;
		
		if(window.document.getElementById('maiddle_m')){
			printContent = window.document.getElementById('maiddle_m').innerHTML;
		}else{
			printContent = window.document.getElementById('printBigColumn').innerHTML;
		}
		
		return printContent;
	}		
