// JavaScript Document<!-- function printDate() {var stampdays = new Array( "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var stampmonths = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");var thedate = new Date();document.write(stampdays[thedate.getDay()] + ", " + "&nbsp;" + stampmonths[thedate.getMonth()] + " " + thedate.getDate() + ", " + thedate.getFullYear());}function printShortDate() {var stampdays = new Array( "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var stampmonths = new Array( "Jan","Feb","Mar","April","May","June","July","Aug","Sept","Oct","Nov","Dec");var thedate = new Date();document.write(stampdays[thedate.getDay()] + ", " + "&nbsp;" + stampmonths[thedate.getMonth()] + " " + thedate.getDate());}function MM_findObj(n, d) { //v4.01  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 && d.getElementById) x=d.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];}}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 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_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);// -- Below is ADAM's Custom Image Handlerfunction Window(url, n, h, w) { var t, l;  t = (screen.availHeight/2) - (h/2);  l = (screen.availWidth/2) - (w/2);  imagebox = window.open(url,n,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+',screenX='+l+',screenY='+t+',top='+t+',left='+l)  imagebox.resizeTo(w+10,h+50);  imagebox.focus();}function ImageChange(Image, Link, Caption, width, height){		if (Link){				//random_title = (Math.round((Math.random()*100000)+1));		random_title = "imagebox";		temp = '<a href="javascript:Window('+ "'" + Link + "','" + random_title + "'," + height +',' + width +');"><img src="' + Image + '" border="0"></a>';		} else {		temp = '<img src="' + Image + '" border="0"></a>';		}	 	document.getElementById('ads_samples').innerHTML = temp;	 	temp2 = '<img src="' + Caption + '">';	 	document.getElementById('caption_box').innerHTML = temp2;}// POP-UPS function popUp(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=385');");}function popUp2(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=450');");}function popUp3(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=875,height=700');");}function audioPopup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=200,height=30');");}function invoicePopup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=800,height=800');");}function present2Popup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=950,height=800');");}function presentPopup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1050,height=700');");}function present3Popup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=1200,height=1050');");}function audioPopup(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=300,height=100');");}// ADAM'S CUSTOM USERNAME SYSTEM FOR INVYTE 4-25-06, adapted for Big Cityfunction bigcity_username(){var username = new Array()//The following is the area in which you put the usernames that you wish to have access, and the page that they will be forwarded to on succesfull entry of that username//replace the username with the usernames that you wish to use. you can also add as many as you wish,//just copy the line and paste it below the last.  The only illegal characters for the username would be ' and "	//S.T.A.N.D.	username["stand"] = "http://www.bigcity.bz/jobs10/stand10.htm";	//MCA SOFTWARE	username["mca"] = "http://www.bigcity.bz/jobs09/mca09.htm";			//VEGA GROUP	username["vega09"] = "http://www.bigcity.bz/jobs09/index.htm";	//EXCEPTUAL TECH	username["exceptual09"] = "http://www.bigcity.bz/jobs09/exceptual09.htm";		//RON SMITHSON	username["ron09"] = "http://www.bigcity.bz/jobs09/ron09.htm";		//DMP	username["dmp09"] = "http://www.bigcity.bz/jobs09/dmp09.htm";		//CHERISE PERKINS	username["cherise09"] = "http://www.bigcity.bz/jobs09/cherise09.htm";	//RIGHTCLIK	username["rightclik"] = "http://www.bigcity.bz/jobs09/rightclik09.htm";	//RZ	username["rz"] = "http://www.bigcity.bz/jobs09/rz09.htm";		//WINDBLOWN MEDIA / LIFESTREAM / GOD JOURNEY	username["shack1"] = "http://www.bigcity.bz/jobs08/shack08.htm";			//CROSS & COMPANY	username["cross"] = "http://www.bigcity.bz/jobs09/cross09.htm";		//MERIT DIRECT ADVERTISING PICK-UP PAGE	username["merit_ads"] = "http://www.bigcity.bz/jobs08/md08_ads.htm";		//OPTIMUX MARKETING MATERIALS	username["trimteck1"] = "http://www.bigcity.bz/jobs09/tt_mm.htm";	//ADVANCED BIO HEALING	username["advanced"] = "http://www.bigcity.bz/jobs08/abh08.htm";	//HOPKINS	username["hopkins"] = "http://www.bigcity.bz/jobs07/hopkins07.htm";	//EXCEPTUAL TECHNOLOGIES	username["exceptual"] = "http://www.bigcity.bz/jobs08/except08.htm";	//SHIRESTONE	username["shirestone"] = "http://www.bigcity.bz/jobs08/index.htm";	//MERIT DIRECT	username["merit"] = "http://www.bigcity.bz/jobs10/md10.htm";	//SOLID SURFACES DESIGN	username["ssd"] = "http://www.bigcity.bz/jobs08/ssd08.htm";		//ALPINE WOOD PRODUCTS	username["alpine"] = "http://www.bigcity.bz/jobs09/alpine09.htm";		//ANDERSON ENGINEERING	username["anderson"] = "http://www.bigcity.bz/jobs08/ae08.htm";				 	//ACGI	username["acgi"] = "http://www.bigcity.bz/jobs09/acgi09.htm";					//TRIMTECK	username["trimteck"] = "http://www.bigcity.bz/jobs10/tt10.htm";			// GUEST FILES PICK-UP	username["guest"] = "http://www.bigcity.bz/jobs09/guest09.htm";			//BIG CITY PROMOTION	username["impact"] = "http://www.bigcity.bz/impact.htm";			//BULLDOG RADIO SPOTS	username["bulldog"] = "http://www.bigcity.bz/bulldog.htm";			var password = document.form2.username.value;	if (username[password])	{				location.href = username[password];	} else {		alert("Hmmmm... that Username was not found. Try again or contact Big City Creative.");  	}}function getkey(e){ if (window.event){     key = window.event.keyCode;    } else if (e){  key = e.which; } if (key == 13){  bigcity_username(); }}// BIG CITY'S PASSWORD FOR BIG IDEAS SECTIONfunction bigcity_password(){var password1 = new Array()//The following is the area in which you put the usernames that you wish to have access, and the page that they will be forwarded to on succesfull entry of that username//replace the username with the usernames that you wish to use. you can also add as many as you wish,//just copy the line and paste it below the last.  The only illegal characters for the username would be ' and "		//BIG IDEAS PASSWORD	password1["create1"] = "http://www.bigcity.bz/big_ideas/bigideas.htm";							var password = document.form3.password1.value;	if (password1[password])	{				location.href = password1[password];	} }			function getkey(e){ if (window.event){     key = window.event.keyCode;    } else if (e){  key = e.which; } if (key == 13){  bigcity_password(); }}// ADAM'S USERNAME SYSTEM 2-27-06 -- DISABLED 6-6-06// This is reinstalled 7/10/06 for Invoice Downloads on the new site.// Copy from here to the end linefunction password(filename){var username = new Array()//The following is the area in which you put the usernames that you wish to have access to this page.//replace the username1-5 with the usernames that you wish to use. you can also add as many as you wish,//just copy the line and paste it below the last.// CHEusername["liz06"] = "yes";// ACGIusername["gary06"] = "yes";// OPTIMUXusername["jaime06"] = "yes";// UNDERCOVERusername["david06"] = "yes";// RIGHTCLIKusername["jaker06"] = "yes";// RURAL COMPASSIONusername["steve06"] = "yes";// PFI WESTERN STOREusername["randy06"] = "yes";var password = prompt("Please enter your Client Username to proceed",""); //You can customize the pop up box here, the first string is the question that is asked. //If you change it here you should change it below as well.if (username[password] == "yes"){	if(filename){		location.href = filename;	}//We can place a welcome alert box here, but it really isnt needed.} else {while (username[password] != "yes"){ password = prompt("Hmmmm... that was not your Username. Try again or contact Big City Creative.",""); if (password){ 	if (username[password] == "yes"){ 		if (filename){ 			location.href = filename; 		} 	 	}    // a usernmae was entered, process it to see if it is correct. } else {  location.href = "http://www.bigcity.bz/login.htm";  break; }}}}//Quick Reply Validation Code March 17, 2006 - Adamvar validate_check = "0";function ValidateMe() { //Validates the Comment Form	if (document.form1.carboncopy.checked){		document.form1.carbon.value = "yes";	} else {		document.form1.carbon.value = "no";	}		if (document.form1.yourcomments.value == "Type your message here"){		alert('Please enter in a message before sending.'); //Alert box that states that no message was entered.		return false;	} else {		if (document.form1.toemail.value == "Your Email"){			if (validate_check == "0"){				validate_check = "1";				alert('Please Enter Your Email Address.'); //Alert box that states no email address was entered,  one second attempted will let it go threw.				return false;			} else {				alert('Your Message has been sent!');				return true;				}		}	}}function msg_load(){		varvalue = document.location.search.substring(5);	if (varvalue){		if (varvalue = "emailsent"){			alert("Your Message has been sent!");		}			}}// ALERTS HANDLING THE ORDER FORMS (Modified by Jason & Adam 11/13/06)function ValidateOrder() { //Validates the Order Form		var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i		// CUSTOMER QUICK CONTACT INFO 	//(long form alerts removed temporarily 11-13-06)		if (document.form4.name3.value == "First Name"){		alert('Existing Client: Please enter your First Name'); //Alert box that states that no message was entered.		document.form4.name3.select();		return false;	} else if (document.form4.name4.value == "Last Name"){		alert('Existing Client: Please enter your Last Name'); //Alert box that states that no message was entered.		document.form4.name4.select();		return false;		}			if (document.form4.company2.value == "Company Name"){			alert('Existing Clients: Please enter the name of your Company'); //Alert box that states that no message was entered.			document.form4.company2.select();			return false;		} else if (document.form4.email1.value == "Email"){			alert('Existing Clients: Please enter a valid email address'); //Alert box that states that no message was entered.			document.form4.email1.select();			return false;		} else if ((document.form4.phone4.value == "") && (document.form4.phone5.value == "") && (document.form4.phone6.value == "")){						alert('Existing Client: Please enter in your U.S. phone number'); //Alert box that states that no message was entered.			document.form4.phone4.select();			return false;	}			if  (document.form4.email1.value != "Email"){				var returnval=emailfilter.test(document.form4.email1.value)				if (returnval==false){			alert("Existing Client: Please enter in your valid email address");			document.form4.email1.select();			return false;		}		// USERNAME			}	if (document.form4.username1.value == "Create Username") {			alert('Please enter your Username, or choose a Username now; max 15 characters. Your Username allows access to your private Jobs Page on this website'); //Alert box that states that no message was entered.			document.form4.username1.select();			return false;							}				// FIRST VIEW DUE DATE			 if (document.form4.artduemonth1.value == "Month") {			alert('Due Dates establish studio booking priority of an Order so we can meet your deadline. Please enter a Due Date.'); //Alert box that states that no message was entered.			document.form4.artduemonth1.select();			return false;							}						// AGREE TO TERMSif (document.form4.terms.checked){	//They agreed, do nothing.	//document.form4.carbon.value = "yes";} else {//	document.form4.carbon.value = "no";	alert('You should agree to the Terms of Engagement before this Order is accepted. If there are any questions, please contact Big City Creative.'); //Alert box that states that no message was entered.	return false;						} 			}// DOWNLOAD PASSWORD --- ADDED BY JASON PETEFISH 9/15/07function pagePass() { var username = prompt("Please enter your username:", ""); var TheLists = new Array(3) { TheLists[0] = "download";  TheLists[0] = "cheese"; } for (i = 0; i < TheLists.length; i++) { if (TheLists[i].indexOf(username) == 0) { var TheUsername = TheSplit[0]; if (username == TheUsername && password == ThePassword) { alert("Welcome, " + username); // Your other commands here } } } }// DATE COUNTDOWNfunction renderMessage(dateStr, msg1, msg2, countFrom) {  var date = new Date(dateStr);  var now = new Date();  var diff = date.getTime() - now.getTime();  var days = Math.floor(diff / (1000 * 60 * 60 * 24)) + 1;  if(days < 1) {    document.write(msg1);  } else {    if(countFrom)      days = countFrom - days;    document.write(msg2.replace(/%days%/g, number_format(days)));  }}function number_format(num) {  num = num.toString().replace(/\$|\,/g,'');  if(isNaN(num)) {    num = "0";  }  sign = (num == (num = Math.abs(num)));  num = Math.floor(num*100+0.50000000001);  num = Math.floor(num/100).toString();  for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)  num = num.substring(0,num.length-(4*i+3))+','+  num.substring(num.length-(4*i+3));  return (((sign)?'':'-') + num);}//END OF CODE//-->