
<!--

// Opens a new browser window (without controls) for external links
var win;
function ext(URL) {
    win = window.open(URL, "", 
    "resizable=1,toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0,copyhistory=0,width=680,height=420"); 
    win.location = URL;
    // win.focus();
}


// Opens a new browser window (without controls) for external links
var win;
function bigext(URL) {
    win = window.open(URL, ""); 
    win.location = URL;
    // win.focus();
}

// Opens a new browser window (without controls) for small flash or ppt presos

var win;
function presOext(URL) {
    win = window.open(URL, "", 
    "resizable=1,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,copyhistory=0,width=500,height=390");
    win.location = URL;
    // win.focus();
}

//opens the URL in a new window, center on the screen
//without any menubar, toolbar and other contorls
function centerpopup(URL,Name,Scroll){

   w = screen.availWidth;
   h = screen.availHeight;

var popW = 530, popH = 400;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;

window.open(URL,Name,'scrollbars='+ Scroll +',width=' + popW + ',height='+popH+',top='+topPos+',left='+leftPos);

}

// Swaps out an image 
// the arguments are:
//    1) the NAME of the image, and 
//    2) the location of the image file

function changeImages() {
    if (document.images ) { //&& (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

// Next two functions flip a mouseover image on and off
// Pass it a param representing the image to be fliped
// The NAME value of the image should be the same as the jpg
// The mouseover image should be the navbar image name plus "over"

function onImage(arg) {
   changeImages(arg, "images/" + arg + "-on.jpg"); 
}

function offImage(arg) {
   changeImages(arg, "images/" + arg + "-off.jpg");
}

// Next two functions flip a mouseover image on and off
// Pass it a param representing the image to be fliped
// The NAME value of the image should be the same as the gif
// The mouseover image should be the navbar image name plus "over"

function onImageGif(arg) {
   changeImages(arg, "images/" + arg + "-on.gif"); 
}

function offImageGif(arg) {
   changeImages(arg, "images/" + arg + "-off.gif");
}

function clearText(thefield){
  if (thefield.defaultValue==thefield.value){
    thefield.value = "";
  }
} 

//if (document.all) {
//    onLoad();
//}

function SetFontColor(obj){
obj.style.color="";

}

function ChangeFontColor(obj){
obj.style.color="#000000";
}


//Gets clients current date and time

function GetDateAndTime()
{
	MonthName = new Array(12);
	
	MonthName[0] = "January";		MonthName[1] = "February";		MonthName[2] = "March";
	MonthName[3] = "April";			MonthName[4] = "May";			MonthName[5] = "June";
	MonthName[6] = "July";			MonthName[7] = "August";		MonthName[8] = "September";
	MonthName[9] = "October";		MonthName[10] = "November";		MonthName[11] = "December";
	
	Today = new Date();

	nDay = Today.getDate();
	strMonth = MonthName[Today.getMonth()];
	nYear = Today.getYear();
	
   if (nYear < 1000)  nYear+=1900;
		
	FontStr = "<p align=\"left\"><font face=\"arial\" color=\"#FFFFFF\" size=\"2\">";	
	DateStr = "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; " + strMonth + "&nbsp;" + nDay + ",&nbsp;&nbsp;" + nYear + "</font></p>";
	
	document.writeln(FontStr + DateStr);
	
}
function CheckIt()
{
 if ((document.forms[0].elements[1].value=="")
    || (document.forms[0].elements[1].value==" "))
  { alert ("Please Note: First Name is a required field.");
    document.forms[0].elements[1].focus();
    document.forms[0].elements[1].select();
    return false;
  }
 if ((document.forms[0].elements[2].value=="")
    || (document.forms[0].elements[2].value==" "))
  { alert ("Please Note: Last Name is a required field.");
    document.forms[0].elements[2].focus();
    document.forms[0].elements[2].select();
    return false;
  }
 if ((document.forms[0].elements[4].value=="")
    || (document.forms[0].elements[4].value==" "))
  { alert ("Please Note: E-Mail Address is a required field.");
    document.forms[0].elements[4].focus();
    document.forms[0].elements[4].select();
    return false;
  }
 return true;
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_preloadImages() { //v3.0
  image1 = new Image();
  image1.src = "images/nav-company-on.jpg";
  image2 = new Image();
  image2.src = "images/nav-solutions-on.jpg";
  image3 = new Image();
  image3.src = "images/nav-services-on.jpg";
  image4 = new Image();
  image4.src = "images/nav-support-on.jpg";
  image5 = new Image();
  image5.src = "images/nav-partners-on.jpg";
  image6 = new Image();
  image6.src = "images/nav-news-on.jpg";
  image7 = new Image();
  image7.src = "images/nav-contacts-on.jpg";

  var d=document; 
  if(d.images) { 
  	if(!d.MM_p) {
  		d.MM_p=new Array();
  	}
    	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
    	for(i=0; i<a.length; i++)
    		if (a[i].indexOf("#")!=0){ 
    			d.MM_p[j]=new Image; 
    			d.MM_p[j++].src=a[i];
    		}
  }
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// -->