// JavaScript Document
// for Detecting Height & Width of of the actual content displayed-----------------------------

function setHeight(){
var getHeight = document.getElementById('contentPane').clientHeight;
	setsHeight = document.getElementById('alerts');
	setsHeight.style.height=(getHeight - 40) + 'px';
	//alert(getHeight)
}

// for course selection 

function selLogin(from) {
	var check = document.getElementById(from);
	if (check.value == "0") {
		alert("Kindly select the desired course")
	}
	else if (check.value == "#") {
		alert("Counselling of this course is not started yet, kindly visit later.")
	}
	else if (check.value == "other"){
	    alert("Registration for this course is over")
	}
	else {
		location = check.value;
	}
}
function selCalDate(){
	var x=document.getElementById('cal');
	var y=new Date();
	var z =document.createTextNode(y.getDate());
	x.appendChild(z)
}

function blinkIt() {
 if (!document.all) return;
 else {
   for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
   }
 }
}
