<!--
	var testing="";
	//var basedir="http://localhost/sofstrat/"+testing;	//Base directory
	//var basedir="http://www.sofstrat.com/"+testing;	//Base directory
	var ricky="set";
	var ric=document.domain;
	if (document.domain=="localhost"){
		var basedir="http://localhost/sofstrat/"+testing;
		var secdir="http://localhost/sofstrat/"+testing;
	}
	else{
		var basedir="http://www.sofstrat.com/"+testing;
		var secdir="https://deona.site-secure.net/idsol/"+testing;
	}	//*/
	basedir="";
	//Defualt Prefix for open window
	defuseprfx="hosting/dialup/";

	var day = new Date()
	var colorovr="#293F70"
	var colorout="white"		//"#F3EAB9"
	
	var defSlogan_line1="Supporting";
	var defSlogan_line2="your";
	var defSlogan_line3="strategic goals";
	

/*********************************************************************
					BEGIN CONTACT VARIABLES
 *********************************************************************/
	var busName="Sofstrat Technology";
	var addr1="P. O. Box 25087";
	var addr2=""
	var city="Greenville"
	var state="SC"
	var zip="29616-5087"
	var located=" ";
	var brpoint="<br>"
	var busemail="customerservice@sofstrat.com";
	var vemail="info@sofstrat.com";
	var vphone="(864) 236-4876";
	var vfax="(928) 962-8168";
	var vcell="";
	var votherphone="";
	
	var ArrayNum=3;
	var ArrayDim=2;
	var servicelist= new Array(3);
	servicelist[0]=new Array(2);
	servicelist[0][0]="General Info";
	servicelist[0][1]="info@sofstrat.com";

	servicelist[1]=new Array(2);
	servicelist[1][0]="Sales";
	servicelist[1][1]="sales@sofstrat.com";

	servicelist[2]=new Array(2);
	servicelist[2][0]="Customer Service";
	servicelist[2][1]="service@sofstrat.com";
	

	function listEmail(brk, twocol, tcolor){
			//alert("test");
		if(!tcolor){tcolor="#fff";}
		if(!brk) brk=brpoint;
		
		if(!twocol) { 
			rapst="";
			rapst1="";
			rapfn="";
		}
		else {
			rapst="<div style='color:"+tcolor+";float:left;width:38%;text-align:right;'>";
			raps1t="<div style='text-align:left;width:62%;'>";
			rapfn="</div>";
		}
		for (p=0;p<ArrayNum;p++){
			document.write(rapst+"<a style='color:"+tcolor+";' href='mailto:"+servicelist[p][1]+"'>"+servicelist[p][0]+"</a>"+brk+rapfn);
			if(!twocol){}
			else{
				document.write(raps1t+servicelist[p][1]+rapfn);
			}
		}	//for (p=0;p<ArrayNum;p++)
		
	}	//function listEmail()
/*********************************************************************
					END CONTACT VARIABLES
 *********************************************************************/
	

/*********************************************************************
					BEGIN MARQUEE CODING VARIABLES
 *********************************************************************/
//Specify the marquee's width (in pixels)
var marqueewidth="280px";
//Specify the marquee's height
var marqueeheight="15px";
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1;
//configure background color:
var marqueebgcolor="#FFFFFF";
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1;
//Interval between each frame speed
var intrv=20;
//font size for marquee text
var fsize=15;

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var marqueecontent='<nobr><font face="Arial" style="font-size:'+fsize+';color:#C5E7E8;">"The God of heaven Himself will prosper us; therefore we His servants will arise and build..." <a href="http://bible.gospelcom.net/bible?language=english&version=NKJV&passage=Nehemiah+2:20" target="_blank">Nehemiah 2:20</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></nobr>';

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualwidth=''
var cross_marquee, ns_marquee
/*********************************************************************
					END MARQUEE CODING VARIABLES
 *********************************************************************/

 /*********************************************************************
					BEGIN SLIDESHOW VARIABLE
 *********************************************************************/

	//Fade-in image slideshow- By Dynamic Drive
	//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
	//This credit MUST stay intact for use
	
	var slideshow_width='144px' //SET IMAGE WIDTH
	var slideshow_height='172px' //SET IMAGE HEIGHT
	var pause=4000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
	
	var fadeimages=new Array()
	//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages[0]=basedir+"images/mainpage/workers.jpg"
	fadeimages[1]=basedir+"images/mainpage/consultant.jpg"
	//fadeimages[2]="photo3.jpg" <img src="../images/mainpage/consultant.gif" width="144" height="172" border="0" alt="">
	
	////NO need to edit beyond here/////////////
	
	var preloadedimages=new Array()
	
	var ie4=document.all
	var dom=document.getElementById
	
	var curpos=10
	var degree=10
	var curcanvas="canvas0"
	var curimageindex=0
	var nextimageindex=1

