/*
 *	common.js - utf-8
 *
 *		(C)Copyright 2009 HITP 広島工業大学専門学校
 *		Author H.YAMASHITA.
 */
var getHttpsUrl = function () {
	//var httpsUrl1 = 'https://127.0.0.1/~sousyu/my2010/secure/2010/';		//開発用
	//var httpsUrl1 = 'https://150.19.243.8/2010/';												//テスト環境用
	var httpsUrl1 = 'https://secure.tsuru-gakuen.ac.jp/htp/2010/';			//本番用

	return httpsUrl1;
}

var newPageLink = function (target, href) {
	window.open(href, target);

	return false;
}

var popUpLink = function (href, width, height) {
	window.open(href, "_blank", 'width=' + width + ', height=' + height);

	return false;
};

var pullDown = function (element, id) {
	var disp = $(element + '#' + id).css('display');
	if (disp != 'none') {
		$(element + '#' + id).css('display', 'none');
	} else {
		$(element + '#' + id).css('display', 'block');
	}

	return false;
}

var pullDownOnOff = function (element1, id1, element2, id2) {
	var disp = $(element1 + '#' + id1).css('display');
	if (disp != 'none') {
		$(element1 + '#' + id1).css('display', 'none');
		$(element2 + '#' + id2).css('display', 'block');
	} else {
		$(element1 + '#' + id1).css('display', 'block');
		$(element2 + '#' + id2).css('display', 'none');
	}

	return false;
}
