var headerImage = '';
var headerName = '';
var headerText = '';
var headerByline = '';
var headerLayout = '1';
var myImages = new Array();
var myLoads = new Array();
var myProtocol = location.protocol.slice(0,-1);
var myServer = window.location.host;
var myPath = window.location.pathname.slice(0, window.location.pathname.lastIndexOf("/") + 1);
if (navigator.appName != "microsoft internet explorer")
{
self.focus();
}
else
{
var version = parsefloat(navigator.appVersion)
if(version >= 4) self.focus();
}
self.name = "so_main";
function ViewHelp()
{
window.open("", 'so_help', 'history=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=400,height=400');
}
function ViewAssistance()
{
window.open("", 'so_assistance', 'history=no,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=400,height=400');
}
function CheckMenuChoice(MenuObject)
{
if(MenuObject.options[0].selected == false)
document.forms[0].submit();
}
// load images from myImages array
function preloadImages(){
myPosition = 0;
while (myPosition < myImages.length){
eval("var Preloaded" + myPosition + " = new Image()");
eval("Preloaded" + myPosition + ".src = myImages[" + myPosition + "]");
myPosition++;
}
}
// execute statements from myLoads array
function execOnload(){
for (myPosition = 0; myLoads.length > myPosition; myPosition++) eval(myLoads[myPosition]);
}
// determine if "Enter" has been pressed
function pressEnter(myCall, event)
{
var myKeyCode = event.keyCode;
if(document.all) // Internet Explorer
{
event.cancelBubble = true;
if(myKeyCode == 13)
{
event.returnValue = false;
}
}
else // All Others
{
if(myKeyCode == 13)
{
event.preventDefault(true);
}
}
if(myKeyCode == 13)
{
eval(myCall);
}
}
// simulate "press button" event
function pressButton(myButtonName,myButtonValue){
myForm = document.forms[0];
myForm._RESERVED_.value = myButtonValue;
myForm._RESERVED_.name = myButtonName;
myForm.submit();
}
// build URL of an image considering protocol and preview state
function makeImageURL(myImageURL){
if ((PreviewState == 'preview') && (myImageURL.substr(0,8) == '/members')) myImageURL = '/preview' + myImageURL;
if (myImageURL.substr(0,4) != 'http') myImageURL = 'http://www.storesonline.com' + myImageURL;
return myImageURL;
}
// build an IMG tag for images displayed through image wrapper
function makeImage(myImageURL,myMaxWidth,myMaxHeight,myAttributes){
if (!myImageURL) return false;
myImageURL = makeImageURL(myImageURL);
if (myImageURL.match(/gif$/i)) myImageFormat = '&output=gif';
else myImageFormat = '';
myMaxHeight = (myMaxHeight) ? '&picture.height.max=' + myMaxHeight : '';
myMaxWidth = (myMaxWidth) ? '&picture.width.max=' + myMaxWidth : '';
if (!myAttributes) myAttributes = '';
else myAttributes = " " + myAttributes;
theImage = '';
return theImage;
}
// build spacer image
function drawSpacer(myWidth,myHeight){
if (!myWidth) myWidth = '1';
if (!myHeight) myHeight = '1';
mySpacer = "
";
return mySpacer;
}
// build number image for form elements
function drawFormNumber(inNumber,inNumColor,inBgColor,inStageColor){
var myAttributes = '';
if (inNumber) myAttributes += 'label.text=' + inNumber + '&';
if (inNumColor) myAttributes += 'label.fill.color=' + inNumColor + '&';
if (inBgColor) myAttributes += 'background.fill.color=' + inBgColor + '&';
if (inStageColor) myAttributes += 'stage.color=' + inStageColor + '&';
var myNumber = '
';
return myNumber;
}
// split Link syntax into HREF and Link
function splitLink(myCombValue){
if (!myCombValue || (myCombValue == '')) return false;
var myURL = myCombValue.slice(9, myCombValue.indexOf(">") - 1);
var myName = myCombValue.slice(myCombValue.indexOf(">") + 1, myCombValue.indexOf(""));
return Array(myURL,myName);
}
// build complete SELECT tag of a fixed-width drop-down box
function makeDropBox(myDropBox,myDelimiter,myWidth){
if ((myDropBox == '') || (myDelimiter == '') || (myWidth == '')) return false;
myDelimiter = Number(myDelimiter);
myWidth = Number(myWidth);
myDropBox = unescape(myDropBox);
myDropBox = myDropBox.slice(myDropBox.indexOf(">")+1);
myDropBox = myDropBox.slice(0,myDropBox.indexOf(""));
myOptions = myDropBox.split("")
myDropBox = '";
return myDropBox;
}
// build opening Form tag for form.html page
function OpenFormTag(myServer,myPreview,myEntry){
if (window.location.host.indexOf('.solint.net') >= 0){
return "