var gfunLookUp; var gbInputEnable; var gfunInit; var gstrFormName= ""; var gbWithButton = false; var gsTitle=""; var gsOverImage = ""; var gsOutImage = ""; var gsClickImage = ""; var gsText = ""; var gsBgColor = "#c0c0c0"; var gsBgImage = ""; var gbInImage = 0; var gbInputEnable = 0; var goTitleFont=null; var goInputFont=null; var goNormalFont=null; var goHoverFont=null; var gnType=-1; var gbWhForm=false; function setBackground(sBgImage) { if (sBgImage != null && sBgImage.length > 0) gsBgImage = sBgImage; if (gsBgImage && gsBgImage .length > 0) { document.body.background = gsBgImage ; } } function setBackgroundcolor(sBgColor) { if (sBgColor != null && sBgColor.length > 0) gsBgColor = sBgColor; if (gsBgColor&& gsBgColor.length > 0) { document.body.bgColor = gsBgColor; } } function setBtnType(sType) { if (sType == "image") { gnType = 0; } else if (sType == "text") { gnType = 1; } } function setGoImage1(sImage1) { gsOutImage = sImage1; if (gsOutImage && gsOutImage.length > 0) gbWithButton = true; } function setGoImage2(sImage2) { gsOverImage = sImage2; if (gsOverImage && gsOverImage.length > 0) gbWithButton = true; } function setGoImage3(sImage3) { gsClickImage = sImage3; if (gsClickImage && gsClickImage.length > 0) gbWithButton = true; } function setGoText(sText) { gsText = sText; if (gsText.length > 0) gbWithButton = true; } function setFont(sType, sFontName, sFontSize, sFontColor, sFontStyle, sFontWeight, sFontDecoration) { var vFont = new whFont(sFontName, sFontSize, sFontColor, sFontStyle, sFontWeight, sFontDecoration); if (sType == "Title") { goTitleFont = vFont; var vFont1 = new whFont(sFontName, sFontSize, "black", sFontStyle, sFontWeight, sFontDecoration); goInputFont=vFont1; } else if (sType == "Normal") goNormalFont = vFont; else if (sType == "Hover") goHoverFont = vFont; } function writeFormStyle() { var sStyle = ""; document.write(sStyle); } function lookupKeyDown() { if (gbInputEnable) { if (gbIE4) { if (event.keyCode == 13) //Enter key gfunLookUp(true); else gfunLookUp(false); } else gfunLookUp(false); } } function init() { if (gfunInit) gfunInit(); if (!window.Array) return; document.onkeyup = lookupKeyDown; } function inputSubmit() { if ((gbInputEnable && !gbIE4)|| gbInImage) gfunLookUp(true); } function inputEnable(bEnable) { gbInputEnable = bEnable; } function inImage(bImage) { gbInImage = bImage; } function getFormHTML() { var sForm = ""; sForm += "