var initialtab=[1, "sc1"]
var turntosingle=0 
var disabletablinks=0 
var previoustab=""
if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')
function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById){
    highlighttab(aobject)
    if (turntosingle==0){
       if (previoustab!="")
          document.getElementById(previoustab).style.display="none"
     document.getElementById(cid).style.display="block"
    previoustab=cid
}
}
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
   collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
   tabobjlinks[i].className=""
   aobject.className="current"
}

function collecttablinks(){
   var tabobj=document.getElementById("tablist")
   tabobjlinks=tabobj.getElementsByTagName("A")
}

function do_onload(){
   if (this.tabcontentcontainer !=null){
    collecttablinks()
    expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
   }
}

if (window.addEventListener)
    window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
    window.attachEvent("onload", do_onload)
else if (document.getElementById)
    window.onload=do_onload
//clear the text    
function clearText(thefield){
if (thefield.defaultValue == thefield.value)
    thefield.value = ""
} 


var _d = document;
function showTab(tab) {
 var tb=lt.id.substring(1); // pull out previous number
 ta=tab.id.substring(1); // pull out the current number
 lt.className='o'; // change previous to class o
 tab.className='h';
 lt=tab;
 // the bar in the middle
 var e=_d.getElementById('e'+tb);
 if(e){e.style.backgroundColor='#989898';}
 e=_d.getElementById('e'+(tb-1));
 if(e){e.style.backgroundColor='#989898';}
 e=_d.getElementById('e'+ta);
 if(e){e.style.backgroundColor='#fff';}
 e=_d.getElementById('e'+(ta-1));
 if(e){e.style.backgroundColor='#fff';}
 // display table
 _d.getElementById('s'+tb).style.display="none";
 _d.getElementById('s'+ta).style.display="block";
}
function _m(tab) {//donothing
}
function helpW( strURL )
{
window.open( '/store/help/' + strURL, '_blank', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=350,height=310' );
}

function OpenWindow(url,windowname,width,height)
{
	var newWindow = window.open(url,windowname,'width=' + (width+5) + ',height=' + (height+5) + ',menubar,statusbar');
	newWindow.focus();	
}

function OpenResizableWindow(url,windowname,width,height)
{
	var newWindow = window.open(url,windowname,'width=' + (width+5) + ',height=' + (height+5) + 'left,top,menubar,statusbar,scrollbars');
	newWindow.focus();	
}

function miniHelp(url,windowname,width,height)
{
	var newWindow = window.open(url,windowname,'width=' + (width+5) + ',height=' + (height+5) + ',menubar,statusbar,resizable,scrollbars');
	newWindow.focus();	
}

