

var tl=new Array(

"Thank you for visiting our development studio",
"online! We specialize in computer hardware",
"and software troubleshooting, networking, ",
"web design, website maintenance, and custom",
"web programming. We develop websites based on",
"W3C standards & latest Microsoft technologies."
);

var speed=35;
var index=0; text_pos=0;
var str_length=tl[0].length;
var contents, row;

function type_text()
{
	contents='';
	row=Math.max(0,index-7);
	while(row<index)
	contents += tl[row++] + '\r\n';
	document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_";

	if(text_pos++==str_length)
	{
		text_pos=0;
		index++;
		if(index!=tl.length)
		{
			str_length=tl[index].length;
			setTimeout("type_text()",700);
		}
	} 
	else
		setTimeout("type_text()",speed);
 
}

function openPictWin(imageName,imageWidth,imageHeight,alt,posLeft,posTop) 
{
    newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
    newWindow.document.open();
    newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
    newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}

function openPrivacy(strURL,intWidth,intHeight) 
{
    window.open(strURL,"","width="+intWidth+",height="+intHeight+",left=100,top=100");
}

function printWindow() 
{
	bV = parseInt(navigator.appVersion);
	if (bV >= 4) window.print();
}

/************** Form Validation *********************/

function validate_email(strng)
{
	var emailFilter=/^.+@.+\..{2,3}$/;
	var strEmail=strng.value;

	if (!(emailFilter.test(email)))
	{
		alert("Please enter a valid email address.");
		strng.focus();
		strng.select();
		return false;
	}
	return true;
}

function checkForm(frm)
{
	if(frm.name.value=="")
	{
		alert('Please enter your name');
		frm.name.focus();
		return false;
	}
	
	if(frm.Description.value=="")
	{
		alert('Please enter question or comment');
		frm.Description.focus();
		return false;
	}

	if(!validate_email(frm.email))
	{
		return false;
	}
	return true;
}




