nNewTab();
			//Call to openInNewTab function for opening new tab;
	        break;
	}
    
}

function updateFrameAttr(framematch){
	//This function will update the tab title, iframe attr at the same time. 
	var frame = $("#" + framematch);
	var tab = findTabWithAttr("framematch",framematch);
	var filepath = tab.attr("filename");
	var filedata = getFilenameAndBasedir(filepath);
	var basedir = filedata[0];
	var filename = filedata[1];
	
	$(tab).html(filename + ' <div class="closeBtn">‚®Ø</div>');
	//Upda