//2009.11.20
//ニューハンプシャーの想い
//cookieで初回のみサブウィンドウを自動で開く

//acTimes=getCookie("AC1");//cookie名
//acTimes++;
//setCookie("AC1",acTimes);//cookie名

//function getCookie(key){
//thename=document.cookie+";";
//thename1=thename.indexOf(key, 0);
//if(thename1!=-1){
//thename=thename.substring(thename1, thename.length);
//start=thename.indexOf("=", 0)+ 1;
//end=thename.indexOf(";", start);
//return(unescape(thename.substring(start, end)));
//}
//return("");
//}

//function setCookie(key,val,expday) {
//hozon = 365;//クッキー保存日数
//kikan = new Date();
//kikan.setTime(kikan.getTime()+(hozon*1000*60*60*24));
//expday = kikan.toGMTString();
//document.cookie=key+"="+escape(val)+";expires="+expday;
//}

//if (acTimes==1||acTimes==2){//何クリック目にアクションをおこすか
//複数設定する場合
//if (acTimes==1||acTimes==5||acTimes==10){
//my_newWin=window.open("ideas.html","","height=700,width=800,scrollbars=yes,resizable=yes");
//}

//2回目以降は、クリック時にサブウィンドウを開く
function disp(url){
	window.open(url, "ideas2", "width=700,height=800,scrollbars=yes,resizable=yes");
}


//ウィンドウ表示を細かく指定する場合
//function disp(url){ 
//window.open(url, "window_name", "width=700,height=700,scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,location=yes,directories=yes") 
//
//} 

