

function $G(){
var Url=top.window.location.href;
var u,g,StrBack='';
if(arguments[arguments.length-1]=="#")
   u=Url.split("#");
else
   u=Url.split("?");
if (u.length==1) g='';
else g=u[1];
if(g!=''){
   gg=g.split("&");
   var MaxI=gg.length;
   str = arguments[0]+"=";
   for(i=0;i<MaxI;i++){
      if(gg[i].indexOf(str)==0) {
        StrBack=gg[i].replace(str,"");
        break;
      }
   }
}
return StrBack;
}


/*
EASY TABS 1.1 Produced and Copyright by Koller Juergen
www.kollermedia.at | www.austria-media.at
You can use this Script for private and commercial Projects, 
but just leave the two credit lines, thank you.
*/

//EASY TABS 1.1 - MENU SETTINGS
//Set the id names of your tablinks (without a number at the end)
var tablink_idname = new Array("tablink")
//Set the id names of your tabcontentareas (without a number at the end)
var tabcontent_idname = new Array("tabcontent") 

//Set the Tabs wich should load at start (In this Example:Menu 1 -> Tab 2 visible on load, Menu 2 -> Tab 5 visible on load , Menu 3 -> Tab 1 visible on load)
var loadtabs = new Array("1")


/*Swich EasyTabs Functions - no need to edit something here*/
function easytabs(menunr, active) {
menunr = menunr-1;
for (i=1; i <= tabcount[menunr]; i++)
{
document.getElementById(tablink_idname[menunr]+i).className='tab'+i;
document.getElementById(tabcontent_idname[menunr]+i).style.display = 'none';
}
document.getElementById(tablink_idname[menunr]+active).className='tab'+active+' tabactive';
document.getElementById(tabcontent_idname[menunr]+active).style.display = 'block';
}
window.onload=function(){
var menucount=loadtabs.length; var a = 0; var b = 1; do {easytabs(b, loadtabs[a]); a++; b++;}while (b<=menucount);
var action=$G("action");//根据html后缀参数选项卡显示相应选项
if(action=='t1'){
easytabs('1', '1');
//if(parent.window.opener) parent.window.opener.location=' http://www.mconnm.com';
}
else if(action=='t2'){
easytabs('1', '2');
}
else if(action=='t3'){
easytabs('1', '3');
//if(parent.window.opener) parent.window.opener.location=' http://www.gpshf.com';
//window.location=' http://www.gpshf.com';
}
else if(action=='t4'){
easytabs('1', '4');
}
else if(action=='t5'){
easytabs('1', '5');
}
else if(action=='t6'){
easytabs('1', '6');
}
else if(action=='t7'){
easytabs('1', '7');
}
}
