function MM_findObj(n, d) { //v3.0
  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); return x;
}
/* Functions that swaps images. */
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 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;
}

// ---------------------------------------------------------------
system = navigator.userAgent.toUpperCase();
b = navigator.userAgent.toUpperCase();
browser = navigator.appName.toUpperCase();
ver = navigator.appVersion;



win = window;
function openwin(url){
	window.name ="cc";
	if (browser.indexOf("NETSCAPE") >=0 && ver.indexOf("5") >= 0 || system.indexOf("WIN") >= 0) {
		if(win == window || win.closed){
			win=window.open(url,"newwin",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=390');
		}else{
			window.win.focus();
			win.location.replace(url);
		}
	}else {
		if(win == window || win.closed){
			win=window.open(url,"newwin",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=390');
		}else{
			window.win.focus();
			win.location.replace(url);
		}
	}
}
// ---------------------------------------------------------------
winh = window;
function openhelp(url){
	if (browser.indexOf("NETSCAPE") >=0 && ver.indexOf("5") >= 0 || system.indexOf("WIN") >= 0) {
		if(winh == window || winh.closed){
			winh=window.open(url,"newwinh",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=390');
		}else{
			window.winh.focus();
			winh.location.replace(url);
		}
	}else {
		if(winh == window || winh.closed){
			winh=window.open(url,"newwinh",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=390');
		}else{
			window.winh.focus();
			winh.location.replace(url);
		}
	}
}
// ---------------------------------------------------------------

win= window;
function openkankyobin(url){
if(win == window || win.closed){
win=window.open(url,"openwin","width=700,height=600,status=1,scrollbars=1,resizable=1,");
}
else {
window.win.focus();
win.location.replace(url);
}
}
// ---------------------------------------------------------------
winh = window;
function opencoupon(url){
	if (browser.indexOf("NETSCAPE") >=0 && ver.indexOf("5") >= 0 || system.indexOf("WIN") >= 0) {
		if(winh == window || winh.closed){
			winh=window.open(url,"newwinh",'toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=450');
		}else{
			window.winh.focus();
			winh.location.replace(url);
		}
	}else {
		if(winh == window || winh.closed){
			winh=window.open(url,"newwinh",'toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=457,height=450');
		}else{
			window.winh.focus();
			winh.location.replace(url);
		}
	}
}
// ---------------------------------------------------------------
//verisign 
function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=1,directories=0,status=1,menubar=1, scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}

function msg(){
	document.write('');
}

//function msg(){
//	document.write('<p class="msg">お知らせ<br><br>6月16日、17日、18日は、サイバーコンセント臨時休業のため、お客様へのメール 返信業務をお休みさせて頂きます。<br>大変ご//迷惑をおかけします。6月19日より、順次速やかに対応させて頂きます。何卒 ご容赦のほどよろしくお願い申し上げます。</p>');
//}