﻿// JScript File
//<![[CDATA[
  function TranslateKey(keypress) { 
  if ( event.keyCode == 13)
 { event.keyCode = 9; } 
  } 
window.document.onkeydown = TranslateKey ; 

function openForm(theURL,winName)
{
//alert(theURL);
//alert(winName);
features = 'height = 768, width = 750, scrollbars = yes, resizable = yes, menubar = no,toolbar = no , left =30, top =30' ;
//window.open(theURL);
window.open(theURL,winName,features);
}
function openForm2(theURL,winName)
{
//alert(theURL);
//alert(winName);
features = 'height = 200, width = 200, scrollbars = no, resizable = no, menubar = no,toolbar = no , left =30, top =30' ;
//window.open(theURL);
window.open(theURL,winName,features);
}
function openForm3(theURL,winName)
{
//alert(theURL);
//alert(winName);
features = 'height = 400, width = 400, scrollbars = no, resizable = no, menubar = no,toolbar = no , left =30, top =30' ;
//window.open(theURL);
window.open(theURL,winName,features);
}
function dateonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
//alert(unicode);
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode!=47){ //if the key isn't the / key (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press
}}}

function alphabetsonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
// alert(unicode);
if (unicode!=8)  { //if the key isn't the backspace key (which we should allow)
if (unicode<65||unicode>90){ //if not a CAPITAL alphabet
if (unicode<97||unicode>122){ //if not a small alphabet
if (unicode!=32){ //if not A SPACE
return false //disable key press
}}}}}

function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
//alert(unicode);
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode!=190){ //if the key isn't the . (which we should allow)
if (unicode<48||unicode>57){ //if not a number
return false //disable key press
}}}}
//<input type="text" size=18 onkeypress="return numbersonly(event)">
//******************************************************************************************
function CallPrint(strid)

                        {

                        //var strid = "div1"

                        var prtContent = document.getElementById(strid);

                        var WinPrint = 

                        window.open('','','letf=0,top=0,width=750,height=768,toolbar=0,scrollbars=0,status=0');
                        WinPrint.document.write('<link href="../Css/StyleSheet.css" rel="stylesheet" type="text/css" />');
                        
                        WinPrint.document.write('<br>Note: <font size =2>BR = BIRTH REGISTRATION, DR=DEATH REGISTRATION, ');
                        WinPrint.document.write('DWC = DOMESTIC WATER CONNECTION, NDWC =NON DOMESTIC WATER CONNECTION,<BR>');
                        WinPrint.document.write('MU=MUTATION, TL = TRADE LICENCE</font><br><br>');
                        WinPrint.document.write(prtContent.innerHTML);
                        WinPrint.document.close();

                        WinPrint.focus();

                        WinPrint.print();

                        WinPrint.close();

                        }       
//******************************************************************************************
		
		
function printPage()
		{
		document.getElementById('print').style.visibility='hidden';
		if (typeof(window.print) != 'undefined')
			{
			window.print();
			}
		document.getElementById('print').style.visibility='';	
		}
		
	///===================================================================================
	
	function mouseover()
	{
	var open = document.getElementById("popup");
	open.style.visibility = "visible";
	
	}	
	
	
	function mouseout()
	{
	var open = document.getElementById("popup");
	open.style.visibility = "hidden";
	
	}	
		//]]>

