function MM_swapImgRestore(){ //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) {x.src=x.oSrc;}
	}

function MM_preloadImages() {//v3.0
	var d=document; if(d.images){ 
		if(!d.MM_p) d.MM_p=new Array();	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
		for(i=0; i<a.length; i++)if (a[i].indexOf("#")!=0){d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}
	}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function Show_Hide_Row_Graph(RowID1,RowID2,RowID3,RowID4,ShowRowID)
{
	//alert(RowID1+","+RowID2+","+RowID3+","+RowID4+","+ShowRowID);
	rowID0=RowID1;
	rowID1=RowID2;
	rowID2=RowID3;
	rowID3=RowID4;

	sShow0 = 'document.all.' + rowID0 + '.style.display=""';
	sHide0 = 'document.all.' + rowID0 + '.style.display="none"';

	sShow1 = 'document.all.' + rowID1 + '.style.display=""';
	sHide1 = 'document.all.' + rowID1 + '.style.display="none"';

	sShow2 = 'document.all.' + rowID2 + '.style.display=""';
	sHide2 = 'document.all.' + rowID2 + '.style.display="none"';

	sShow3 = 'document.all.' + rowID3 + '.style.display=""';
	sHide3 = 'document.all.' + rowID3 + '.style.display="none"';
	
	//alert(ShowRowID);
	if(ShowRowID==RowID1)
	{
		eval(sShow0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		MM_preloadImages('images/requirements_02.gif','images/searches_01.gif','images/ratingTab_01.gif','images/inventory_01.gif');
		MM_swapImage('requirement','','images/requirements_02.gif',1);
		MM_swapImage('search','','images/searches_01.gif',1);
		MM_swapImage('riskanalysis','','images/ratingTab_01.gif',1);
		MM_swapImage('inventory','','images/inventory_01.gif',1);
		//document.Form1.txtHChartType.value="requirement";
		//alert(document.Form1.txtHChartType.value);
	}
	else if(ShowRowID==RowID2)
	{
		eval(sHide0);
		eval(sShow1);
		eval(sHide2);
		eval(sHide3);
		MM_preloadImages('images/requirements_01.gif','images/searches_02.gif','images/ratingTab_01.gif','images/inventory_01.gif');
		MM_swapImage('search','','images/searches_02.gif',1);
		MM_swapImage('requirement','','images/requirements_01.gif',1);
		MM_swapImage('riskanalysis','','images/ratingTab_01.gif',1);
		MM_swapImage('inventory','','images/inventory_01.gif',1);
		document.Form1.txtHChartType.value="search";
		//alert(document.Form1.txtHChartType.value);
	}
	else if(ShowRowID==RowID3)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sShow2);
		eval(sHide3);
		MM_preloadImages('images/requirements_01.gif','images/searches_01.gif','images/ratingTab_02.gif','images/inventory_01.gif');
		MM_swapImage('riskanalysis','','images/ratingTab_02.gif',1);
		MM_swapImage('requirement','','images/requirements_01.gif',1);
		MM_swapImage('search','','images/searches_01.gif',1);
		MM_swapImage('inventory','','images/inventory_01.gif',1);
		document.Form1.txtHChartType.value="riskanalysis";
		//alert(document.Form1.txtHChartType.value);
	}
	else if(ShowRowID==RowID4)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sShow3);
		MM_preloadImages('images/requirements_01.gif','images/searches_01.gif','images/ratingTab_01.gif','images/inventory_02.gif');
		MM_swapImage('inventory','','images/inventory_02.gif',1);
		MM_swapImage('requirement','','images/requirements_01.gif',1);
		MM_swapImage('search','','images/searches_01.gif',1);
		MM_swapImage('riskanalysis','','images/ratingTab_01.gif',1);
		document.Form1.txtHChartType.value="inventory";
		//alert(document.Form1.txtHChartType.value);
	}
}

