function PopWindow(filename){
var wo
window.name="main";   
wo=window.open("","option","toolbar=0,location=0,directories=1,status=0,menubar=1,scrollbars=1,copyhistory=0,resizable=1,width=535,height=632");
        wo.location.href=filename;
}
/**
 * POP UP WINDOW
 */
function WinOpen_navi(){
win=window.open('navi/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=318,height=500');
    win.moveTo(0,0);
}
function WinOpen_opinion(){
window.open('opinion.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=400,height=350');
}
function WinOpen3(){
window.open('http://www3.infoworld.co.jp/auto/i/','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=200,height=300');
}
function WinOpen4(){
window.open('http://autorace.todokete.net/','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=640,height=580');
}
function WinOpen_star(){
window.open('topic/star/29/star29_frameset.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=790,height=580');
}
function WinOpen_speed(){
window.open('archives/speedstar/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=640,height=580');
}
function WinOpen_28(){
window.open('info/28/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=800,height=580');
}
function WinOpen_29(){
window.open('/other/29/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=800,height=580');
}
//inet会員募集時はautorace.htmlにする。
function WinOpen_30(){
window.open('/guide/autorace0.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=680,height=510');
}
function WinOpen_vtr(){
window.open('archives/vtr/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=800,height=580');
}
function WinOpen_cm(){
window.open('cm/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=620,height=645');
}
function WinOpen_kaiko(){
window.open('archives/kaiko/kaiko_frameset.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=785,height=580');
}
function WinOpen_present(){
window.open('topic/present/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=540,height=500');
}
function WinOpen_wall(){
window.open('archives/wallpaper/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=640,height=580');
}
function WinOpen_record(){
window.open('archives/record/record_frameset.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=640,height=580');
}
function WinOpen_mobile(){
window.open('info/mobile/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=645,height=580');
}
function WinOpen_mailmag(){
window.open('/other/mailmag/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=645,height=580');
}
function WinOpen_inet(){
window.open('info/inet/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=645,height=580');
}
function WinOpen_autotel(){
window.open('info/autotel/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=645,height=580');
}
function WinOpen_nyumon(){
window.open('/guide/auto/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=771,height=768');
}
function WinOpen_nyumontv(){
window.open('http://internet-tv.co.jp/sports/autorace/out.html','window3','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=620,height=435');
}
function WinOpen_voice(){
window.open('mobile_voice/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,width=645,height=450');
}
function WinOpen_moon(){
window.open('info/hotnews/moon.htm','window1','resizable=1,scrollbars=0,menubar=0,directories=0,status=0,location=0,width=400,height=561');
}

//多言語ページへのリンクスクリプト追加　2005.05.10//
function WinOpen_en(){
window.open('/guide/en/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_cn(){
window.open('/guide/cn/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_kr(){
window.open('/guide/kr/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_pt(){
window.open('/guide/pt/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
//スクリプト追加ここまで//

//Guide in Foreign Language 用、多言語ページへのリンクスクリプト追加　2005.06.8//
function WinOpen_en_g(){
window.open('/guide/en/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_cn_g(){
window.open('./guide/cn/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_kr_g(){
window.open('/guide/kr/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
function WinOpen_pt_g(){
window.open('/guide/pt/index.html','window1','resizable=1,scrollbars=1,menubar=0,directories=0,status=0,location=0,toolbar=0,width=771,height=768');
}
//オート姫の部屋//
function OpenRoom(){
win1=open("entertainment/room/room.html","room","width=560,height=500,toolbar=no,resizable=no, scrollbars=no");
}
//メッセンジャー説明//
function PopWindowmes(filename){
var wo
window.name="read";   
wo=window.open("","optionmes","toolbar=0,location=0,directories=1,status=0,menubar=1,scrollbars=1,copyhistory=0,resizable=1,width=577,height=503");
        wo.location.href=filename;
}
//750//
function PopWindowWide(filename){
var wo
window.name="sub";   
wo=window.open("","option2","toolbar=0,location=0,directories=1,status=0,menubar=1,scrollbars=1,copyhistory=0,resizable=1,width=775,height=632");
        wo.location.href=filename;
}
//750//
function PopWindowWide2(filename){
var wo
window.name="sub2";   
wo=window.open("","option3","toolbar=0,location=0,directories=1,status=0,menubar=1,scrollbars=1,copyhistory=0,resizable=1,width=775,height=632");
        wo.location.href=filename;
}

//画像フィットポップアップ
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
