var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here
var cdate=dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
goforit();
var updated=document.lastModified;

function doanalert(from,sub,mes){
	theerror="";
	if(from==""){
		if(theerror==""){
			theerror=theerror+"you must enter an email address\n";
		}
		else{
			theerror=theerror+"\t\t\t\tyou must enter an email address\n";
		}
	}
	if(from.indexOf("@")==-1 || from.indexOf(".")==-1 || from.indexOf("@")>from.indexOf(".")){
		if(theerror==""){
			theerror=theerror+"your email address must be formatted like this -> you@domain.extension\n";
		}
		else{
			theerror=theerror+"\t\t\t\tyour email address must be formatted like this -> you@domain.extension\n";
		}
	}
	if(sub==""){
		if(theerror==""){
			theerror=theerror+"you must enter a subject\n";
		}
		else{
			theerror=theerror+"\t\t\t\tyou must enter a subject\n";
		}
	}
	if(mes==""){
		if(theerror==""){
			theerror=theerror+"you must enter a message\n";
		}
		else{
			theerror=theerror+"\t\t\t\tyou must enter a message\n";
		}
	}
	if(from=="" || sub=="" || mes=="" || from.indexOf("@")==-1 || from.indexOf(".")==-1 || from.indexOf("@")>from.indexOf(".")){
		alert("Your message cannot be sent because: "+theerror);
	}
	else{
		document.form.submit();
	}
}

function writehead(thishead){
document.writeln('<div style="position: absolute; left: 5px; top: 5px;z-index:-1;">');
document.writeln('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="parry4" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="180" height="275" style="position: absolute; left: 0px; top: 0px; right: 0; z-index: 5">');
document.writeln('<param name="movie" value="parry4.swf">');
document.writeln('<param name="quality" value="High">');
document.writeln('<param name="wmode" value="transparent">');
document.writeln('<param name="menu" value="false">');
document.writeln('<embed src="parry4.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" name="parry4" width="180" height="275"></object>');
document.writeln('</div>');
document.writeln('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="8" BGCOLOR="#FFFFFF" ALIGN="CENTER">');
document.writeln('<TR BGCOLOR="#ffcc00">');
document.writeln('<TD width="20" BGCOLOR="#ffcc00"></TD>');
document.writeln('<TD class="stitle" BGCOLOR="#ffcc00">'+thishead+' Parry Solutions</TD>');
document.writeln('<TD class="s9">');
document.writeln('<DIV ALIGN="RIGHT"><b>issaquah, wa, usa</b></DIV>');
document.writeln('<DIV ALIGN="RIGHT"><span id="clock"></span></DIV>');
document.writeln('</TD>');
document.writeln('</TR>');
}

function writehead2(thishead){
document.writeln('<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="8" BGCOLOR="#FFFFFF" ALIGN="CENTER">');
document.writeln('<TR BGCOLOR="#ffcc00">');
document.writeln('<TD BGCOLOR="#ffcc00">'+thishead+'</TD>');
document.writeln('</TR>');
}

function writelinks(){
document.writeln('<TR BGCOLOR="#fea505">');
document.writeln('<TD class="s11" COLSPAN="3" bgcolor="#FEA505"> ');
document.writeln('<DIV ALIGN="CENTER">');
document.writeln('<p style="margin-top: 0; margin-bottom: 0">');

document.writeln('| <a class="s11" href="http://www33.brinkster.com/stephan247/">');
document.writeln('start</a> | ');

document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/about.asp">');
document.writeln('about</a> | ');

document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/services.asp">');
document.writeln('services</a> | ');

document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/clients.asp">');
document.writeln('clients</a> | ');

//document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/portfolio.asp">');
//document.writeln('portfolio</a> | ');

document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/visitors.asp">');
document.writeln('contact</a> | ');

//document.writeln('<a class="s11" href="http://www33.brinkster.com/stephan247/pictures.asp">');
//document.writeln('pictures</a></DIV> ');

document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('</table>');
}

function writefooter(){
document.writeln('<TABLE CELLSPACING="0" CELLPADDING="8" BORDER="0" WIDTH="100%" ALIGN="center">');
document.writeln('<TR BGCOLOR="#ffcc00">');
document.writeln('<TD class="o9" COLSPAN="3">');
document.writeln('<DIV ALIGN="CENTER">');
document.writeln('copyright  2004 powered by parry technology from <a class="o9" href="http://www33.brinkster.com/stephan247" target="_self">parry solutions</a> | <a class="o9" href="http://www33.brinkster.com/stephan247/tou.asp" target="_self">terms of use</a></DIV>');
document.writeln('</TD>');
document.writeln('</TR>');
document.writeln('</TABLE>');
}

function changeimage(url){
	if (document.images){
		document.images.targetimage.src=url;
	}
	window.location="#pic";
}

function newCoverLetter(strDate,strTitle,strToName,strOrganization,strAddress1,strAddress2,strAddress3,strWhat){
document.writeln("Stephan T. Parry<br>");
document.writeln("1405 NE Merman Dr. F378<br>Pullman,WA 99163<br>");
document.writeln("509.334.5569<br>stephan247@aol.com<br>");
document.writeln("<br>");
document.writeln(strDate);
document.writeln("<p> </p>");
document.writeln(strToName + "<br>");
document.writeln(strOrganization + "<br>");
document.writeln(strAddress1 + "<br>");
document.writeln(strAddress2 + "<br>");
document.writeln(strAddress3 + "<br>");
document.writeln(" <br>");
document.writeln("Dear " + strTitle + " " + strToName + ",");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("Since my first encounter with hyper text markup language in 1999, I have been captivated by the web and its infinitely evolving technologies. Over the past five years I have come to better understand programming and have expressed that through the many web languages and programs I have learned to use. My love for creative design balanced with my knowledge of structured programming and the ability to pick things up quickly has lead me to believe I would be happy in the web development industry.");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("It was with great interest that I recently "+strWhat+". I am an exemplary match for your organization and would be valued highly if given the chance to be a part of the team.");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("The following are highlights of my qualifications:");
document.writeln(" <br>");
document.writeln("\t 5 years of set-up, maintenance, and updating of computer systems, hardware and software for businesses and individuals.");
document.writeln(" <br>");
document.writeln("\t Technical proficiency in numerous platforms, hardware, software and programming languages.");
document.writeln(" <br>");
document.writeln("\t An ability to bring to light the basic simplicity of complex subjects so that a reasonable person with even limited knowledge of a subject can understand.");
document.writeln(" <br>");
document.writeln("\t Demonstration of leadership with the ability to train and inspire others to work as a team to meet goals.");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("Enclosed is my resume for your review. I would welcome an interview at your earliest convenience to go over your needs and objectives and the possibility of working together to meet them. Thank you for your time and consideration.");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("Sincerely,");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln(" <br>");
document.writeln("Stephan T. Parry<br>");
document.writeln("Enclosure");
}

function newtitle(thistitle){
document.title = thistitle+' parry solutions';
}

function xwin(xurl,xwin,xpro){
window.open(xurl,xwin,xpro);
}