function Show_Hide_Row_Stock(RowID1,RowID2,ShowRowID)
{
	//alert(RowID1+","+RowID2+","+ShowRowID);
	rowID0=RowID1;
	rowID1=RowID2;

	sShow0 = 'document.all.' + rowID0 + '.style.display=""';
	sHide0 = 'document.all.' + rowID0 + '.style.display="none"';

	sShow1 = 'document.all.' + rowID1 + '.style.display=""';
	sHide1 = 'document.all.' + rowID1 + '.style.display="none"';

	//alert(ShowRowID);
	if(ShowRowID==RowID1)
	{
		eval(sShow0);
		eval(sHide1);
		MM_preloadImages('images/all_top_10_1.gif','images/all_top_10.gif','images/my_top_5.gif','images/my_top_5_1.gif');
		MM_swapImage('top5','','images/my_top_5.gif',1);
		MM_swapImage('top10','','images/all_top_10_1.gif',1);
		//document.Form1.txtHChartType.value="requirement";
		//alert(document.Form1.txtHChartType.value);
	}
	else if(ShowRowID==RowID2)
	{
		eval(sHide0);
		eval(sShow1);
		MM_preloadImages('images/all_top_10_1.gif','images/all_top_10.gif','images/my_top_5.gif','images/my_top_5_1.gif');
		MM_swapImage('top10','','images/all_top_10.gif',1);
		MM_swapImage('top5','','images/my_top_5_1.gif',1);
		//alert(document.Form1.txtHChartType.value);
	}
}

