// JavaScript Document
function Category(name,id)
{
	this.name=name;
	this.id=id;
	this.whitePaperList = new Array();
}

Category.prototype.getId = function()
{
	return this.id;
}

Category.prototype.addWhitePaper = function(wpName,wpId)
{
	this.whitePaperList.push( new WhitePaper(wpId,wpName) );
	
}

Category.prototype.getWhitePaperList = function()
{
	return this.whitePaperList;
}

function WhitePaper(id,name)
{
	this.id=id;
	this.name=name;
}

WhitePaper.prototype.getId = function()
{
	return this.id;
}

WhitePaper.prototype.getName = function()
{
	return this.name;
}



function getXmlDocument(xmlData)
{
	
	// code for IE
		if (window.ActiveXObject)
		{
		  var doc=new ActiveXObject("Microsoft.XMLDOM");
		  doc.async="false";
		  doc.loadXML(xmlData);
		 
		}
		// code for Mozilla, Firefox, Opera, etc.
		else
		{
		  var parser=new DOMParser();
		  
		  var doc=parser.parseFromString(xmlData,"text/xml");
		  
		}
	return doc;
		
}

	function populateCategory(doc)
	{
		
		var selectbox=document.getElementById("category");

		addOption(selectbox,"Select","Select");
		var catList = doc.getElementsByTagName("category");	
		

	for(i=0; i<catList.length; i++)
		{						
			var attlist = catList.item(i).attributes;
			var attName=attlist.getNamedItem("name");
			var attId=attlist.getNamedItem("id");
			cat = new Category(attName.value,attId.value);
			
			addWhitePaperList(cat,catList.item(i));			
			global_catList.push(cat);			
			addOption(selectbox,attName.value,attId.value);
		}

		return true;
	}
	
	function addWhitePaperList(cat,catElement)
	{
		wpList = catElement.getElementsByTagName("whitepaper");	
		
		for(j=0; j<wpList.length; j++)
		{
			var attlist = wpList.item(j).attributes;
			var wpName=attlist.getNamedItem("name");
			var wpId=attlist.getNamedItem("id");
			//alert(wpName.value+","+wpId.value);			
			cat.addWhitePaper(wpName.value,wpId.value);
		}
	}

/**	function populateWhitePaper()
	{
		setWhitePaperContent("","");
		selectedCatId = document.getElementById("category").value;
		wpList = getWhitePaperListForCategory(selectedCatId);
		wpbox = document.getElementById("whitepaper");
		removeAllOptions(wpbox);
		addOption(wpbox,"Select","Select");
		if( wpList !=null )
		{
			for(j=0; j<wpList.length; j++)
			{
				addOption(wpbox,wpList[j].getName(),wpList[j].getId());
			}
		}
		
	}



**/
function populateWhitePaperNew()
	{
		setWhitePaperContent("","");
		//alert("sachin");
		selectedCatId = document.getElementById("category").value;
		wpList = getWhitePaperListForCategory(selectedCatId);
		mainContentBox = document.getElementById("wpContent");		
		if(wpList !=null)	
		{
			for(j=0; j<wpList.length; j++)
			{
				var whitepaperDiv = document.createElement('div');
				var innerHtml = "<a href=downloadwhitepaper.php?id="+wpList[j].getId()+" target=\"new\">"+ wpList[j].getName()+"</a>";
				//var innerHtml = "<a href=downloadwhitepaper.php?id="+wpList[j].getId()+" target=\"new\">"+ wpList[j].getName()+"</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=forum/viewtopic.php?t="+"18"+">"+"hello"+"</a>";
				//alert(innerHtml);
				whitepaperDiv.innerHTML = innerHtml;
				mainContentBox.appendChild(whitepaperDiv);
			}
		}

	}

function addOption(selectbox,text,value )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	//alert(value);
	optn.value = value;
	selectbox.options.add(optn);
}

