// JavaScript Document

var hostD = location.host;
var hs = 'https://www.4pla.co.jp';
var hd = 'http://www.4pla.co.jp';

/*
function winOpen(url)
  {
		window.open('https://'+ hostD + url + '',"","width=880,height=970,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		}
	*/
/*
function winOpen(url) {
	var addr = url;
	if (document.layers) { addr = '/privacy/index.html'; }
		window.open('https://' + hostD + addr,"PopUp","width=880,height=970,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		return;
	}
*/

function winOpen(url) {
	var addr = hs + url;
	if (document.layers) { var addr = '/privacy/index.html'; }
		window.open(addr,"PopUp","width=880,height=970,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		return;
		alert(addr);
	}

function winOpen2(url) {
	var addr = url;
	if (document.layers) { addr = '/privacy/index.html'; }
		window.open('https://'+ hostD + addr,"PopUp","width=880,height=880,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		return;
	}

function winOpen3(url) {
	var addr = url;
	if (document.layers) { addr = '/privacy/index.html'; }
		window.open('https://'+ hostD + addr,"PopUp","width=880,height=930,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		return;
	}

/*
function winOpen2(url)
  {
		
		window.open('https://'+ hostD + url + '',"","width=880,height=880,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		}
function winOpen3(url)
  {
		window.open('https://'+ hostD + url + '',"","width=880,height=930,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		}
	*/

function winOpen4(url)
  {
		window.open('http://'+ hostD + url + '',"","width=800,height=750,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		}

/*
function ParentWindow(url) {
	if (document.images) {
		window.opener.location.href = 'http://' + hostD + url + '';
		}
	}*/
	
function ParentWindow(url02) {
	if (document.images) {
		window.opener.location.href = hd + url02;
	}
	}
