// JavaScript Document

//


function mdcApi_member_login(){
	textData="";
	//Browser
	appBrowserName = navigator.appName.toUpperCase();
	BrowserName = "";
	if (appBrowserName.indexOf("NETSCAPE") >= 0) BrowserName = "Netscape";
	if (appBrowserName.indexOf("EXPLORER") >= 0) BrowserName = "Explorer";
	textData +="&"+ "browser_name="+BrowserName;
	//textData = "title_name="+document.getElementById("title_name").value;
	
	if(typeof(api_welcome_flag)!="undefined"){
		textData +="&"+ "api_welcome_flag="+api_welcome_flag;
	}
	if(typeof(api_welcome)!="undefined"){
		textData +="&"+ "api_welcome="+api_welcome;
	}
	if(typeof(api_honor)!="undefined"){
		textData +="&"+ "api_honor="+api_honor;
	}
	if(typeof(api_message)!="undefined"){
		textData +="&"+ "api_message="+api_message;
	}
	if(typeof(api_entry)!="undefined"){
		textData +="&"+ "api_entry="+api_entry;
	}
	if(typeof(api_name_flag)!="undefined"){
		textData +="&"+ "api_name_flag="+api_name_flag;
	}
	if(typeof(api_point_flag)!="undefined"){
		textData +="&"+ "api_point_flag="+api_point_flag;
	}
	if(typeof(api_link_flag)!="undefined"){
		textData +="&"+ "api_link_flag="+api_link_flag;
	}
	if(typeof(api_date_flag)!="undefined"){
		textData +="&"+ "api_date_flag="+api_date_flag;
	}
	if(typeof(api_frame_width)!="undefined"){
		textData +="&"+ "api_frame_width="+api_frame_width;
	}
	if(typeof(api_fore_color)!="undefined"){
		textData +="&"+ "api_fore_color="+api_fore_color;
	}
	if(typeof(api_back_color)!="undefined"){
		textData +="&"+ "api_back_color="+api_back_color;
	}
	if(typeof(api_line_color)!="undefined"){
		textData +="&"+ "api_line_color="+api_line_color;
	}
	if(typeof(api_line_width)!="undefined"){
		textData +="&"+ "api_line_width="+api_line_width;
	}
	
	
	dd = new Date();
	yy = dd.getYear();
	mm = dd.getMonth() + 1;
	day = dd.getDate();
	
	hours = dd.getHours();
	minutes = dd.getMinutes();
	second = dd.getSeconds();
	
	xx=mm+""+day+""+hours+""+ minutes+ "" +second;
	xx = "&xx="+xx;
	
	
	topPath = ".";
	struri = document.URL;
	if (struri.match(/\/site\//i)) {
		topPath = "..";
	}
	
	var query_string = topPath + "/ssl_mypage/mdcApi_member_login.php";
	httpObj = createXMLHttpRequest(displayData);
	if (httpObj)
	{
	httpObj.open("GET",query_string+"?"+xx+textData,true);
	httpObj.send(null);
	}

}
	
function displayData()
{
if ((httpObj.readyState == 4) && (httpObj.status == 200))
{
	
	$("mdcApi_member_login_id").innerHTML = httpObj.responseText;
	}else{
	
	$("mdcApi_member_login_id").innerHTML = "";
	
	}
}


function createXMLHttpRequest(cbFunc)
{
	var XMLhttpObject = null;
	try{
		XMLhttpObject = new XMLHttpRequest();
	}catch(e){
		try{
			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				return null;
			}
		}
	}
	if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
	return XMLhttpObject;
}

// document.getElementById
function $(tagId)
{
	return document.getElementById(tagId);
}



