// JavaScript Document


function swap(i){
document[i].src = "images/" + i + "down.jpg"
}

function swapBack(i){
document[i].src = "images/" + i + "up.jpg"
}


function showLinks(){
//international linkages links
	document.getElementById('ilone').innerHTML = ""
	document.getElementById('iltwo').innerHTML = " "
	

	document.getElementById('ilone').href = ""
	
	

//News & events links
	document.getElementById('nneone').innerHTML = ""
	document.getElementById('nnetwo').innerHTML = ""


	document.getElementById('nneone').href = ""
	document.getElementById('nnetwo').href = ""
	

//Business & opportunities links

	document.getElementById('boone').innerHTML = "Tender Notice"
	


	document.getElementById('boone').href = "bo.html"
	document.getElementById('boone').href = "bo1.html"
	


}


function validate(){
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@.0123456789_"
if(document.ezemail.email.value.length == 0){
	alert("Please enter your valid email ID to subscribe to e-zine")
	document.ezemail.email.focus()
	return 
}

if(document.ezemail.email.value.indexOf("@") == -1 || document.ezemail.email.value.indexOf("@") != document.ezemail.email.value.lastIndexOf("@")) {
	alert("Invalid email ID. please look at '@'")
	document.ezemail.email.focus()
	return 
}
for(i = 0 ; i <document.ezemail.email.value.length ; ++i){
	if(validChars.indexOf(document.ezemail.email.value.charAt(i)) == -1){
		alert("Invalid character in email ID. please enter valid email ID")
		document.ezemail.email.focus()
		return 
	}
}	

location.href = "ezinereg.html"
//	document.ezemail.submit()

}

function alumniValidate()
{
	location.href = "Alureg.html"
	}

//-->

