//ベリサインオープン
function secWin() {
	newwin =window.open('https://digitalid.verisign.com/vsj/38455b5405e5a3f1d603d6757b44ca1a','verisighn','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450,left=0,top=0');
	newwin.focus();
}

//ご意見＆ご質問オープン
function cntWin() {
	newwin =window.open('http://help.zubat.net/kekkon-soudan/','cnt','');
	newwin.focus();
}

//STEP各社オープン
function comWin(url) {
	newwin =window.open(url,'com','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=630,height=550,left=0,top=0');
	newwin.focus();
}

//ヘルプオープン
function helpWin(url) {
	newwin =window.open(url,'help','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=520,height=300,left=0,top=0');
	newwin.focus();
}

//利用規約
function termWin() {
    newwin =window.open('http://www.webcrew.co.jp/info/terms_pop.html','terms','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=520,height=500,left=0,top=0');
    newwin.focus();
}

//会員規約
function memberWin() {
	newwin =window.open('http://www.webcrew.co.jp/info/member_pop.html','member','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=500,height=500,left=0,top=0');
	newwin.focus();
}

//プライバシーポリシーオープン
function privacyWin() {
    newwin
=window.open('http://www.webcrew.co.jp/info/privacy_pop.html','privacy','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=500,height=500,left=0,top=0');
    newwin.focus();
}

//ブラウザオープン
function brwsWin(url) {
	newwin =window.open(url,'exp','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=550,height=400,left=0,top=0');
	newwin.focus();
}

//コピーライト
function wCopy(){
	document.write("Copyright &copy; 2004-2005 WebCrew Inc. All rights reserved.")
}

//Step離脱者コメント入力オープン
function leaveWin(obj_form, step_site_id, order_id, user_id) {
	if (obj_form.submitFlg.value != "true") {
		var strUrl = "/step/leave/showStep1.htm?fromId=" + step_site_id + "&orderId=" + order_id + "&userId=" + user_id;
		newwin = window.open(strUrl,'leave','toolbar=no,location=no,resizable=yes,status=no,scrollbars=no,width=400,height=300,left=0,top=0');
		newwin.focus();
	}
}

//Submit前チェック
function checkSubmit(obj_form) {
	obj_form.submitFlg.value = "true";
}

//トピックスオープン
function tpcsWin(url) {
	newwin =window.open(url,'topics','toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,width=440,height=450,left=0,top=0');
	newwin.focus();
}

//ブックマーク
function bookmark() {
	if(navigator.userAgent.indexOf("MSIE") > -1){
		window.external.AddFavorite('http://www.kkhikaku.com','結婚サービス比較.com');
	} else if(navigator.userAgent.indexOf("Firefox") > -1){
		window.sidebar.addPanel('結婚サービス比較.com','http://www.kkhikaku.com','');
	}
}

//ウィンドウオープン（汎用）
function openWin(url,name,property) {
	newwin =window.open(url,name,property);
	newwin.focus();
}

//promo用ウィンドウオープン
function open_win(promo) {
 nwwin = window.open(promo,"_blank","menubar=no,status=no,location=no,toolbar=no,scrollbars=yes,width=560,height=450");
// return false;
}

//郵便番号逆引き
function showZipRev(from) {
    window.open('/common/zip_reverse/index.html?from=' + from,'_blank','width=430,height=640,statusbar=no,menubar=no,resizable=yes');
}

//フォーム背景色
/*
function colorChange() {
	this.skip  = ['submit', 'button', 'radio', 'checkbox', 'select-one', 'select-multiple'];
	this.color = { 'blur': '', 'focus': '#DFF5FF' };

	this.set = function() {
		for (var i = 0; i < document.forms.length; i++) {
			for (var f = 0; f < document.forms[i].length; f++) {
				var elm = document.forms[i][f];
				if(!this.checkSkip(elm)) continue;
				this.setColor(elm, 'focus');
				this.setColor(elm, 'blur');
			}      
		}
	}

	this.checkSkip = function(elm) {
		for(var i in this.skip) {
			if(elm.type == this.skip[i]) return false;
		}
		return true;
	}

	this.setColor = function(elm, type) { 
		var color = this.color[type];
		var event = function() { elm.style.backgroundColor = color; };

		if(elm.addEventListener) {
			elm.addEventListener(type, event, false); 
		} else if(elm.attachEvent) {
			elm.attachEvent('on'+type, event); 
		} else {
			elm['on'+type] = event;
		}
	}
}
*/

// onload時にフォーム背景色設定を実行
/*
window.onload = function() {
   var formColor = new colorChange;
   formColor.set();
}
*/

//print
function ticketPrint() {
	window.print();
}

