// JavaScript Document
//<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

function searchDomain(mode,dom){
	document.body.style.cursor = "wait";
	//var dom = $("dom").value;
	new Ajax.Request("/cms/forward/index.php",{method:'get',parameters:'m='+ mode+ '&d='+ dom,onComplete:urlForword});
	
}

function urlForword(responseHttpObj) {
	document.body.style.cursor = "default";
	var res = responseHttpObj.responseText;
	if (res == "false") {
		alert('入力されたドメイン名は間違えているか、登録されていません。');
	} else {
		//location.href = res;
		//alert("ログイン先 : "+ res);
		window.open(res);
	}
}
