var scrlStr = "Welcome to the Official Web Site of District Jammu(J&K) - India- The Winter Capital of J&K"
var width=150;
var strLen=scrlStr.length;
var pos=1-width;                

function type()
{
    var type = "";                
    pos++;                          
    if(pos==strLen)              

       pos=1-width;            

    if(pos<0)
      {                   
       var i=Math.abs(pos);
		type=scrlStr.substring(0,width-i+1);
      }
    else
      type=type+scrlStr.substring(pos,pos+width);
      window.status=type;         
     setTimeout("type()",15);
 }

function displayDate()  
{ 
	       var today = new Date()
			var weekday = today.getDay()
			
			if (weekday == 0){weekday = "Sunday"}
			if (weekday == 1){weekday = "Monday"}
			if (weekday == 2){weekday = "Tuesday"}
			if (weekday == 3){weekday = "Wednesday"}
			if (weekday == 4){weekday = "Thursday"}
			if (weekday == 5){weekday = "Friday"}
			if (weekday == 6){weekday = "Saturday"}
			var month = today.getMonth()
			if (month == 0){month = "January"}
			if (month == 1){month = "February"}
			if (month == 2){month = "March"}
			if (month == 3){month = "April"}
			if (month == 4){month = "May"}
			if (month == 5){month = "June"}
			if (month == 6){month = "July"}
			if (month == 7){month = "August"}
			if (month == 8){month = "September"}
			if (month == 9){month = "October"}
			if (month == 10){month = "November"}
			if (month == 11){month = "December"}
			year = today.getYear()
			numweekday = today.getDate()
			document.write(weekday + ", " + numweekday + " " + month + " " + year)

}

function show(){
if (!document.layers&&!document.all&&!document.getElementById)
return

 var Digital=new Date()
 var hours=Digital.getHours()
 var minutes=Digital.getMinutes()
 var seconds=Digital.getSeconds()

var dn="PM"
if (hours<12)
dn="AM"
if (hours>12)
hours=hours-12
if (hours==0)
hours=12

 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
//change font size here to your desire
myclock="<font size='1' face='verdana' >"+hours+":"+minutes+":"
 +seconds+" "+dn+" </font>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
document.getElementById("liveclock").innerHTML=myclock
setTimeout("show()",1000)
 }


