function pulldownmenu(strLayer, fType){
//NNの場合
    if (document.layers){
        if (fType){
        //表示
        document.layers[strLayer].visibility = "show";
        }
        else{
	//非表示
	document.layers[strLayer].visibility = "hide";	
	}
    }
//IEとNC6の場合
    if (document.getElementById){
        if (fType){
	//表示
	document.getElementById(strLayer).style.visibility="visible";
	}
	else{
	//非表示
	document.getElementById(strLayer).style.visibility="hidden";
	}
    }
}

//defalut非表示
function SetDefault(){
    pulldownmenu('Menu1', false);
    pulldownmenu('Menu2', false);
    ResetLayer('Menu1');
    ResetLayer('Menu2');
}

//NNのときの位置調整
function ResetLayer(strLayer){
//NNの場合
    if (navigator.appName=="Netscape"){
        //NN4
    if(document.layers){
 	//document.layers[strLayer].left = 必要であれば数字をいれる;
	document.layers[strLayer].top = 28;	//TOPの位置。
	}
	//NN6
	else{
	  //document.getElementById(strLayer).style.left = 必要であれば数字をいれる;
	    document.getElementById(strLayer).style.top = 28;	//TOPの位置。
	}
  }
}


function open_hojin(){
	subWin = window.open("https://www.telecomsquare.co.jp/hojin/form.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=no,width=640,height=500,top=50,left=50");
}
function WinOpen(){
 window.open("../appli/notes.html", "Test", "scrollbars=yes,width=730,height=480" );
}
function open_notice(){
	subWin = window.open("../openwin/notice/notice.html","notice","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=660");
}
function open_site(){
	subWin = window.open("sitepolicy/sitepolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=500,top=50,left=50");
}
function open_privacy(){
	subWin = window.open("privacypolicy/privacypolicy.html","order","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=500,top=50,left=50");
}
// APPEND 2008/12/01
function open_081201(){
	subWin = window.open("/openwin/news_release/081201_info.html","nr20081201","status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=690,height=600,top=50,left=50");
}


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_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_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 WindowOpen(file) {
file = "openwin/" + file;
open(file,"Popup","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=580");}

function WindowOpen1(file) {
file = "openwin/" + file;
open(file,"Popup","toolbar=no,scrollbars=yes,resizable=yes,width=700,height=580,left=100,top=100");}

function WindowOpen2(file) {
file = "openwin/" + file;
open(file,"campaign","toolbar=no,scrollbars=yes,resizable=yes,width=532,height=500,left=100,top=100");}

function WindowOpen3(file) {
file = "openwin/" + file;
open(file,"sum_cam","toolbar=no,scrollbars=yes,resizable=yes,width=600,height=500,left=100,top=100");}

function goGOV(){
if (document.form1.elements[0].selectedIndex == 0) location = "#"
else if (document.form1.elements[0].selectedIndex == 1) location = "service/type_china.html"
else if (document.form1.elements[0].selectedIndex == 2) location = "service/type_taiwan.html"
else if (document.form1.elements[0].selectedIndex == 3) location = "service/type_korea.html"
else if (document.form1.elements[0].selectedIndex == 4) location = "service/type_asia.html"
else if (document.form1.elements[0].selectedIndex == 5) location = "service/type_europe.html"
else if (document.form1.elements[0].selectedIndex == 6) location = "service/type_europe.html"
else if (document.form1.elements[0].selectedIndex == 7) location = "service/type_europe.html"
else if (document.form1.elements[0].selectedIndex == 8) location = "service/type_oceania.html"
else if (document.form1.elements[0].selectedIndex == 9) location = "service/type_usa.html"
else if (document.form1.elements[0].selectedIndex == 10) location = "service/type_usa.html"
else if (document.form1.elements[0].selectedIndex == 11) location = "service/type_hawaii.html"
else if (document.form1.elements[0].selectedIndex == 12) location = "service/type_guam.html"
else if (document.form1.elements[0].selectedIndex == 13) location = "service/type_guam.html"
else if (document.form1.elements[0].selectedIndex == 14) location = "service/type_samerica.html"
else if (document.form1.elements[0].selectedIndex == 15) location = "service/f_sate.html"
}