/*********************************************************************
					END SLIDESHOW VARIABLE
 *********************************************************************/

/*********************************************************************
					BEGIN FONT HIGHLIGHT VARIABLES
 *********************************************************************/
	var dhtml = 'NO', no = 0, enlarge_font = 1;
	var colorovr="#293F70"
	var colorout="white"		//"#F3EAB9"

	if (document.layers)
	    dhtml = 'NN'; // Netscape 4+ feature detected
	if (document.all) 
	    dhtml = 'IE'; // IE 4+ feature detected
/*********************************************************************
					END FONT HIGHLIGHT VARIABLES
 *********************************************************************/

/*********************************************************************
					BEGIN MARQUEE functionS
 *********************************************************************/

function scrollmarquee(){
	if (iedom){
		if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
		cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
		else
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
	}	//if (iedom)
	else if (document.layers){
		if (ns_marquee.left>(actualwidth*(-1)+8))
		ns_marquee.left-=copyspeed
		else
		ns_marquee.left=parseInt(marqueewidth)+8
	}	//else if (document.layers)
}	//function scrollmarquee()

function populate(){
	if (iedom){
		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
		cross_marquee.innerHTML=marqueecontent
		actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
	}	//if (iedom)
	else if (document.layers){
		ns_marquee=document.ns_marquee.document.ns_marquee2
		ns_marquee.left=parseInt(marqueewidth)+8
		ns_marquee.document.write(marqueecontent)
		ns_marquee.document.close()
		actualwidth=ns_marquee.document.width
	}	//else if (document.layers)
	lefttime=setInterval("scrollmarquee()",intrv)
}	//function populate()

function startMarquee(){

	if (iedom)
	document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')
	
	if (iedom||document.layers){
		with (document){
			document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
			if (iedom){
				write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
				write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
				write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
				write('</div></div>')
			}
			else if (document.layers){
				write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
				write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
				write('</ilayer>')
			}	//else if (document.layers)
			document.write('</td></table>')
		}	//with (document)
	}	//if (iedom||document.layers)
}	//function startMarquee()

/*********************************************************************
					BEGIN MARQUEE functionS
 *********************************************************************/

 
/*********************************************************************
					BEGIN SLIDESHOW FUNCTION
 *********************************************************************/

function beginSlideShow(){
	for (p=0;p<fadeimages.length;p++){
		preloadedimages[p]=new Image()
		preloadedimages[p].src=fadeimages[p]
	}

	if (ie4||dom)
		document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
	else
		document.write('<img name="defaultslide" src="'+fadeimages[0]+'" alt="Arise And Build">')

	if (ie4||dom) {
		startit();
	}
	else {
		setInterval("rotateimage()",pause)
	}
}

function fadepic(){
	if (curpos<100){
	curpos+=10
	if (tempobj.filters)
	tempobj.filters.alpha.opacity=curpos
	else if (tempobj.style.MozOpacity)
	tempobj.style.MozOpacity=curpos/100
	}
	else{
	clearInterval(dropslide)
	nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
	tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
	tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'">'
	nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
	setTimeout("rotateimage()",pause)
	}
}

function rotateimage(){
	if (ie4||dom){
	resetit(curcanvas)
	var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	crossobj.style.zIndex++
	var temp='setInterval("fadepic()",50)'
	dropslide=eval(temp)
	curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
	}
	else
	document.images.defaultslide.src=fadeimages[curimageindex]
	curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
	curpos=10
	var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
	if (crossobj.filters)
	crossobj.filters.alpha.opacity=curpos
	else if (crossobj.style.MozOpacity)
	crossobj.style.MozOpacity=curpos/100
}

function startit(){
	var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	//alert("ok "+curcanvas);
	crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
	rotateimage()
}

/*********************************************************************
					END SLIDESHOW FUNCTION
 *********************************************************************/

/*********************************************************************
					BEGIN GENERAL NOTICE function
 *********************************************************************/
function successmessage(){
	document.writeln(topleftmenutext);
}
/*********************************************************************
					END GENERAL NOTICE function
 *********************************************************************/

/*********************************************************************
					BEGIN CONTACT function
 *********************************************************************/
function mailAdr(nm){
	if(!nm) {nm=""}
	else {
		document.writeln("<b>"+busName+"</b>"+brpoint);
	}
	
	document.writeln(addr1+brpoint);
	if(addr2){document.writeln(addr2+brpoint);}
	document.writeln(city +", " + state + " " + zip);
}

function phone(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vphone);
}

function fax(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vfax);
}

function cell(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(vcell);
}

function otherphone(txt){
	if(!txt){}
	else {document.writeln(txt);}
	document.writeln(votherphone);
}

function locatedText(txt){
	if(txt){document.writeln(txt);}
	document.writeln(located);
}

