/*==================================
 *【ボーダー設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @return	文字列
 *
====================================*/
function getCssBorder(no,obj)
{
	switch (no) {
		case 1: return obj.style.border;				//枠(全般)
		case 2: return obj.style.borderBottom;			//下枠(全般)
		case 3: return obj.style.borderLeft;			//左枠(全般)
		case 4: return obj.style.borderRight;			//右枠(全般)
		case 5: return obj.style.borderTop;				//上枠(全般)
		case 6: return obj.style.borderColor;			//枠色
		case 7: return obj.style.borderStyle;			//枠形状
		case 8: return obj.style.borderWidth;			//枠幅
		case 9: return obj.style.borderBottomColor;		//下枠色
		case 10: return obj.style.borderBottomStyle;	//下枠形状
		case 11: return obj.style.borderBottomWidth;	//下枠幅
		case 12: return obj.style.borderLeftColor;		//左枠色
		case 13: return obj.style.borderLeftStyle;		//左枠形状
		case 14: return obj.style.borderLeftWidth;		//左枠幅
		case 15: return obj.style.borderRightColor;		//右枠色
		case 16: return obj.style.borderRightStyle;		//右枠形状
		case 17: return obj.style.borderRightWidth;		//右枠幅
		case 18: return obj.style.borderTopColor;		//上枠色
		case 19: return obj.style.borderTopStyle;		//上枠形状
		case 20: return obj.style.borderTopWidth;		//上枠幅
		case 21: return obj.style.borderCollapse;		//セル枠の間隔
	}
	return null;
}

