var popUp;
function SetControlValue(controlID, newDate, isPostBack)
{
    popUp.close();
    document.forms[0].elements[controlID].value=newDate;
   __doPostBack(controlID,'');
}

function OpenPopupPage (pageUrl, controlID, isPostBack)
{
    //if (window.showModalDialog) {
    //   popUp=window.showModalDialog(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,window,"dialogHeight:300px;dialogWidth:250px;dialogLeft:200px;dialogTop:200px")
    //   }
   // else
	//{
	    popUp=window.open(pageUrl+'?controlID='+controlID+'&isPostBack='+ isPostBack,'popupcal', 'width=250,height=300,left=200,top=250,modal=yes'); 
   // }	                        
}


function HelpArray(len) {
	this.length=len
}
HelpText = new HelpArray(6)
HelpText[0] = "Welcome to the WebSite of National Institute of Computer Technology (NICT)"
HelpText[1] = "At NICT, the Climate for learning is supported by activities designed to sharpen the Skills"
HelpText[2] = "We impart IT Education in latest disciplines of Information Technology"
HelpText[3] = "We provide IT Solutions in diverse areas incliding WebSite and Application Development"
HelpText[4] = "We aim to provide every student an opportunity of a quality IT Education"
HelpText[5] = "We have achieved recognitions from several government and non-government organizations"
ScriptText = new HelpArray(6)

var i = -1
function playHelp()
{
	if (i == 5) 
	{
		i = 0
	}
	else
	{
		i++
	}
	
	MyHomeDiv1.filters[0].apply();
	MyHomeDiv1.innerText = HelpText[i];
	
	MyHomeDiv1.filters[0].play();

	mytimeout = setTimeout("playHelp()",5000);
}
/*
function playImg()
{
		SampleID.filters[0].Apply();
		SampleID.src = "Pictures/scan0003.jpg";
        SampleID.alt="ocean sunset"
		SampleID.filters[0].Play()
}
*/

function AlertHello()
 {  
 alert('Hello ASP.NET'); 
  }
  
   function ChangePicture(t) { 
   var n =  Math.round(Math.random()*5 +1);
   path = new Array();

       t.src="HomeData/Pictures/scan" + n + ".jpg";
  }