//HELP?p???T?u?E?B???h?E???J??
var CHelp = null;
function openHelpWin(form){
        CHelp = window.open("", "CHelp","height=321,width=600,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
        form.target="CHelp";
        form.submit();
        CHelp.focus();
       }

//HELP?p???T?u?E?B???h?E???J??(URL?w???o?[?W????)
function openHelpWin2(url){
        if(CHelp!=null && !CHelp.closed){
          CHelp.close();
        }
        CHelp = window.open(url, "CHelp","height=321,width=600,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
        CHelp.focus();
    }

//?w???v?p?i???????t???[?????A???J?[???w???????????j
function getAnchorName(tmpFileName){
	tmpHash = tmpFileName;
	start = tmpHash.indexOf('#', 0) + 1;
	mid = tmpHash.indexOf('&', start);
	tmpAnchor = tmpHash.substring(mid+1, tmpHash.length);
	return(tmpAnchor);
}
function getFileName(tmpFileName){
	tmpHash = tmpFileName;
	start = tmpHash.indexOf('#', 0) + 1;
	mid = tmpHash.indexOf('&', start);
	tmpFileName = tmpHash.substring(start, mid);
	return(tmpFileName);
}

function openerWin(url){
	window.opener.location.href=url;
	window.close();
}

if ((navigator.appVersion.indexOf("Mac") != -1)) {
		document.write('<link rel=stylesheet href="/misc/style_mac.css" type="text/css">'); }
	else {
		document.write('<link rel=stylesheet href="/misc/style.css" type="text/css">'); }

//?G?b?O?v???U(HTML)?p???T?u?E?B???h?E???J??
var plaza = null;
function openPlazaWin(){
        closeOneSub(plaza);
        plaza = window.open("/no_log_plaza/nolog_plaza.html","plaza","height=500,width=780,top=0,eft=0,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
}

//?G?b?O?v???U(HTML)?p???T?u?E?B???h?E???J??(URL?w??)
function openPlazaWinUrl(url){
        closeOneSub(plaza);
        plaza = window.open(url,"plaza","height=500,width=780,top=0,eft=0,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
}


//?????T?C?g?????????g?b?v(HTML)?p???T?u?E?B???h?E???J??
var siteInfo = null;
function openSiteInfoWin(){
        closeOneSub(siteInfo);
        siteInfo = window.open("/site_info/index.html","siteInfo","height=500,width=780,top=0,eft=0,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
}

//???O?C???O?w???v(CD?r???[?????O?C????????)(HTML)?p???T?u?E?B???h?E???J??
function openNLCHelpWin(){
        closeOneSub(siteInfo);
        siteInfo = window.open("/guide2/faq.html","siteInfo","height=500,width=780,top=0,eft=0,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
}

//CD?r???[?????O?C???O?w???v?p???T?u?E?B???h?E???J??
function openVNLCHelpWin(form){
        CHelp = window.open("", "CHelp","height=500,width=780,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
        form.target="CHelp";
        form.submit();
        CHelp.focus();
}

//CD?r???[?????O?C???????w???v?p???T?u?E?B???h?E???J??
function openVLCHelpWin(form){
        CHelp = window.open("", "CHelp","height=321,width=600,menubar=no,location=no,directories=no,toolbar=no,scrollbars=yes,status=no,resizable=yes");
        form.target="CHelp";
        form.submit();
        CHelp.focus();
}


//?w?????????T?u?E?B???h?E????????
function closeOneSub(form){
       if(form != null && !form.closed){
            form.close();
       }
}

//?G?b?O?v???U?A?????T?C?g?????????p???T?u?E?B???h?E????????(?e???????J?????????????p????)
function closeSubWins(){
       // ?G?b?O?v???U
       if(plaza != null && !plaza.closed){
            plaza.close();
       }
       // ?????T?C?g????????
       if(siteInfo != null && !siteInfo.closed){
            siteInfo.close();
       }
}

//?x???T?C???????N
        function verisignUp() {
        sealWin=window.open("https://digitalid.verisign.com/vsj/442a3c3cd16894c65ab9dc856d4da543","win",'toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450');
        self.name = "mainWin"; }


function clearWin(){
	
}

//?X??PR???????\???????????AM????ID???X?e?[?^?X?o?[???\???????????????????????????g?p????
function showShopPR(){
	
}


//?X???????????????N
//2007.10.10 changeURL by NKC N.takahashi
        function openZipCodeSearch() {
        window.open("http://www.post.japanpost.jp/zipcode/index.html","_blank");
}

//?v???[???g?????T???v?????????????N(C????)
		function cOpenSampleSpec(){
		window.open("/print/cw007804.html","_blank");
}

//?G?R?O???t?B?[????????
        var ecoWin = null;
        function ecoWindowOpen(name){
            ecoWin = window.open("", "ecocd", "scrollbars=no,width=584,height=360,resizable=no");
            document.formEco.target=name;
            document.formEco.submit();
            ecoWin.focus();
        }

//?????t?b?^?A?w?b?_????
    var keitaiWindow = null;
    function openKeitaiWindow(url){
        if(keitaiWindow != null && !keitaiWindow.closed){
            keitaiWindow.close();
        }
        keitaiWindow = window.open(url, "keitaiWindow", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550");
    }

var newSearchWin = null;
function openSearchWin(inputForm) {
    if (!chkLength(inputForm.q.value, "?????L?[???[?h?????????????????????B")) {
        inputForm.q.focus();
        return;
    }
    if (newSearchWin != null && !newSearchWin.closed) {
        newSearchWin.close();
    }
    var host = "www.dpegg.com";
    var dir = "/help";
    var url = "";
    url += "http://www.google.com/search";
    url += "?ie=Shift_JIS";
    url += "&oe=Shift_JIS";
    url += "&hl=ja";
    url += "&lr=lang_ja";
    url += "&newwindow=1";
    url += "&q=" + inputForm.q.value + " inurl:" + host + dir + " site:" + host;
    newSearchWin = window.open(url, "search");
}
    