'**********************************************************
' createBannerFile
' @author: A.Buellesbach
' @description: creates a banner file for a webcontrol
' @param: sInput - string
'
' @return: the valid xml string
'**********************************************************	
Function createBannerFile(title,info,color)
	
	
	Dim fso, tempfile
	Set fso = CreateObject("Scripting.FileSystemObject")    
	Dim tfolder, tname, tfile
	Const TemporaryFolder = 2
	Set tfolder = fso.GetSpecialFolder(TemporaryFolder)
	tname = fso.GetTempName
	Set tfile = tfolder.CreateTextFile(tname)
	
	tfile.WriteLine "<html>"
	tfile.WriteLine "<head>"
	tfile.WriteLine "<style type='text/css'>"
	tfile.WriteLine "body { margin-left:0px; margin-top:0px;}"
	tfile.WriteLine "table { cellspacing='0' cellpadding='0' border='0'}"	
	tfile.WriteLine "</style>"
	tfile.WriteLine "<title>-</title>"
	tfile.WriteLine "</head>"
	tfile.WriteLine "<body style='overflow:hidden;'>"
	tfile.WriteLine "<table style='background-color:" & color & "' width='100%' height='60'>"
	tfile.WriteLine "<tr>"
	tfile.WriteLine "<td width='75%' align='left'>"
	tfile.WriteLine "<font size='6' face='Verdana' color='white'><b>" & title & "</b></font>"
	tfile.WriteLine "</td>"
	tfile.WriteLine "</tr>"
	tfile.WriteLine "</table>"
	tfile.WriteLine "</body>"
	tfile.WriteLine "</html>"
	tfile.Close
	
	createBannerFile = CStr(tfolder) & "\" & CStr(tname)
	
	Set fso = Nothing
End Function