/*
global.js
*/
function swapset(name,end,show) {
					for (i = 1; i <= end ; i++) {
						var tar=name+i
						document.getElementById(tar).style.display = "none";
					}
						var tar=name+show
						document.getElementById(tar).style.display = "block";
}

function strRootPath(){
	var strCfgRoot = "";
	var strCfgMainUrl = "";
	if("icweb.dyndns.info"==document.domain){ // webserver
		strCfgRoot = "/dtac";
		strCfgMainUrl = "http://" + document.domain + strCfgRoot ;
	}else if("192.168.1.7"==document.domain){ // webserver
		strCfgRoot = "/dtac";
		strCfgMainUrl = "http://" + document.domain + strCfgRoot ;
	}else{ // Server
		strCfgRoot = "/";
		strCfgMainUrl = "http://" + document.domain + strCfgRoot ;
		
	}
	return strCfgMainUrl;
}

function showHelperPraent(id){
	parent.$('#Helper'+id).slideUp(600);
}


function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1){ 
      oImg.src = strImg.replace(strOver,strOff);
   }else{
      oImg.src = strImg.replace(strOff,strOver);
   }
   oImg.style.visibility='visible';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showMenu(id){
	hideMenu();
	if(id=='menu_products'){
		$("#"+id).show();
		$("#Expand1Sub").show();
	}else{
		$("#"+id).show();
	}
	//showNameFlash();
}
function hideMenu(){	
	$("#menu_products").hide();
	$("#menu_service").hide();
	$("#menu_privilege").hide();
	$("#menu_customers").hide();
	$("#menu_eservice").hide();
}


function showHelper(id){
	var idshow;
	for(i=1;i<4;i++){
		if(document.getElementById('Helper'+i).style.display=='block'){
			idshow=i;
		}
	}
	
	$('#Helper'+idshow).slideUp(600);
	
	if(document.getElementById('Helper'+id).style.display!='block'){
			setTimeout("finishshowHelper("+id+")",500);
	}
	
	//$('#Helper'+id).slideToggle(800);
}
function finishshowHelper(id){
	$('#Helper'+id).slideDown(600)
}
function showListProfile(){
		var show=document.getElementById("MidR").style.display;
		
		//document.getElementById('selectID[0]').checked=false;

		
		if(show=='block' || show==''){
			$('#MidR').slideUp(500);
			$('#MidRB').slideUp(500);
			//document.getElementById('iconFooter').src='common/img/icoExpdClose.png';
		}else{
			$('#MidR').slideDown(500);
			$('#MidRB').slideDown(500);
			//document.getElementById('iconFooter').src='common/img/icoExpdOpen.png';
		}
}

function showTb(id){
	var show;
	if(id){
		show=document.getElementById('tb'+id).style.display;
		if(show=='block' || show==''){
			$('#tb'+id).slideUp(500);
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../common/img/icoExpdClose.gif';
			}
		}else{
			$('#tb'+id).fadeIn(500);
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../common/img/icoExpdOpen.gif';
			}
		}
	}
}
function showTbS(id){
	var show;
	if(id){
		show=document.getElementById('tb'+id).style.display;
		if(show=='block' || show==''){
			$('#tb'+id).slideUp(500);
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../../common/img/icoExpdClose.gif';
			}
		}else{
			$('#tb'+id).fadeIn(500);
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../../common/img/icoExpdOpen.gif';
			}
		}
	}
}
function showMultiTb(id){
	var show;
	$('.allTbShow').slideUp('fast');
	if(id){
		show=document.getElementById('tb'+id).style.display;
		if(show=='block' || show==''){
			$('#tb'+id).slideUp('fast');
			$('#tb'+id).removeClass('allTbShow');
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../common/img/icoExpdClose.gif';
			}
		}else{
			$('#tb'+id).fadeIn(500);
			$('#tb'+id).addClass('allTbShow');
			if(document.getElementById('ico'+id)!=null){
				document.getElementById('ico'+id).src='../common/img/icoExpdOpen.gif';
			}
		}
	}
}
function showTbNoArrow(id){
		var show=document.getElementById('tb'+id).style.display;
		if(show=='block' || show==''){
			$('#tb'+id).slideUp(500);
		}else{
			$('#tb'+id).fadeIn(500);
		}
}

function showFooter(){
		var show=document.getElementById("ShortcutBox").style.display;
		if(show=='block' || show==''){
			$('#ShortcutBox').slideUp(500);
			document.getElementById('iconFooter').src='../common/img/icoExpdClose.gif';
		}else{
			$('#ShortcutBox').slideDown(500);
			document.getElementById('iconFooter').src='../common/img/icoExpdOpen.gif';
		}
}
function showFooterIndex(){
		var show=document.getElementById("ShortcutBox").style.display;
		if(show=='block' || show==''){
			$('#ShortcutBox').slideUp(500);
			document.getElementById('iconFooter').src='/common/img/icoExpdClose.gif';
		}else{
			$('#ShortcutBox').slideDown(500);
			document.getElementById('iconFooter').src='/common/img/icoExpdOpen.gif';
		}
}

  //var divHide="'displayFuntions'";
  //var divHide2="'storeDisplayRight'";
  //var show="'none'";
  //document.getElementById('+divHide+').style.display='+show+';document.getElementById('+divHide2+').style.display='+show+';
  
  
/*<script src="../common/js/sifr.js" type="text/javascript"></script>*/

/* print End */


