
		//Generating Pop-up Print Preview page
		function getPrint(print_area)
		{	
			//Creating new page
			var pp = window.open();
			//Adding HTML opening tag with <HEAD> … </HEAD> portion 
			pp.document.writeln('<HTML><HEAD><title>Print Preview</title><LINK href=Styles.css  type="text/css" rel="stylesheet">')
			pp.document.writeln('<LINK href=PrintStyle.css  type="text/css" rel="stylesheet" media="print"><base target="_self"></HEAD>')
			//Adding Body Tag
			pp.document.writeln('<body MS_POSITIONING="GridLayout" bottomMargin="0" leftMargin="10" topMargin="0" rightMargin="0">');
			//Adding form Tag
			pp.document.writeln('<form  method="post">');
			//Creating two buttons Print and Close within a table
			pp.document.writeln('<TABLE width=100%><TR><TD></TD></TR><TR><TD align=right><INPUT ID="PRINT" type="button" value="Print" onclick="javascript:location.reload(true);window.print();"><INPUT ID="CLOSE" type="button" value="Close" onclick="window.close();"></TD></TR><TR><TD></TD></TR></TABLE>');
			//Writing print area of the calling page
			pp.document.writeln(document.getElementById(print_area).innerHTML);
			//Ending Tag of </form>, </body> and </HTML>
			pp.document.writeln('</form></body></HTML>');			
			
		}
		
		/*******************************************************
	This function is to open the Printable Receipt 
	as a popup and to submit the form to the backend
	Cognizant
********************************************************/
function submitPopWindow(frmid, width, height) {
	var features = "resizable=1,scrollbars=1,width=" + width + ",height=" + height;
	var frm = YAHOO.util.Dom.get(frmid);
	var win = window.open("", "popupWin", features)
	frm.target = 'popupWin';

	win.focus();
}


function openPostal(divPost) { 
  
features = 
   'toolbar=no, location=no, directories=no, status=no, menubar=no, ' +
   'scrollbars=no, resizable=no, width=270, height=580' 
dlg = window.open ("","Dialog",features) 
dlg.document.write ("<HTML><HEAD><title>Philippines Postal Code</title></HEAD><BODY bgColor='white' text='black' alink='#cc0000' link='#663333' style='text-decoration:none; '>") 
dlg.document.write ("<H2><CENTER>","","</CENTER></H2>") 
dlg.document.write ("<FORM><CENTER>") 
dlg.document.write (document.getElementById(divPost).innerHTML) 
dlg.document.write ("</CENTER></FORM></BODY></HTML>") 
dlg.document.close()
} 
 
 
		