﻿<!--
// 將隱藏表單或顯示
function ShowContent(theContent) 
 {
if (theContent.style.display == 'none') 
{
theContent.style.display = 'inline';
} 
else if (theContent.style.display == 'inline') 
{
theContent.style.display = 'none';
}
}


function ShowContent2(c1,c2) 
 {
c1.style.display = 'inline';
c2.style.display = 'none';
}

//圖片漸層出現功能
function high(which2)
{
theobject=which2
if (window.downlighting) clearInterval(downlighting)
highlighting=setInterval("highlightit(theobject)",50)
}

function low(which2)
{
clearInterval(highlighting)
theobject=which2
downlighting=setInterval("downlightit(theobject)",50)
}

function highlightit(cur2)
{
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

function downlightit(cur2)
{
if (cur2.filters.alpha.opacity>40)
cur2.filters.alpha.opacity-=5
else if (window.downlightit)
clearInterval(downlighting)
}

// 滑鼠移到變色
function red(st) 
{
//st.style.backgroundColor='#C21212';
st.style.backgroundColor='';
}

function gray(st) 
{
st.style.backgroundColor='#FCB6A9';  // #7F7F7F   #FFFF00
// st.style.backgroundColor='';
}
function BGColorGetPink(st) 
{
st.style.backgroundColor='#FCB6A9';  // #7F7F7F   #FFFF00
// st.style.backgroundColor='';
}

function BGColorGetNull(st) 
{
st.style.backgroundColor='' ;
}

// 設定表單控制項時間

function HandleDateStartNow()
{
// .src 圖
var d=new Date()
document.getElementById('ITDemandHandleDateStart').value = d.getUTCFullYear() + "/" + (d.getUTCMonth()+1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() ;
}

function HandleDateStartEnd()
{
var d=new Date()
document.getElementById('ITDemandHandleDateEnd').value = d.getUTCFullYear() + "/" + (d.getUTCMonth()+1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() ;
}

function APPDate()
{
// .src 圖
var d=new Date()
document.getElementById('ITDemandApplyDate').value = d.getUTCFullYear() + "/" + (d.getUTCMonth()+1) + "/" + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds() ;
}
//-->