function email(txt,otxt,tcolor){
	if (!tcolor){tcolor="#fff";}
	tcolor="style=\"color : "+tcolor+";\"";
	if(!txt){
		document.writeln("<a "+tcolor+"href='mailto:'"+vemail+">"+vemail+"</a>");
	}
	else {
		if(!otxt){}
		else {document.writeln(otxt);}
		document.writeln("<a href='mailto:"+txt+"'>"+txt+"</a>");
	}	//if(txt){
}	//function emailaddress(txt,otxt)

function emailaddress(txt,wrdtxt){
	if(!txt){}
	else {
		/*
		if(!otxt){}
		else {document.writeln(otxt);}
		*/
		if(!wrdtxt){wrdtxt=txt;}
		//else {document.writeln(wrdtxt);}
		document.writeln("<a href='mailto:"+txt+"'>"+wrdtxt+"</a>");
	}	//if(txt){
}	//function emailaddress(txt,otxt)

/*********************************************************************
					END CONTACT function
 *********************************************************************/
	
	
/*********************************************************************
					BEGIN 	DATE/TIME FUNCTIONS
 *********************************************************************/
 
	function gettheDate(layout) {
		var dt= new Array(13);
		dt[1]="January";
		dt[2]="February";
		dt[3]="March";
		dt[4]="April";
		dt[5]="May";
		dt[6]="June";
		dt[7]="July";
		dt[8]="August";
		dt[9]="September";
		dt[10]="October";
		dt[11]="November";
		dt[12]="December";
		//Todays = new Date();
		//alert(day.getYear()+" is year!");
		TheDate = "" + dt[(day.getMonth()+ 1)] +" "+ day.getDate() + ", " + day.getYear() 
		return TheDate;
	}

	function dayseason(){
		ds=timeofday()
		if (ds=="monring") ds="day"
		return ds
	}
 
 function timeofday(){
 	var timeday="";

	hr = day.getHours()
	if (hr>=1 && hr<12) timeday="morning"
	else if(hr>=12 && hr<17) timeday="afternoon"
	else if(hr>=17 && hr<21) timeday="evening"
	else if(hr>=21 && hr<24) timeday="night"
	else timeday="Monring"
	return timeday;
 }
/*********************************************************************
					END DATE/TIME FUNCTIONS
 *********************************************************************/
/*********************************************************************
					BEGIN MENU FUNCTIONS
 *********************************************************************/
function aMenu(bt, pic,clr,aclr,bsize,asize,whichpage){
	//alert(clr+", "+aclr);
	//exit;
	oneclr=clr;
	twoclr=clr;
	threeclr=clr;
	fourclr=clr;
	fiveclr=clr;
	sixclr=clr;
	oneaclr=aclr;
	twoaclr=aclr;
	threeaclr=aclr;
	fouraclr=aclr;
	fiveaclr=aclr;
	sixaclr=aclr;
	if (whichpage=="one") oneclr="#F89E2A"
	if (whichpage=="two") twoclr="#F89E2A"
	if (whichpage=="three") threeclr="#F89E2A"
	if (whichpage=="four") fourclr="#F89E2A"
	if (whichpage=="five") fiveclr="#F89E2A"
	if (whichpage=="six") sixclr="#F89E2A"
	
	dLink(basedir+'','Home',oneclr,oneaclr,bsize,asize);
	if(pic=="nopic") 
		sep="&nbsp;&nbsp;<font color=\""+clr+"\">|</font>&nbsp;&nbsp;"
	else
		sep="<img src='"+basedir+"images/common/arrows.gif' width='14' height='11' border='0'>";
	
	
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	//dLink('http://www.sofstrat.com/cgi-bin/wmail/wmail.pl','Check Email',twoclr,twoaclr,bsize,asize);
	dLink(basedir+'?aboutusweb','About Us',twoclr,twoaclr,bsize,asize);
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink(basedir+'?webservices','Services',threeclr,threeaclr,bsize,asize);
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink(basedir+'?pricing','Pricing',fiveclr,fiveaclr,bsize,asize);
	/*
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink(basedir+'','Support','white','100','100');
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	
	dLink(basedir+'','Downloads','white','100','100');
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink(basedir+'?whois','WhoIs',fourclr,fouraclr,bsize,asize);
	*/
	if(bt=="Yes") footertag()
}