function getWhitePaperListForCategory(cat_id)
{
	
	for(j=0; j<global_catList.length; j++)
	{
		var cat = global_catList[j];
		if( cat.getId() == cat_id )
		{
			return cat.getWhitePaperList();
		}
	}
	return null;
}

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		selectbox.remove(i);
	}
}
function populateWhitePaperContent(doc)
{ 
	var wpContent = doc.getElementsByTagName("whitepaper");	
	var attlist = wpContent.item(0).attributes;
	
	//var wpName="testsachin";//attlist.getNamedItem("name");
	var wpName=attlist.getNamedItem("name");//"testsachin";//
	var wpContent=attlist.getNamedItem("content");//doc;//		
   setWhitePaperContent( wpName.value,wpContent.value);
   // setWhitePaperContent( wpName,wpContent);
 }
 
 function setWhitePaperContent(textName,textContent)
 {
	  
	 wpNameObject=document.getElementById("wpName");
	 wpContentObject=document.getElementById("wpContent");	
	 if(textContent=="")
	 {
		wpNameObject.innerHTML = "Click on the below links to view the whitepaper documents !";
		wpContentObject.innerHTML="";
	 }
	 else
	 {	
		var txtValue=textContent;
		
	 	 wpNameObject.innerHTML=textName;
		wpContentObject.innerHTML =txtValue;//'<p align=\"center\" style=\"text-align: center\"><strong>Industry Role in Facilitating Research Culture at Engineering Institutions</strong></p> <p align=\"center\" style=\"text-align: center\"><span style=\"font-size: 10.5pt\">Vinnie Jauhari, Ph.D.</span></p> <p align=\"center\" style=\"text-align: center\"><span style=\"font-size: 10.5pt\">University Relations Manager India</span></p> <p align=\"center\" style=\"text-align: center\"><span style=\"font-size: 10.5pt\">Hewlett Packard </span>India</p> <p align=\"center\" style=\"text-align: center\"><span style=\"font-size: 10.5pt\">Email : <a href=\"mailto:vinnie.jauhari@hp.com\">vinnie.jauhari@hp.com</a></span></p> <p style=\"text-align: justify\"><strong><span style=\"font-size: 10pt\">Context</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">Fostering research culture in an institution is an immensely challenging task. It is an outcome of numerous efforts and is also influenced by the broad ecosystem of<span>&nbsp; </span><span>&nbsp;</span>the discipline and geographical area where it is located. The research culture is instituted by years of careful investments in technology, people, industry interactions and nurturance of the entire system which encourages, sustains and rewards the investments in research. Globally, some of the Universities across the globe which have excelled in research have had a history of closely working with Industry, venture capitalists and leadership which has been inspirational.</span></p> <p style=\"text-align: justify\"><strong><span style=\"font-size: 10pt\">Approach</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">To sustain a culture of <span>&nbsp;</span><span>&nbsp;</span>research excellence, it is extremely important to have a multi pronged approach rather than merely addressing a single dimension of<span>&nbsp; </span>the entire process. In our experience, the steps that could be helpful in institutions which are trying to build up the research base<span>&nbsp; </span><span>&nbsp;</span>are as follows:</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt\"><span>1.<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><strong><span style=\"font-size: 10pt\">Educating the Leadership about advantages of such investments</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">There is a need to create awareness of advantages of investments in research in the teaching institutions.<span>&nbsp; </span>Most of the resources in most institutions are targeted towards teaching. The teaching loads are skewed which leave little time for research. The public institutions face shortage of faculty and hence work overload also affects the time investment for research.</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt\"><span>2.<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><strong><span style=\"font-size: 10pt\">Facilitating interaction with<span>&nbsp; </span>some eminent researchers</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">A small visit by some eminent researchers for few months helps to influence specially the younger faculty members. Joint research projects, papers are immensely helpful in initial years of research for a young faculty member. Opportunities need to be created for meaningful interactions with the younger staff so that they could be mentored.</span></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\"><span>&nbsp;</span></span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><strong><span style=\"font-size: 10pt\"><span>3.<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></strong><strong><span style=\"font-size: 10pt\">Research and writing workshops</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">These workshops should have the following objectives:</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt; font-family: symbol\"><span>·<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style=\"font-size: 10pt\">Introducing the young researchers to the process of research</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt; font-family: symbol\"><span>·<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style=\"font-size: 10pt\">Introducing to them the tier 1 and tier 2 journals and how to get started with their first publication</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt; font-family: symbol\"><span>·<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style=\"font-size: 10pt\">Getting them introduced to some of the Editors of the journals</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt; font-family: symbol\"><span>·<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style=\"font-size: 10pt\">Creating<span>&nbsp; </span>opportunities for publication</span></p> <p style=\"text-indent: -0.25in; text-align: justify\"><span style=\"font-size: 10pt; font-family: symbol\"><span>·<span style=\"font: 7pt \"times new roman\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style=\"font-size: 10pt\">Introducing to them the review<span>&nbsp; </span>process</span></p> <p style=\"text-align: justify\"><strong><span style=\"font-size: 10pt\">Perspectives from Hewlett Packard</span></strong></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">University Relations Division at Hewlett Packard provides access to a very rich pool of research and learning ecosystem, which is not only around the research labs but also research communities which have extensive links with practitioners and academics. The collaborations fostered help to involve the faculty and students in a number of research projects which bridge the gap between theory and practice. The support available through HP Education helps to bridge the pedagogy gaps and also access to contemporary and meaningful inputs for various technical inputs.</span></p> <p style=\"text-align: justify\"><span style=\"font-size: 10pt\">A four way partnership between industry, academics, government and philanthropic institutions could be channelised meaningfully if networking opportunities with global research talent are created to upgrade the levels of research and publications by academic community in </span>India<span style=\"font-size: 10pt\">.</span></p>';
		}
	
 }	
 
/** function formWhitePaper()
 {
	 alert("satya");
	 
 }**/
 

