function SetNameArray(item)
                {
                        this.length = item
                        return this
                }

        Month = new SetNameArray(12)
        Month[1] = "January"
        Month[2] = "February"
        Month[3] = "March"
        Month[4] = "April"
        Month[5] = "May"
        Month[6] = "June"
        Month[7] = "July"
        Month[8] = "August"
        Month[9] = "September"
        Month[10] = "October"
        Month[11] = "November" 
        Month[12] = "December"
        
        WeekDay = new SetNameArray(7)
        WeekDay[1] = "Sunday"
        WeekDay[2] = "Monday"
        WeekDay[3] = "Tuesday"
        WeekDay[4] = "Wednesday"
        WeekDay[5] = "Thursday"
        WeekDay[6] = "Friday"
        WeekDay[7] = "Saturday"
                function TodaysDate(theDate)
                        {
        var theWeekDay = WeekDay[theDate.getDay() + 1]
        var theMonth = Month[theDate.getMonth() + 1]
        var theYear = theDate.getYear() + 0000

	return theWeekDay + ", " + theDate.getDate() + " " + theMonth + ", " + theYear
}



function func_550_460(pagename)
	{
		window.open(pagename,'Support', 'width=550, height=460, menubar=n0, resizable=no, dependent=yes,  hotkeys=yes, scrollbars=yes, status=no, toolbar=no');
	}

function func_350_350(pagename)
	{
		window.open(pagename,'Support', 'width=350, height=350, menubar=no, resizable=no, dependent=yes,  hotkeys=yes, scrollbars=yes, status=no, toolbar=no');
	}

function func_350_250(pagename)
	{
		window.open(pagename,'Support', 'width=350, height=250, menubar=no, resizable=no, dependent=yes,  hotkeys=yes, scrollbars=yes, status=no, toolbar=no');
	}

function func_550_460R(pagename)
	{
		window.open(pagename,'Support', 'width=550, height=460, menubar=n0, resizable=yes, dependent=yes,  hotkeys=yes, scrollbars=yes, status=no, toolbar=no');
	}



function SelCheckbox(form) {

if (form.attach.checked == true)
{
	alert("You have selected to attach the file(s). \nFor attachment you need to submit the \n request and on the next page you are able \n to attach the files.");
}
}






function checkFile(form)
{

  if (form.uploadfile.value.length == 0)
  {
    alert("Please select \"file to attach\".");
    form.uploadfile.focus();
    return (false);
  }
 
  return (true);
}
 

 

 
function LimitAttach(form, file) {
extArray = new Array(".gif", ".jpg", ".png", ".doc", ".pdf", ".xls");
 allowSubmit = false;
 

if (!file == true)
{
	alert("Please select file with following "+ (extArray.join("  ")) +" extention.\n It cannot be blank. ");
}



 if (!file) return;
  while (file.indexOf("\\") != -1)
   file = file.slice(file.indexOf("\\") + 1);
   ext = file.slice(file.indexOf(".")).toLowerCase();
   for (var i = 0; i < extArray.length; i++) {
    if (extArray[i] == ext) { allowSubmit = true; break; }
   }
 
   if (allowSubmit) form.submit();
 else
  alert("Please only upload files that end in types:  " 
  + (extArray.join("  ")) + "\nPlease select a new "
  + "file to upload and submit again.");

}