function aMenusof(bt, pic,clr,aclr,bsize,asize,whichpage){
	//alert(clr+", "+aclr);
	//exit;
	oneclr=clr;
	twoclr=clr;
	threeclr=clr;
	fourclr=clr;
	fiveclr=clr;
	sixclr=clr;
	oneaclr=aclr;
	twoaclr=aclr;
	threeaclr=aclr;
	fouraclr=aclr;
	fiveaclr=aclr;
	sixaclr=aclr;
	if (whichpage=="one") oneclr="#F89E2A"
	if (whichpage=="two") twoclr="#F89E2A"
	if (whichpage=="three") threeclr="#F89E2A"
	if (whichpage=="four") fourclr="#F89E2A"
	if (whichpage=="five") fiveclr="#F89E2A"
	if (whichpage=="six") sixclr="#F89E2A"
	
	dLink('?sof','Home',oneclr,oneaclr,bsize,asize);
	if(pic=="nopic") 
		sep="&nbsp;&nbsp;<font color=\""+clr+"\">|</font>&nbsp;&nbsp;"
	else
		sep="<img src='"+basedir+"images/common/arrows.gif' width='14' height='11' border='0'>";
	
	
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	//dLink('http://www.sofstrat.com/cgi-bin/wmail/wmail.pl','Check Email',twoclr,twoaclr,bsize,asize);
	dLink('?aboutus','About Us',twoclr,twoaclr,bsize,asize);
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink('?servicesof','Services',threeclr,threeaclr,bsize,asize);
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");
	dLink('?sofprice','Pricing',fourclr,fiveaclr,bsize,asize);
	document.writeln("				&nbsp;&nbsp;"+sep+"&nbsp;&nbsp;");

	dLink('?news','News',fiveclr,fouraclr,bsize,asize);
	if(bt=="Yes") footertag()
}

function access(aBase,suf){
	if (!aBase){
		aBase="";
	}	//if (!aBase)
	
//alert ("suf is "+aBase);
	if (!suf){
		suf="";
	}	//if (!suf)
	else if (suf="Software"){
		suf="of";
	}	//if (!suf) else

	//contactusof
	document.write("				<font class='smfont'>");
	document.write("					<a href='"+aBase+"?contactus"+suf+"' class='orange' style='font-weight:bold;font-size:13px;' title='Contact US'>Contact Us</a>  |"); 
	document.write("					<a href='"+aBase+"?web'><img src='"+aBase+"images/common/home.gif' width='13'"); 
	document.write("					height='14' border='0' alt='Home'></a>&nbsp;");
	document.write("					|&nbsp;");
	document.write("					<a href='"+basedir+"?mail"+suf+"'>");
	document.write("						<img src='"+aBase+"images/common/email.gif' "); 
	document.write("						border='0' alt='Check Email'>");
	document.write("					</a>&nbsp;&nbsp;");
	document.write("					|&nbsp;");
	document.write("					<a href='/techsupport"+suf+"'>");
	document.write("						<img src='"+aBase+"images/common/key.gif' width='9'"); 
	document.write("						height='14' border='0' alt='Key Info'>");
	document.write("					</a>&nbsp;&nbsp;");
	document.write("				</font>");
}	//function access()

function htmlheader(){
	document.writeln("<script type='text/javascript'>");
	document.writeln("//HV Menu- by Ger Versluis (http://www.burmees.nl/)");
	document.writeln("//Submitted to Dynamic Drive (http://www.dynamicdrive.com)");
	document.writeln("//Visit http://www.dynamicdrive.com for this script and more");
	document.writeln("function Go(){return}");
	document.writeln("</script>");
	document.writeln("<script type='text/javascript' src='"+basedir+"functions/exmplmenu_var.js'></script>");
	document.writeln("<script type='text/javascript' src='"+basedir+"functions/menu_com.js'></script>");
	document.writeln("<noscript>Your browser does not support script</noscript>");
}	//
 
function manualMenu(){
	//alert("this is a test");
	//htmlheader();
	document.writeln("			<div id='MenuPos' style='position:absolute;margin-top : -9px;margin-left:-22;'> </div>");
}	//manualMenu()

/*********************************************************************
					END MENU FUNCTIONS
 *********************************************************************/
/*********************************************************************
					BEGIN WINDOW FUNCTIONS
 *********************************************************************/
function lrgPrint(urlinfo){ 
	if(urlinfo=="webinfo"){
		url="otherinfo/webdevinfo.htm";
	}	//
	else if(urlinfo=="priceinfo"){
		url="otherinfo/webpricingChart.htm";
	}	//
	/*
	alert(basedir+" test");
	*/
	winOpen(url,'cinfo','468','600','100','100','1',basedir);
		/*
	<a href="javascript:winOpen('<?echo $basehtml;?>otherinfo/webdevinfo.htm','cinfo','668','600','100','100','1')" style="color:blue;">
		Click Here</a>
		*/
	
}	//function lrgPrint()

var popWin="";
 
function loadNClose(url,winName,h,w,l,t,s,useprfx){
	winOpen(url,winName,h,w,l,t,s,useprfx);
	popWin.focus();
	//function
	//var t=setTimeout("popWin.document.write(\"<a href='javascript:window.close()' title='close download window'>Close Window</a>\")",5000)
	var t=setTimeout("popWin.close()",30000)
}	//function loadNClose(url,winName,h,w,l,t,s,useprfx)