/*==================================
 *【ボーダーを設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssBorder(no,obj,val)
{

	switch (no) {
		case 1: obj.style.border = val;				//枠(全般)
		case 2: obj.style.borderBottom = val;		//下枠(全般)
		case 3: obj.style.borderLeft = val;			//左枠(全般)
		case 4: obj.style.borderRight = val;		//右枠(全般)
		case 5: obj.style.borderTop = val;			//上枠(全般)
		case 6: obj.style.borderColor = val;		//枠色
		case 7: obj.style.borderStyle = val;		//枠形状
		case 8: obj.style.borderWidth = val;		//枠幅
		case 9: obj.style.borderBottomColor = val;	//下枠色
		case 10: obj.style.borderBottomStyle = val;	//下枠形状
		case 11: obj.style.borderBottomWidth = val;	//下枠幅
		case 12: obj.style.borderLeftColor = val;	//左枠色
		case 13: obj.style.borderLeftStyle = val;	//左枠形状
		case 14: obj.style.borderLeftWidth = val;	//左枠幅
		case 15: obj.style.borderRightColor = val;	//右枠色
		case 16: obj.style.borderRightStyle = val;	//右枠形状
		case 17: obj.style.borderRightWidth = val;	//右枠幅
		case 18: obj.style.borderTopColor = val;	//上枠色
		case 19: obj.style.borderTopStyle = val;	//上枠形状
		case 20: obj.style.borderTopWidth = val;	//上枠幅
		case 21: obj.style.borderCollapse = val;	//セル枠の間隔
	}
}

/*==================================
 *【背景を設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssBackground(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.background;			//背景(全般)
		case 2: return obj.style.backgroundAttachment;	//固定方法
		case 3: return obj.style.backgroundColor;		//背景色
		case 4: return obj.style.backgroundImage;		//背景画像URL
		case 5: return obj.style.backgroundPosition;	//表示位置
		case 6: return obj.style.backgroundPositionX;	//X方向表示位置
		case 7: return obj.style.backgroundPositionY;	//Y方向表示位置
		case 8: return obj.style.backgroundRepeat;		//繰り返し方法
	}
	return null;
}

/*==================================
 *【背景を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssBackground(no,obj,val)
{
	switch (no) {
		case 1: obj.style.background = val;				//背景(全般)
		case 2: obj.style.backgroundAttachment = val;	//固定方法
		case 3: obj.style.backgroundColor = val;		//背景色
		case 4: obj.style.backgroundImage = val;		//背景画像URL
		case 5: obj.style.backgroundPosition = val;		//表示位置
		case 6: obj.style.backgroundPositionX = val;	//X方向表示位置
		case 7: obj.style.backgroundPositionY = val;	//Y方向表示位置
		case 8: obj.style.backgroundRepeat = val;		//繰り返し方法
	}
}

/*==================================
 *【文字の表示位置設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssShowPoint(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.bottom;	//下位置
		case 2: return obj.style.left;		//左位置
		case 3: return obj.style.right;		//右位置
		case 4: return obj.style.top;		//上位置
	}
	return null;
}

/*==================================
 *【文字の表示位置を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssShowPoint(no,obj,val)
{
	switch (no) {
		case 1: obj.style.bottom = val;		//下位置
		case 2: obj.style.left = val;		//左位置
		case 3: obj.style.right = val;		//右位置
		case 4: obj.style.top = val;		//上位置
	}
}

/*==================================
 *【回り込みを設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssStyleFloat(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.clear;		//表示位置
		case 2: return obj.style.styleFloat;	//はみ出し位置
	}
	return null;
}

/*==================================
 *【回り込みを設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssStyleFloat(no,obj,val)
{
	switch (no) {
		case 1: obj.style.clear = val;		//表示位置
		case 2: obj.style.styleFloat = val;	//はみ出し位置
	}
}

/*==================================
 *【フォント設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssFont(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.font;		//フォント(全般)
		case 2: return obj.style.fontFamily;	//書体
		case 3: return obj.style.fontSize;	//サイズ
		case 4: return obj.style.fontStyle;	//スタイル
		case 5: return obj.style.fontVariant;	//形状
		case 6: return obj.style.fontWeight;	//太さ
	}
	return null;
}

/*==================================
 *【フォントを設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssFont(no,obj,val)
{
	switch (no) {
		case 1: obj.style.font = val;			//フォント(全般)
		case 2: obj.style.fontFamily = val;	//書体
		case 3: obj.style.fontSize = val;		//サイズ
		case 4: obj.style.fontStyle = val;	//スタイル
		case 5: obj.style.fontVariant = val;	//形状
		case 6: obj.style.fontWeight = val;	//太さ
	}
}

/*==================================
 *【縦横設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssWH(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.height;	//縦幅
		case 2: return obj.style.width;		//横幅
		case 3: return obj.style.minHeight;	//最小の高さ
		case 4: return obj.style.minWidth;	//最小の横幅
		case 5: return obj.style.position;	//座標位置指定
	}
	return null;
}

/*==================================
 *【縦横を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssWH(no,obj,val)
{
	switch (no) {
		case 1: obj.style.height = val;		//縦幅
		case 2: obj.style.width = val;		//横幅
		case 3: obj.style.minHeight = val;	//最小の高さ
		case 4: obj.style.minWidth = val;	//最小の横幅
		case 5: obj.style.position = val;	//座標位置指定
	}
}

/*==================================
 *【余白設定を取得】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssMargin(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.margin;		//余白
		case 2: return obj.style.marginBottom;	//下側の余白
		case 3: return obj.style.marginLeft;	//左側の余白
		case 4: return obj.style.marginRight;	//右側の余白
		case 5: return obj.style.marginTop;		//上側の余白
		case 6: return obj.style.padding;		//余白
		case 7: return obj.style.paddingBottom;	//上側の余白
		case 8: return obj.style.paddingLeft;	//左側の余白
		case 9: return obj.style.paddingRight;	//右側の余白
		case 10: return obj.style.paddingTop;	//上側の余白
	}
	return null;
}

/*==================================
 *【余白を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssMargin(no,obj,val)
{
	switch (no) {
		case 1: obj.style.margin = val;			//余白
		case 2: obj.style.marginBottom = val;	//下側の余白
		case 3: obj.style.marginLeft = val;		//左側の余白
		case 4: obj.style.marginRight = val;	//右側の余白
		case 5: obj.style.marginTop = val;		//上側の余白
		case 6: obj.style.padding = val;		//余白
		case 7: obj.style.paddingBottom = val;	//上側の余白
		case 8: obj.style.paddingLeft = val;	//左側の余白
		case 9: obj.style.paddingRight = val;	//右側の余白
		case 10: obj.style.paddingTop = val;	//上側の余白
	}
}

/*==================================
 *【表示/非表示を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function getCssVisibility(no,obj,val)
{
	switch (no) {
		case 1: return obj.style.visibility;			//表示状態
	}
	return null;
}

/*==================================
 *【表示/非表示を設定】
 * @param	no		処理番号
 * @param	obj		対象オブジェクト(document.getElementById("ID"))
 * @param	val		セットする値
 *
====================================*/
function setCssVisibility(no,obj,val)
{
	switch (no) {
		case 1: obj.style.visibility = val;			//表示状態
	}
}

/*==================================
 *【現在表示している画面位置を軸に、指定位置に表示】
 * @param	obj		対象オブジェクト(documentまでのパス)
 * @param	mov		表示位置(数値)
 *
====================================*/
function getBrowserTop(obj,movTop) {
		
		if(obj.body.scrollTop != null){
			return obj.body.scrollTop + movTop;
		}else if(obj.documentElement.scrollTop != null){
			return (obj.documentElement.scrollTop + movTop);
		}
        alert("お使いのブラウザでは正しく表示されません。");
        return 0;
}
function getBrowserLeft(obj,movLeft) {
		if(obj.body.scrollLeft != null){
			return obj.body.scrollLeft + movLeft;
		}else if(obj.documentElement.scrollLeft != null){
			return obj.documentElement.scrollLeft + movLeft;
		}
		alert("お使いのブラウザでは正しく表示されません。");
        return 0;
}







