function SFCS_DataSwap_changDIV_Image(Changed_DIV_ID,ImgURL){Changed_DIV=document.getElementById(Changed_DIV_ID);Changed_DIV.innerHTML='<img border="0" src="'+ImgURL+'">';}function SFCS_DIV_Display_SWAP(GroupDivS,ShowDiv,GroupCSSImgS,ShowCSSImg){SFCS_DIV_Display_SWAP_Second(GroupDivS,ShowDiv,GroupCSSImgS,ShowCSSImg,"InfoMenuLink","InfoMenuLinka");}function SFCS_DIV_Display_SWAP_Second(GroupDivS,ShowDiv,GroupCSSImgS,ShowCSSImg,OldClassName,NewClassName){var tempTag;if(GroupDivS!=""){GroupDivS_Array=GroupDivS.split(";");for(i=0;i<GroupDivS_Array.length;i++){tempTag=document.getElementById(GroupDivS_Array[i]);if(tempTag)tempTag.style.display="none";else alert("TagID not in page!!:["+GroupDivS_Array[i]+"]");}}if(ShowDiv!=""){tempTag=document.getElementById(ShowDiv);if(tempTag)tempTag.style.display="block";else alert("TagID not in page!!:["+ShowDiv+"]");}if(GroupCSSImgS!=""){GroupCSSImgS_Array=GroupCSSImgS.split(";");for(i=0;i<GroupCSSImgS_Array.length;i++){tempTag=document.getElementById(GroupCSSImgS_Array[i]);if(tempTag)tempTag.className=OldClassName;else alert("TagID not in page!!:["+GroupCSSImgS_Array[i]+"]");}}if(ShowCSSImg!=""){tempTag=document.getElementById(ShowCSSImg);if(tempTag)tempTag.className=NewClassName;else alert("TagID not in page!!:["+ShowCSSImg+"]");}};function SFCS_Class_DataSwap_Default(){this.arrayDivTags=new Array();this.arrayLinkTags=new Array();this.old_cssName="";this.new_cssName="Link";this.count=0;this.error=false;};SFCS_Class_DataSwap_Default.prototype.AppendTAG=function(DivTag,LinkTag){if(this.error)return false;tempDivTag=document.getElementById(DivTag);if(tempDivTag)this.arrayDivTags[this.count]=tempDivTag;else {this.error=true;alert("TagID not in page!!:["+DivTag+"]");}tempLinkTag=document.getElementById(LinkTag);if(tempLinkTag){this.arrayLinkTags[this.count]=tempLinkTag;}else {this.error=true;alert("TagID not in page!!:["+LinkTag+"]");}if(!this.error)this.count++;};SFCS_Class_DataSwap_Default.prototype.SwapDivAndLink_FromIndex=function(tIndex){if(this.error){alert(" Sorry!!\n some \"HTML TAG\" not be found !!\n Please Check \"HTML TAG\"");return false;}for(i=0;i<this.arrayDivTags.length;i++){this.arrayDivTags[i].style.display="none";}this.arrayDivTags[tIndex].style.display="block";for(i=0;i<this.arrayLinkTags.length;i++){this.arrayLinkTags[i].className=this.old_cssName;}this.arrayLinkTags[tIndex].className=this.new_cssName;};function SFCS_Class_DataSwap_LinkOnly(){this.arrayLinkTags=new Array();this.arrayLinkTagIDs=new Array();this.old_cssName="";this.new_cssName="Link";this.count=0;this.error=false;this.iFrameWindow=null;this.iFrameTag=null;};SFCS_Class_DataSwap_LinkOnly.prototype.AppendLinkTAG_Only=function(LinkTag){if(this.error)return false;tempLinkTag=document.getElementById(LinkTag);if(tempLinkTag){this.arrayLinkTagIDs[this.count]=LinkTag;this.arrayLinkTags[this.count]=tempLinkTag;}else {this.error=true;alert("TagID not in page!!:["+LinkTag+"]");}if(!this.error)this.count++;};SFCS_Class_DataSwap_LinkOnly.prototype.SwapLink_FromIndex=function(tIndex){if(this.error){alert(" Sorry!!\n some \"HTML TAG\" not be found !!\n Please Check \"HTML TAG\"");return false;}for(i=0;i<this.arrayLinkTags.length;i++){this.arrayLinkTags[i].className=this.old_cssName;}this.arrayLinkTags[tIndex].className=this.new_cssName;};SFCS_Class_DataSwap_LinkOnly.prototype.SetIframe=function(iframeID){if(document.all){this.iFrameWindow=document.frames(iframeID);this.iFrameTag=document.getElementById(iframeID);}else {this.iFrameWindow=document.getElementById(iframeID);this.iFrameTag=this.iFrameWindow;}};SFCS_Class_DataSwap_LinkOnly.prototype.ChangTargetFrame_Url=function(LinkIndex,Url){if(this.iFrameWindow){this.SwapLink_FromIndex(LinkIndex);if(document.all){this.iFrameWindow.location.href=Url;}else {this.iFrameWindow.src=Url;}}else {alert("you need set iframe for control!!");}};SFCS_Class_DataSwap_LinkOnly.prototype.ChangTargetFrame_UrlAndHeight_WithID=function(LinkID,Url,frameHeight){for(i=0;i<this.arrayLinkTagIDs.length;i++){if(this.arrayLinkTagIDs[i]==LinkID){this.ChangTargetFrame_UrlAndHeight(i,Url,frameHeight);break;}else {}}};SFCS_Class_DataSwap_LinkOnly.prototype.ChangTargetFrame_UrlAndHeight=function(LinkIndex,Url,frameHeight){if(this.iFrameWindow){this.SwapLink_FromIndex(LinkIndex);if(document.all){this.iFrameTag.style.height=frameHeight+'px';this.iFrameWindow.location.href=Url;}else {this.iFrameTag.style.height=(frameHeight+50)+'px';this.iFrameWindow.src=Url;}}else {alert("you need set iframe for control!!");}};SFCS_Class_DataSwap_LinkOnly.prototype.ChangTargetFrame_HeightOnly=function(frameHeight){if(this.iFrameWindow){if(document.all){this.iFrameTag.style.height=frameHeight+'px';}else {this.iFrameTag.style.height=(frameHeight+50)+'px';}}else {alert("you need set iframe for control!!");}};

