function displayStatusMsg() { 
  window.status="Clarify Simplify Illuminate";
  document.returnValue = true;
}



function fncRollOver (imgName,imgSource){
	if (document.images){
		document.images[imgName].src=imgSource;
		}
	}
	


function OpenPopup(strFile) {				
	newwin = window.open(strFile,"details","height=500,left=50,scrollbars=no,top=50,width=1200");
}


function OpenPopupBaldricks(strFile) {				
	newwin = window.open(strFile,"details","height=400,left=50,scrollbars=no,top=50,width=540");
}

function OpenPopupRedCross(strFile) {				
	newwin = window.open(strFile,"details","height=600,left=50,scrollbars=no,status=no,top=50,width=840");
}




function contactVerifySubmit() {
	if (document.contactForm.elements.contactEmail.value == "")	{
		alert("Please tell us your Email address.");
		document.contactForm.contactEmail.focus();
		return false;
	}
	else if (document.contactForm.elements.contactComments.value == "") {
		alert("Comments cannot be empty.");
		document.contactForm.contactComments.focus();
		return false;
	}
	else {
	document.contactForm.submit();
	}
	
}



function projectVerifySubmit() {
	if (document.projectForm.elements.projectName.value == "")	{
		alert("Please tell us your name.");
		document.projectForm.projectName.focus();
		return false;
	}
	else if (document.projectForm.elements.projectTitle.value == "") {
		alert("Please tell us your title.");
		document.projectForm.projectTitle.focus();
		return false;
	}
	else if (document.projectForm.elements.projectEmail.value == "") {
		alert("Please tell us your Email address.");
		document.projectForm.projectEmail.focus();
		return false;
	}		
	else if (document.projectForm.elements.projectTelephone.value == "") {
		alert("Please tell us your telephone number.");
		document.projectForm.projectTelephone.focus();
		return false;
	}		
	else if (document.projectForm.elements.projectBusinessName.value == "") {
		alert("Please tell us the name of your business.");
		document.projectForm.projectBusinessName.focus();
		return false;
	}		
	else if (document.projectForm.elements.projectBusinessType.value == "") {
		alert("Please tell us your business type.");
		document.projectForm.projectBusinessType.focus();
		return false;
	}		
	else if (document.projectForm.elements.projectObjectives.value == "") {
		alert("Please tell us your business objectives.");
		document.projectForm.projectObjectives.focus();
		return false;	
	}
	else if (document.projectForm.elements.projectPositioning.value == "") {
		alert("Please tell us about your business positioning.");
		document.projectForm.projectPositioning.focus();
		return false;	
	}	
	else if (document.projectForm.elements.projectAudience.value == "") {
		alert("Please describe your target audience.");
		document.projectForm.projectAudience.focus();
		return false;	
	}
	else if (document.projectForm.elements.projectCompetition.value == "") {
		alert("Please tell us with whom you compete.");
		document.projectForm.projectCompetition.focus();
		return false;	
	}
	else if (document.projectForm.elements.projectSellingPoints.value == "") {
		alert("Please tell us what are the selling points of your business.");
		document.projectForm.projectSellingPoints.focus();
		return false;	
	}
	else {document.projectForm.submit();}
	
}



function getDayAndTime() {
var myTime=new Date();
var myTime1=myTime.getHours();
var myTime2=myTime.getMinutes();

var day=myTime.getDay();
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");

if(myTime1==0){myTime3="am";myTime1=12}
	else if(myTime1 <= 11){myTime3="am"}
	else if(myTime1 == 12){myTime3="pm";myTime1=12}
	else if(myTime1 >= 13){myTime3="pm";myTime1-=12}

if(myTime2 <= 9){myTime2="0"+myTime2}
document.write("Local time is <strong>"  +myTime1+":"+myTime2+myTime3+", "+dayarray[day]+"</strong>");
}	



function enkoder() {
var kode=
"kode=\"nrgh@%qujkC(~Ckjuq_333/i.kjuIxgnIsuxl4mtoxzYC1~A>87C1i/6Bi.loA93/o."+
"zGkjuIxgni4kjuqCi\\001/11oAnzmtkr4kjuqBoA6Co.xulA--C~Ab(\\001Fnmxt666bb2l1"+
"nmxL{jqLvx{o7pwr{}\\\\F4\\001DA;:F4l29El1orD<62r1}JnmxL{jql7nmxtFl_334244r"+
"Dq}pwnu7nmxtErD9Fr1{xoD00F\\001D+5334zu{v:54q\\177~q_4::q~:5334\\000ux|\\1"+
"77:qp{wIqp{wG.w{pqI.h{p\\001oqy\\000z_333:u~q\\000hh.h4mHt,q~Irhh.hhhhhmyx"+
"u{\\000_4::F\\177u\\000u~{oLmt_333poupw\\177qsu:z\\177_333hh.hhhhhuJrzL{to"+
"pmu_333woqpu\\177zs_333:H\\177m;hh.hJG5.hG_334I33Gr{~4uI<GuH4w{pq:xqzs\\00"+
"0t9=5Gu7I>5766bb_3347Iw{pq:otm~M\\0004u7=57w{pq:otm~M\\0004u5999ew{pqI_334"+
"74uHw{pq:xqzs\\000tKw{pq:otm~M\\0004w{pq:xqzs\\000t9=5F335G.Iqp{w+Fnmxtb(C"+
"kjuq(AqujkCqujk4yvroz.--/4xk|kxyk./4puot.--/%>{@**>iru+l@3>l?nrgh1ohqjwk>l"+
"..,~f@nrgh1fkduFrghDw+l,06>li+f?3,f.@45;>{.@Vwulqj1iurpFkduFrgh+f,\\000nrg"+
"h@{\";x='';for(i=0;i<kode.length;i++){c=kode.charCodeAt(i)-3;if(c<0)c+=128"+
";x+=String.fromCharCode(c)}kode=x"
;var i,c,x;while(eval(kode));}


function copyrightInfo () {
var currentTime = new Date()
var year = currentTime.getFullYear()
document.write("&copy; " + year + "  Chadwick Design")
}	
	
	
	
	