function winOpen(url,winName,h,w,l,t,s,useprfx){
	if(!useprfx) {useprfx=defuseprfx;}
	
	url=useprfx+url;

	if(!s)(s=0)

	win_Pop=window.open(url,winName,"height="+h+",width="+w+",left="+l+",scrollbars="+s+",top="+t+"");
	popWin=win_Pop;
}	//function winOpen(){

/*********************************************************************
					END WINDOW FUNCTIONS
 *********************************************************************/

/*********************************************************************
					BEGIN IMAGES FUNCTIONS
 *********************************************************************/
function MM_preloadImages() { //v3.0
  var d=document,kj; 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_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_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];}
   
}
/*********************************************************************
					END IMAGES FUNCTIONS
 *********************************************************************/
 
/*********************************************************************
					BEGIN HEADER/FOOTER FUNCTIONS
 *********************************************************************/
function templateHeader(whpage,Slogan_line1,Slogan_line2,Slogan_line3){
	if(!Slogan_line1) Slogan_line1=defSlogan_line1;
	if(!Slogan_line2) Slogan_line2=defSlogan_line2;
	if(!Slogan_line3) Slogan_line3=defSlogan_line3;
	
	document.write("	<script type=\'text/javascript\' src=\'"+basedir+"functions/exmplmenu_var.js\'></script>");
	document.write("	<script type=\'text/javascript\' src=\'"+basedir+"functions/menu_com.js\'></script>");
	document.write("	<noscript>Your browser does not support script</noscript>");
	document.write('<div id="page_wrapper">');
	document.write("	<!-- header -->");
	document.write("	<div id='header'>");
	document.write("		<div id='logo' style='float:left;'>");
	document.write("			<img src='"+basedir+"images/common/largeLogo.jpg' border='0' alt='Software Company'>");
	document.write("		</div>");
	document.write("		<div id='words' style='text-align : right;'>");
	document.write("		<br><font style='color:#293F6F;font-size:20px;font-family:\'Arial Black\''>");
	document.write("		DESIGNING WEBSITES");
	document.write("		</font><br>");
	document.write("		<font style='color:#60A1E1;font-size:14px;font-family:\'Arial Black\''>");
	document.write("		THAT ADDS VALUE");
	document.write("		</font>");
	document.write("		</div>");
	document.write("	</div>");
	document.write("	");
	document.write("	<!--top -->");
	document.write("	<div id='top'>");
	document.write("		<div style='margin-left:5px;width:47px;float:left;'><img src='"+basedir+"images/common/femalesmile.jpg' border='0' alt=''></div>");
	document.write("		<div style='margin:6px 0px 0px 2px;width:233px;float:left;color:#fff;font-size:22px;font-family:Arial;'>");
	document.write("			Taking you to the top");
	document.write("		</div>");
	document.write("		<div id='Topright'>");
	document.write("			<script type='text/javascript' language='javascript' src='"+basedir+"functions/liveclock.js'>");
	document.write("			</script>&nbsp;&nbsp;<br>");
	document.write("			<script type='text/javascript'>access();</script>");
	document.write("		</div>");
	document.write("	</div>");
	document.write("	<div id='MenuPos'></div>");
	document.write("	<div id='wrapper'>");
	document.write("		<div id='adText'>");
	document.write('');
	document.write('		<div style="margin-left:5px;">'+Slogan_line1+'</div>');
	document.write('		<div id="adTextsm" align="center">'+Slogan_line2+'</div>');
	document.write('		<div align="right" style="margin-right:5px;">'+Slogan_line3+'</div>');
	document.write("		</div>");
	document.write("		<div id='pic'>");
	document.write("			<img src='"+basedir+"images/subpages/blank.jpg' border='0' alt='We are serious about your business'>");
	document.write("		</div>");
	document.write("	</div>");
}	//function templateHeader()

function templateFooter(whpage){
	document.write("	<!--footer-->");
	document.write("	<div id='footer'>");
	document.write("		<p class='column_in'><script type='text/javascript'>footertag(\'2003\')</script></p>");
	document.write("	</div>");
	document.write("</div>");
}	//function templateFooter()

