﻿function send(num,twid) {
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById(num);
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  
	url = "http://vriend.jp/retw.php?r=" + num + "&i=" + twid;
xmlReq1.open("POST",url,true);
xmlReq1.setRequestHeader("content-type",
  "application/x-www-form-urlencoded;charset=UTF-8");
xmlReq1.send();
}

function send2(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/sureinput-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function




function send3(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp2");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/sureinput2-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function



function send4(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp3");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/sureinput3-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function

function send5(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp4");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/sureinput4-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function


function send6() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("recruitment");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/recruitment.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function


function send7() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("pointclass");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/class.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function

function send8() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("addpoint");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/addpoint.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function




function send9() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("errormes");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/errormes.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function



function send11(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp5");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/sureinput5-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function


function send12() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("popularthreads");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/popularthreads.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function

function send13() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("newthreads");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/newsure.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function

function send14() {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("pointranking");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/pointranking.php";
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function



function loghyo(pagenum) {
  try {
    xmlReq10 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq10 = new XMLHttpRequest();
  }
  xmlReq10.onreadystatechange = function() {
     var msg = document.getElementById("loghyo2");
     if (xmlReq10.readyState == 4) {
      if (xmlReq10.status == 200) {
        msg.innerHTML = xmlReq10.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "Now Loading...";
    }
  }   
	
	url = "http://vriend.jp/outlogput.php?p=" + pagenum;

xmlReq10.open("POST",url,true);
xmlReq10.setRequestHeader("content-type",
  "application/x-www-form-urlencoded;charset=UTF-8");
xmlReq10.send();
}


	function send19(){
	//	var aa = document.getElementById("test");
	//	alert(aa);
	//	alert(document.getElementById("test").tagName);
	//	alert(document.getElementById("ty").tagName);
		var aab = document.f6.s.value;
	//	alert(aab);
		if(aab != 0){
		  try {
		    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch(e) {
		    xmlReq1 = new XMLHttpRequest();
		  }
		  xmlReq1.onreadystatechange = function() {
		     var msg = document.getElementById("inp6");
		     if (xmlReq1.readyState == 4) {
		      if (xmlReq1.status == 200) {
		        msg.innerHTML = xmlReq1.responseText;
		      } else {
		        msg.innerHTML = "Please reload";
		      }
		    } else {
		      msg.innerHTML = "";
		    }
		  }  
			url = "http://vriend.jp/parts/more-out.php?kazu=" + aab ;
		xmlReq1.open("POST",url,true);
		xmlReq1.setRequestHeader("content-type",
		  "application/x-www-form-urlencoded;charset=UTF-8");
		xmlReq1.send();
	}else{
		  try {
		    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch(e) {
		    xmlReq1 = new XMLHttpRequest();
		  }
		  xmlReq1.onreadystatechange = function() {
		     var msg = document.getElementById("inp6");
		     if (xmlReq1.readyState == 4) {
		      if (xmlReq1.status == 200) {
		        msg.innerHTML = xmlReq1.responseText;
		      } else {
		        msg.innerHTML = "Please reload";
		      }
		    } else {
		      msg.innerHTML = "";
		    }
		  }  
			url = "http://vriend.jp/c.php";
		xmlReq1.open("POST",url,true);
		xmlReq1.setRequestHeader("content-type",
		  "application/x-www-form-urlencoded;charset=UTF-8");
		xmlReq1.send();
		}
	}//function






function twnovel(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp7");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/twnovel-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function


function twhaiku(twid,timess,imgurl,oauth_token,oauth_token_secret,access_token,access_token_secret) {
	//		alert("ようこそ");
  try {
    xmlReq1 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch(e) {
    xmlReq1 = new XMLHttpRequest();
  }
  xmlReq1.onreadystatechange = function() {
     var msg = document.getElementById("inp9");
     if (xmlReq1.readyState == 4) {
      if (xmlReq1.status == 200) {
        msg.innerHTML = xmlReq1.responseText;
      } else {
        msg.innerHTML = "Please reload";
      }
    } else {
      msg.innerHTML = "";
    }
  }  

//クッキー読み込み
	kword = "open";
	kday = 0;
	kword = kword + "=";
	kdata = "";
	scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
	start = scookie.indexOf(kword);   　// キーワードを検索
	if (start != -1){    // キーワードと一致するものあり
		end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
		kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
  	}
	//		alert(kdata);
//場合分け
	if(kdata == 1111){
		//クッキー書込み
			kword = "open";
			kdata = "0000";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
				end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
				kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
				xmlReq1.open("POST","http://vriend.jp/c.php",true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();
	}else{
			//クッキー書込み
			kword = "open";
			kdata = "1111";
			kday = 0;
			document.cookie = kword + "=" + escape(kdata) + ";expires=" + kday;
			kword = kword + "=";
			kdata = "";
			scookie = document.cookie + ";";　　　　// クッキー情報を読み込む
			start = scookie.indexOf(kword);   　// キーワードを検索
			if (start != -1){    // キーワードと一致するものあり
			end = scookie.indexOf(";", start);    // 情報の末尾位置を検索
			kdata = unescape(scookie.substring(start + kword.length, end));  // データ取り出し
		  	}
	//		alert(kdata);
			url = "http://vriend.jp/parts/twhaiku-out.php?twid=" + twid + "&timess=" + timess + "&imgurl=" + imgurl + "&o1=" + oauth_token + "&o2=" + oauth_token_secret + "&a1=" + access_token + "&a2=" + access_token_secret;
	//		alert(url);
				xmlReq1.open("POST",url,true);
				xmlReq1.setRequestHeader("content-type",
				  "application/x-www-form-urlencoded;charset=UTF-8");
				xmlReq1.send();

	}//if
}//function


	function surename(surename) {
	  try {
	    xmlReq111 = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch(e) {
	    xmlReq111 = new XMLHttpRequest();
	  }
	  xmlReq111.onreadystatechange = function() {
	     var msg = document.getElementById("surenames");
	     if (xmlReq111.readyState == 4) {
	      if (xmlReq111.status == 200) {
	        msg.innerHTML = xmlReq111.responseText;
	      } else {
	        msg.innerHTML = "Please reload";
	      }
	    } else {
	      msg.innerHTML = "";
	    }
	  }  
		url = "http://vriend.jp/termwrite.php?surename=" + surename;
	xmlReq111.open("POST",url,true);
	xmlReq111.setRequestHeader("content-type",
	  "application/x-www-form-urlencoded;charset=UTF-8");
	xmlReq111.send();
	}


