// JavaScript Document


function swap(i){
document[i].src = "images/" + i + "down.jpg"
}

function swapBack(i){
document[i].src = "images/" + i + "up.jpg"
}


function showLinks(){
//Whats New links
	document.getElementById('ilone').innerHTML = "Download Admit Cards for written test scheduled to be held on 12th Feb 2012 for Admission 2012"
	document.getElementById('iltwo').innerHTML = "Assignment Schedule for students"
        
    document.getElementById('ilone').href = "http://specialtest.in/nift2012/AdmitCard.asp"
	document.getElementById('iltwo').href = "http://www.nift.ac.in/AssignmentScheduleforstudents.html"
        
       
	
//News & events links
	document.getElementById('nneone').innerHTML = "International Linkage"
	document.getElementById('nnetwo').innerHTML = "Dual Degree with Fashion Institute of Fashion Technology, New York"


	document.getElementById('nneone').href = "http://www.nift.ac.in/Downloads/InternationalLinkage.pdf"
	document.getElementById('nnetwo').href = "http://www.nift.ac.in/Downloads/DualDegreewithFashionInstituteofFashionTechnology.pdf"
	

//Business & opportunities links

	document.getElementById('boone').innerHTML = "Tender" 
	
       document.getElementById('botwo').innerHTML = "Expression of Interest" 
	

        document.getElementById('boone').href = "businessopportunities.html"
	document.getElementById('botwo').href = "businessopportunities.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"
	}

//-->