function header(){
	document.writeln ("<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"698\" HEIGHT=\"86\">");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("	<TD ROWSPAN=\"2\" COLSPAN=\"1\" WIDTH=\"213\" HEIGHT=\"61\" background=\""+basedir+"images/subpages/myownsub_1x1.jpg\">");
	document.writeln ("	</TD>");
	document.writeln ("	<TD ROWSPAN=\"1\" COLSPAN=\"2\" WIDTH=\"485\" HEIGHT=\"31\" background=\""+basedir+"images/subpages/myownsub_1x2.jpg\">");
	document.writeln ("	</TD>");
	document.writeln ("</TR>");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("	<TD ROWSPAN=\"1\" COLSPAN=\"2\" WIDTH=\"485\" HEIGHT=\"30\" background=\""+basedir+"images/subpages/myownsub_2x1.jpg\">");
	document.writeln ("	</TD>");
	document.writeln ("</TR>");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("	<TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"213\" HEIGHT=\"19\" background=\""+basedir+"images/subpages/myownsub_3x1.jpg\">");
	document.writeln ("	</TD>");
	document.writeln ("	<TD ROWSPAN=\"1\" COLSPAN=\"2\" WIDTH=\"485\" HEIGHT=\"19\" background=\""+basedir+"images/subpages/myownsub_3x2.jpg\">");
	document.writeln ("	</TD>");
	document.writeln ("</TR>");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("<TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"213\" HEIGHT=\"5\" background=\""+basedir+"images/subpages/myownsub_4x1.jpg\">");
	document.writeln ("</TD>");
	document.writeln ("<TD ROWSPAN=\"1\" COLSPAN=\"2\" WIDTH=\"485\" HEIGHT=\"5\" background=\""+basedir+"images/subpages/myownsub_4x2.jpg\">");
	document.writeln ("</TD>");
	document.writeln ("</TR>");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("<TD ROWSPAN=\"1\" COLSPAN=\"2\" WIDTH=\"583\" HEIGHT=\"1\" background=\""+basedir+"images/subpages/myownsub_5x1.jpg\">");
	document.writeln ("</TD>");
	document.writeln ("<TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"115\" HEIGHT=\"1\" background=\""+basedir+"images/subpages/myownsub_5x2.jpg\">");
	document.writeln ("</TD>");
	document.writeln ("</TR>");
	document.writeln ("");
	document.writeln ("<TR>");
	document.writeln ("	<TD WIDTH=\"213\" HEIGHT=\"1\" background=\""+basedir+"images/subpages/blank.gif\">");
	document.writeln ("	</TD>");
	document.writeln ("	<TD WIDTH=\"370\" HEIGHT=\"1\" "+basedir+"images/subpages/blank.gif>");
	document.writeln ("	</TD>");
	document.writeln ("	<TD WIDTH=\"115\" HEIGHT=\"1\" background=\""+basedir+"images/subpages/blank.gif\">");
	document.writeln ("	</TD>");
	document.writeln ("	</TR>");
	document.writeln ("</TABLE>");
}	//function header()

function footer(){
}	//function footer()

function footertag(stYear){
	//			Sofstrat Technology &copy Copyright 2003 - 2004.  All rights reserved.

	if (!stYear) {
		stYear=day.getYear();
	}
	else {
		stYear=stYear+" - "+day.getYear();
	}
	document.writeln("<font class='orange'>Sofstrat Technology &copy "+stYear+"</font>");

	document.writeln("&nbsp;&#183&nbsp;");
	document.write("<a target='_blank' class='blue' href='?policy'>Privacy Policy</a>")

	
	document.writeln("&nbsp;&#183&nbsp;");
	document.write("<a target='_blank' class='blue' href='?servicelevelagreement'>Terms of Use</a>")
	
}	//function footertag()
/*********************************************************************
					BEGIN HEADER/FOOTER FUNCTIONS
 *********************************************************************/

/*********************************************************************
					BEGIN FONT HIGHLIGHT FUNCTIONS
 *********************************************************************/
function mover(object,afr,aclr) {
    //alert ("Can we win mover???");
	if (dhtml == 'IE') {
        eval(object + '.style.color = "'+aclr+'"');
        if (enlarge_font==1)
           eval(object + '.style.fontSize = "'+afr+'%"');
        }	//if (dhtml == 'IE')
    else if (dhtml == 'NN') {
        eval('document.layers["' + object +
             'b"].moveBelow(document.layers["' + object + 'a"])');
        eval('document.layers["' + object + 'b"].visibility="hide"');
        eval('document.layers["' + object + 'a"].visibility="show"');
        }	//else if (dhtml == 'NN')
}	//function mover(object)

function mout(object,bfr,bclr) {
    //alert ("Can we win???");
	if (dhtml == 'IE') {
        eval(object + '.style.color = "'+bclr+'"');
        eval(object + '.style.fontSize = "'+bfr+'%"');
        }
    else if (dhtml == 'NN') {
        eval('document.layers["' + object +
            'a"].moveBelow(document.layers["' + object + 'b"])');
        eval('document.layers["' + object + 'a"].visibility="hide"');
        eval('document.layers["' + object + 'b"].visibility="show"');
        }
}	//function mout(object)

