function win(a,w,h,sc)	
{

 if(sc=="1")
  { sc = 'yes'; }
 else
 { sc = 'no'; }
 
  
  window.open(a,"newWindow","addressbar=no,toolbar=no,location=0,directories=no,status=no,menubar=0,scrollbars="+sc+",resizable=0,copyhistory=1,width= "+ w+",height="+ h+"");
}

function newwin(a)
{

 alert("hai");
  
 window.open(a,"newWindow","addressbar=no,toolbar=yes,location=0,directories=no,status=no,menubar=0 scrollbars=yes");
}

function titlebgcolor(st,n)
{
 for (i=1; i<=n;i++ )
      {
         td_id =st+i;
         if(st=='t') 
         {
          window.document.all[td_id].className ='navigationh2';
          }
         else
         {
          window.document.all[td_id].className ='navigation2';
         }
      }
}

function Redirector(id,st,n)
{
	switch(id)
		{
		case "t1":
		        titlebgcolor(st,n);
		        window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="home.asp";
			break;
		case "t2":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/Engineering.asp";
			break;
		case "t3":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/testing.asp";
			break;
		case "t4":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/tools.asp";
			break;
		case "t5":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/Bottlenecks.asp";
			break;
		case "t6":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/Sizing.asp";
			break;
		case "t7":
			titlebgcolor(st,n);
			window.document.all[id].className ='navigationh1';
			parent.frames['detail'].location="pages/Repositary.asp";
			break;
		case "PT1":
			titlebgcolor(st,n);
			window.document.all['PT1'].className ='navigation1';
			parent.frames['pfdetails'].location="pfdetails.asp";
			break;
		
		case "PT2":
			titlebgcolor(st,n);
			window.document.all['PT2'].className ='navigation1';
			parent.frames['pfdetails'].location="PT_approach.asp";
			break;
		case "PT3":
			titlebgcolor(st,n);
			window.document.all['PT3'].className ='navigation1';
			parent.frames['pfdetails'].location="../info/Performance_System_Test_Plan_Guidelines.htm";
			break;
		case "PT4":
			titlebgcolor(st,n);
			window.document.all['PT4'].className ='navigation1';
			parent.frames['pfdetails'].location="../info/Performance_Scenario_Test_Plan_Guidelines.htm";
			break;
		case "PT5":
			titlebgcolor(st,n);
			window.document.all['PT5'].className ='navigation1';
			parent.frames['pfdetails'].location="Prerequisites.asp";
			break;
		case "PT6":
			titlebgcolor(st,n);
			window.document.all['PT6'].className ='navigation1';
			parent.frames['pfdetails'].location="../info/Performance_Requirements_Guidelines.htm";
			break;
		case "PT7":
			titlebgcolor(st,n);
			window.document.all['PT7'].className ='navigation1';
			parent.frames['pfdetails'].location="db.asp";
			break;
		case "PT8":
			titlebgcolor(st,n);
			window.document.all['PT8'].className ='navigation1';
			parent.frames['pfdetails'].location="typeofpt.asp";
			break;
			
		case "PE1":
			titlebgcolor(st,n);
			window.document.all['PE1'].className ='navigation1';
			parent.frames['Engdetails'].location="engineeringdetails.asp";
			break;
		case "PE2":
			titlebgcolor(st,n);
			window.document.all['PE2'].className ='navigation1';
			parent.frames['Engdetails'].location="PE_Process.asp";
			break;
		case "TL1":
			titlebgcolor(st,n);
			window.document.all['TL1'].className ='navigation1';
			parent.frames['Bottleneckdetails'].location="ToolsHome.asp";
			break;
		case "TL2":
			titlebgcolor(st,n);
			window.document.all['TL2'].className ='navigation1';
			parent.frames['Bottleneckdetails'].location="LoadCal.asp";
			break;
		case "BT1":
			titlebgcolor(st,n);
			window.document.all['BT1'].className ='navigation1';
			parent.frames['Bottleneckdetails'].location="Bottleneckdetails.asp";
			break;
		case "BT2":
			titlebgcolor(st,n);
			window.document.all['BT2'].className ='navigation1';
			parent.frames['Bottleneckdetails'].location="mustcheck.asp";
			break;
		case "BT3":
			titlebgcolor(st,n);
			window.document.all['BT3'].className ='navigation1';
			parent.frames['Bottleneckdetails'].location="SPAM.asp";
			break;
			
		case "C1":
			titlebgcolor(st,n);
			window.document.all['C1'].className ='navigation1';
			parent.frames['Capacitydetails'].location="Capacitydetails.asp";
			break;
		case "C2":
			titlebgcolor(st,n);
			window.document.all['C2'].className ='navigation1';
			parent.frames['Capacitydetails'].location="Capacity_Process.asp";
			break;
		case "C3":
			titlebgcolor(st,n);
			window.document.all['C3'].className ='navigation1';
			parent.frames['Capacitydetails'].location="Metrices4CapacityPlanning.asp";
			break;
					
		
		}	
}