function Show_Hide_Row_RFQGraph(RowID1,RowID2,RowID3,ShowRowID)
{
	//alert(RowID1+","+RowID2+","+RowID3+","+ShowRowID);
	rowID0=RowID1;
	rowID1=RowID2;
	rowID2=RowID3;

	sShow0 = 'document.all.' + rowID0 + '.style.display=""';
	sHide0 = 'document.all.' + rowID0 + '.style.display="none"';

	sShow1 = 'document.all.' + rowID1 + '.style.display=""';
	sHide1 = 'document.all.' + rowID1 + '.style.display="none"';

	sShow2 = 'document.all.' + rowID2 + '.style.display=""';
	sHide2 = 'document.all.' + rowID2 + '.style.display="none"';

	if(ShowRowID==RowID1)
	{
		eval(sShow0);
		eval(sHide1);
		eval(sHide2);
		MM_preloadImages('images/posted_02.gif','images/received_01.gif','images/exact_match_01.gif');
		MM_swapImage('PostedRFQ','','images/posted_02.gif',1);
		MM_swapImage('ReceivedRFQ','','images/received_01.gif',1);
		MM_swapImage('ExactMatchRFQ','','images/exact_match_01.gif',1);
		document.Form1.txtHChartType.value="PostedRFQ";
		//alert(document.Form1.txtHChartType.value);

	}
	else if(ShowRowID==RowID2)
	{
		eval(sHide0);
		eval(sShow1);
		eval(sHide2);
		MM_preloadImages('images/posted_01.gif','images/received_02.gif','images/exact_match_01.gif');
		MM_swapImage('PostedRFQ','','images/posted_01.gif',1);
		MM_swapImage('ReceivedRFQ','','images/received_02.gif',1);
		MM_swapImage('ExactMatchRFQ','','images/exact_match_01.gif',1);
		document.Form1.txtHChartType.value="ReceivedRFQ";
		//alert(document.Form1.txtHChartType.value);
	}
	else if(ShowRowID==RowID3)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sShow2);
		MM_preloadImages('images/posted_01.gif','images/received_01.gif','images/exact_match_02.gif');
		MM_swapImage('ExactMatchRFQ','','images/exact_match_02.gif',1);
		MM_swapImage('PostedRFQ','','images/posted_01.gif',1);
		MM_swapImage('ReceivedRFQ','','images/received_01.gif',1);
		document.Form1.txtHChartType.value="ExactMatchRFQ";
		//alert(document.Form1.txtHChartType.value);
	}
}
function Show_Hide_Row_Shipping(RowID1,RowID2,RowID3,RowID4,RowID5,RowID6,RowID7,ShowRowID)
{
	//alert(RowID1+","+RowID2+","+RowID3+","+RowID4+","+ShowRowID);
	rowID0=RowID1;
	rowID1=RowID2;
	rowID2=RowID3;
	rowID3=RowID4;
	rowID4=RowID5;
	rowID5=RowID6;
	rowID6=RowID7;
	rowID7="TRtabs";

	sShow0 = 'document.all.' + rowID0 + '.style.display=""';
	sHide0 = 'document.all.' + rowID0 + '.style.display="none"';

	sShow1 = 'document.all.' + rowID1 + '.style.display=""';
	sHide1 = 'document.all.' + rowID1 + '.style.display="none"';

	sShow2 = 'document.all.' + rowID2 + '.style.display=""';
	sHide2 = 'document.all.' + rowID2 + '.style.display="none"';

	sShow3 = 'document.all.' + rowID3 + '.style.display=""';
	sHide3 = 'document.all.' + rowID3 + '.style.display="none"';
	
	sShow4 = 'document.all.' + rowID4 + '.style.display=""';
	sHide4 = 'document.all.' + rowID4 + '.style.display="none"';
	
	sShow5 = 'document.all.' + rowID5 + '.style.display=""';
	sHide5 = 'document.all.' + rowID5 + '.style.display="none"';
	
	sShow6 = 'document.all.' + rowID6 + '.style.display=""';
	sHide6 = 'document.all.' + rowID6 + '.style.display="none"';
	
	sShow7 = 'document.all.' + rowID7 + '.style.display=""';
	sHide7 = 'document.all.' + rowID7 + '.style.display="none"';

	//alert(ShowRowID);
	if(ShowRowID==RowID1)
	{
		eval(sShow0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		eval(sHide4);
		eval(sHide5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_02.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_02.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID2)
	{
		eval(sHide0);
		eval(sShow1);
		eval(sHide2);
		eval(sHide3);
		eval(sHide4);
		eval(sHide5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_02.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_02.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID3)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sShow2);
		eval(sHide3);
		eval(sHide4);
		eval(sHide5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_02.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_02.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID4)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sShow3);
		eval(sHide4);
		eval(sHide5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_02.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_02.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID5)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		eval(sShow4);
		eval(sHide5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_02.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_02.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID6)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		eval(sHide4);
		eval(sShow5);
		eval(sHide6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_02.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_02.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);
	}
	else if(ShowRowID==RowID7)
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		eval(sHide4);
		eval(sHide5);
		eval(sShow6);
		eval(sShow7);
		MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_02.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_02.gif',1);
	}
	else
	{
		eval(sHide0);
		eval(sHide1);
		eval(sHide2);
		eval(sHide3);
		eval(sHide4);
		eval(sHide5);
		eval(sHide6);
		eval(sHide7);
		/*MM_preloadImages('images/UPS_01.gif','images/USPS_01.gif','images/fedex_01.gif','images/dhl_01.gif','images/conway_01.gif','images/canada_post_01.gif','images/tnt_01.gif');
		MM_swapImage('ups','','images/UPS_01.gif',1);
		MM_swapImage('usps','','images/USPS_01.gif',1);
		MM_swapImage('fedex','','images/fedex_01.gif',1);
		MM_swapImage('dhl','','images/dhl_01.gif',1);
		MM_swapImage('conway','','images/conway_01.gif',1);
		MM_swapImage('canadapost','','images/canada_post_01.gif',1);
		MM_swapImage('tnt','','images/tnt_01.gif',1);*/
	}
}
function Show_Hide_Row_Agent(RowID1,RowID2,RowID3,HideRowID)
	{
		//alert("nitin");
		rowID0=RowID1;
		rowID1=RowID2;
		rowID2=RowID3;

		sShow0 = 'document.all.' + rowID0 + '.style.display=""';
		sHide0 = 'document.all.' + rowID0 + '.style.display="none"';

		sShow1 = 'document.all.' + rowID1 + '.style.display=""';
		sHide1 = 'document.all.' + rowID1 + '.style.display="none"';

		sShow2 = 'document.all.' + rowID2 + '.style.display=""';
		sHide2 = 'document.all.' + rowID2 + '.style.display="none"';

			if(HideRowID==RowID1)
			{
				eval(sHide0);
				eval(sShow1);
				eval(sShow2);
			}
			else if(HideRowID==RowID2)
			{
				eval(sShow0);
				eval(sHide1);
				eval(sShow2);
			}
			else 
			{
				eval(sHide0);
				eval(sHide1);
				eval(sHide2);
			}
	}

function ShowLoading(status)
{
	var winl = (screen.width) / 2;
	var wint = (screen.height) / 2-100;
	document.getElementById("loadinfo").style.visibility = status ? "visible" : "hidden";
	document.getElementById("loadinfo").style.position="absolute";
	document.getElementById("loadinfo").style.left=winl;
	document.getElementById("loadinfo").style.top=wint;
	document.getElementById("loadinfo").style.height=20;
	document.getElementById("loadinfo").style.verticalAlign="middle";
	document.getElementById("loadinfo").style.color="black";
	document.getElementById("loadinfo").style.fontSize=14;
	//document.getElementById("loadinfo").style.backgroundColor="Red";
	document.getElementById("loadinfo").innerHTML="&nbsp;<img src='images/loading.gif' width=15 height=15>&nbsp;&nbsp;Loading...";
}