function dLink(href,text,bclr,aclr,bfr,afr) {
    //check is any of the variables are left out and set them
    if (typeof bfr == "undefined") {bfr='100';}
	if (typeof afr == "undefined") {afr='100';}
    if (typeof bclr == "undefined") {bclr='white';}
	if (typeof aclr == "undefined") {aclr='blue';}
	/*
	ts='" onMouseOut="mout(\'link'+no;
    ts+='\','+bfr+',\''+bclr+'\')" onMouseOver="mover(\'link';	
	alert ("Can we win???   " +bclr);
	return 0;*/
	if (dhtml == 'IE') {
        document.write('<A  STYLE="text-decoration : none; color:'+bclr+'" HREF="'+href);
        document.write('" onMouseOut="mout(\'link'+no);
        document.write('\','+bfr+',\''+bclr+'\')" onMouseOver="mover(\'link');
        document.write(no+'\','+afr+',\''+aclr+'\')" ID="link'+no+'">'+text);
        document.write('<\/A>');
        }	//if (dhtml == 'IE')
    else if (dhtml == 'NN') {
        document.write('<LAYER NAME="link'+no);
        document.write('a" VISIBILITY="hide"><A  STYLE="text-decoration : none; color:'+bclr+'" HREF="');
        document.write(href);
        document.write('" onMouseOut="mout(\'link'+no);
        document.write('\','+bfr+',\''+bclr+'\')" CLASS="different">'+text);
        document.write('<\/A><\/LAYER><LAYER NAME="link');
        document.write(no+'b"><A HREF="'+href);
        document.write('" onMouseOver="mover(\'link'+no);
        document.write('\','+afr+',\''+aclr+'\')" CLASS="normal">'+text);
        document.write('<\/A><\/LAYER>');
        }	// else if (dhtml == 'NN')
    else {
        document.write('<A HREF="'+href);
        document.write('" STYLE="text-decoration : none; color:'+bclr+'">'+text+'<\/A>');
        }
     no+=1;
}	//function dLink(href,text)
/*********************************************************************
					END FONT HIGHLIGHT FUNCTIONS
 *********************************************************************/

 
/*********************************************************************
					BEGIN VALIDATE FUNCTIONS
 *********************************************************************/

function writeChkFrm(one,two,three,four,five){
	document.writeln("<script>");
	document.writeln("	function checkForm(theForm) {");
	document.writeln("	    var why = '';");
	document.writeln("	");
	if (one) document.writeln("		why += isEmpty(theForm.name.value,'"+one+"');");
	if (two) document.writeln("		why += isEmpty(theForm.email.value,'"+two+"');");
	if (three) document.writeln("		why += isEmpty(theForm.subject.value,'"+three+"');");
	document.writeln("		why += isEmpty(theForm.feedback.value,'Feedback Note');");
	//document.writeln("		why += isEmpty(theForm.state.value,'State');");
	//document.writeln("		why += isEmpty(theForm.zip.value,'Zip'); ");
	document.writeln("		");
	document.writeln("		/*  ");
	document.writeln("		alert(phone+' is phone#.');");
	document.writeln("		return false;");
	document.writeln("		");
	document.writeln("		//Check area code and phone number");
	document.writeln("			ph =isEmpty(theForm.areacode.value,'Area Code');");
	document.writeln("			ph +=isEmpty(theForm.phone.value,'Phone Number');");
	document.writeln("			if (!ph){ ");
	document.writeln("				phone='('+theForm.areacode.value+')'+theForm.phone.value;");
	document.writeln("				why += checkPhone(phone,'Phone Number');");
	document.writeln("			}");
	document.writeln("			else {");
	document.writeln("				//alert(ph);");
	document.writeln("				why +=ph;");
	document.writeln("			}");
	document.writeln("	");
	document.writeln("			ph =isEmpty(theForm.workareacode.value,'Work Area Code');");
	document.writeln("			ph +=isEmpty(theForm.workphone.value,'Work Phone Number');");
	document.writeln("			if (!ph){ ");
	document.writeln("				phone='('+theForm.workareacode.value+')'+theForm.workphone.value;");
	document.writeln("				why += checkPhone(workphone,'Work Phone Number');");
	document.writeln("			}");
	document.writeln("			else {");
	document.writeln("				//alert(ph);");
	document.writeln("				why +=ph;");
	document.writeln("			}");
	document.writeln("	");
	document.writeln("		//");
	document.writeln("		*/  ");
	document.writeln("	    why += checkEmail(theForm.email.value,'Email Address');");
	document.writeln("	    //why += isEmpty(theForm.ssn.value,'SS #');");
	document.writeln("	");
	document.writeln("	    if (why != '') {");
	document.writeln("		   alert(why);");
	document.writeln("	       return false;");
	document.writeln("	    }");
	document.writeln("		return true;");
	document.writeln("	}	//function checkForm(theForm)");
	document.writeln("</script>");
}

function getVars(rtnVar,varName) 
{ 
/*	rtnVar	- return a variable value, blank if no
	Purpose of this function is to 
	parse the url parameters for a specified parameter
	[only possible when rtnVar have some value and
	varName is valid]
	or to get all the parameters and their name in
	one string separated by a comma (,)
	example : 
		
*/
     //check if no url parm
	 if (document.location.href.indexOf('?')<=1) return "";
	 var temp = "";
	 varArray = document.location.href.split('?')[1].split('&'); 

     for(var x=0; x<varArray.length; x++) 
     { 
          var tmp = varArray[x].split('='); 
		  if (rtnVar && tmp[x]==varName) {
		  	return unescape(tmp[x+1]);
		  }
		  else if (!rtnVar) {
          	//eval(unescape(tmp[x]) + '="' + unescape(tmp[x+1]) + '"'); 
			if(x>0) mrk=","; else mrk="";	//+" t");
			temp=temp+mrk+unescape(tmp[0])+","+unescape(tmp[1]);
		  }
		  else{
		  	temp="";
		  }
     } 
	 return temp;
} 	//function getVars(rtnAll,varName) 

function sendEmailFrm(path,col,row,nm,em,subj,fdk,rtnvar,varN){
	//Now you can pass variables on the fly
	// possible variable: 
	/*		Subject
			name
			fremail
			subject
			feedback
	*/
	
	var name =  "";
	var fremail =  "";
	var subject =  "";
	var feedback =  "";
	
	//Get the variable subject if it's passed
	//First find out how many variables we're looking for
	var hold=varN;
	var xstr = new Array();
	var i=0;
	var havecm=0;
	
	//Test for undefined
	if (typeof rtnvar == 'undefined') rtnvar="";
	if (typeof varN == 'undefined') {varN=""; hold="";}
	
	//Parse all requested variables 
	while (hold.indexOf(",")>0) {
		n=hold.indexOf(",");
		xstr[i]=hold.substring(0,n);
		
		i=i+1;

		hold=hold.substring(n+1,hold.length);
		if(hold!=""){havecm=1}
	}	
	
	if (havecm=="1"){	//if there multiple parameters needed
		xstr[i]=hold;
		var txt=getVars();
		hld=txt;
		for (var x=0;x<xstr.length;x++){
			strt=txt.indexOf(xstr[x])+xstr[x].length+1;
			if (xstr[x] == txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length)) {
				//txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length)
				hld=txt.substring(strt,txt.length);
				len=hld.indexOf(",");
				if (len<=0) len=hld.length;
				
				val=hld.substring(0,len);
				eval('var ' + xstr[x] + '="' + val + '"');
				//alert (xstr[x]+" - " +  val);
			}	//if (xstr[x] == txt.substring(txt.indexOf(xstr[x]),txt.indexOf(xstr[x])+xstr[x].length))
		} // for (x=0;x<xstr.length;x++){
	}
	else {	// if one or less parameter needed
	}
  
  
	//Initialize all the possible variables
	//if (typeof variable1Name == 'undefined')
	if(typeof name == 'undefined') name="";
	if(typeof fremail == 'undefined') fremail="";
	if(typeof subject == 'undefined') subject="";
	if(typeof feedback == 'undefined') feedback="";
	//subject=findVar(Vars,'subject');

	//
	//Write the validate form script in memory
	writeChkFrm(nm,em,subj);

	if (!path) pth="."; else pth=path;
	if (!col) cl=27; else cl=col;
	if (!row) rw=3; else rw=row;
	document.writeln("<script type=\"text/javascript\" src=\"./functions/validateform.js\"></script>");
	document.writeln("<form name='custInfo' method=post action=\""+pth+"/functions/processfeedback.php\" class=\"SmContent\" onsubmit=\"return checkForm(this)\">");
	document.writeln("<input type=hidden name=\"toemail\" value=\""+vemail+"\">");
	if (nm) {
		document.writeln(nm+": <br>");
		document.writeln("<input value=\""+name+"\" type=text name=\"name\" size="+cl+"><br>");
	}
	if (em) {
		document.writeln(em+": <br>");
		document.writeln("<input value=\""+fremail+"\" type=text name=\"email\" size="+cl+"><br>");
	}
	if (subj) {
		document.writeln(subj+": <br>");
		document.writeln("<input value=\""+subject+"\" type=text name=\"subject\" size="+cl+"><br>");
	}
	if (!fdk) {
		fdk="Your feedback";
	}
	
	document.writeln(fdk+":<br>");
	//cl=cl+170;
	//rw=rw/6;
	document.writeln("<textarea value=\""+feedback+"\" name=\"feedback\" rows="+rw+" cols="+(cl-4)+">");
	document.writeln("</textarea><br><br>");
	document.writeln("&nbsp;&nbsp;<input type=submit value=\"Send feedback\">");
	document.writeln("<input type=\"hidden\" name=\"to\" value=\""+vemail+"\">");
	document.writeln("</form>");
}	//function sendEmailFrm(path,col,row,nm,em,subj)

/*********************************************************************
					END VALIDATE FUNCTIONS
 *********************************************************************/
-->