function showVideo(div, id) {
	if (id == 1) $('#'+div).html('<object width="500" height="450"><param name="movie" value="http://www.youtube.com/v/gDmsd46OSkY"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/gDmsd46OSkY" type="application/x-shockwave-flash" wmode="transparent" width="500" height="450"></embed></object>');
	else if (id == 6) $('#'+div).html('<object width="500" height="450"><param name="movie" value="http://www.youtube.com/v/E-21VQS_3D8"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/E-21VQS_3D8" type="application/x-shockwave-flash" wmode="transparent" width="500" height="450"></embed></object>');
	else if (id == 20) $('#'+div).html('<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/K3l0B6aZb7g"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/K3l0B6aZb7g" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>');
	else if (id == 21) $('#'+div).html('<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/S8Ma1TtgmY0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/S8Ma1TtgmY0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>');
	else if (id == 22) $('#'+div).html('<object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/4eF8Ly2nENpcq8XxK"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/4eF8Ly2nENpcq8XxK" type="application/x-shockwave-flash" width="425" height="335" allowfullscreen="true"></embed></object>');
	else if (id == 24) $('#'+div).html('<object width="425" height="306"><param name="movie" value="http://www.dailymotion.com/swf/6Lw2sVVqzLTT48WZy"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/6Lw2sVVqzLTT48WZy" type="application/x-shockwave-flash" width="425" height="306" allowfullscreen="true"></embed></object>');
	else if (id == 25) $('#'+div).html('<object width="425" height="306"><param name="movie" value="http://www.dailymotion.com/swf/2PTUOX7ohIdXx8X9a"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/2PTUOX7ohIdXx8X9a" type="application/x-shockwave-flash" width="425" height="306" allowfullscreen="true"></embed></object>');
	else if (id == 26) $('#'+div).html('<object width="425" height="306"><param name="movie" value="http://www.dailymotion.com/swf/45pXx4YqGeBhf8Xde"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/45pXx4YqGeBhf8Xde" type="application/x-shockwave-flash" width="425" height="306" allowfullscreen="true"></embed></object>');
	else if (id == 27) $('#'+div).html('<object width="425" height="306"><param name="movie" value="http://www.dailymotion.com/swf/6uMpFpX0qte3w8Xa0"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/6uMpFpX0qte3w8Xa0" type="application/x-shockwave-flash" width="425" height="306" allowfullscreen="true"></embed></object>');
	else if (id == 28) $('#'+div).html('<object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/ppp0Kpx24yH1DaNg6"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/ppp0Kpx24yH1DaNg6" type="application/x-shockwave-flash" width="425" height="335" allowfullscreen="true"></embed></object>');
}

function autotab(original, destination, e) {
	var unicode=e.keyCode? e.keyCode : e.charCode;
	
	if (original.getAttribute && original.value.length == original.getAttribute("maxlength")) {
		//console.log(unicode);
		if (unicode != 9 && unicode != 16) $('#'+destination).focus();
	}
}

function numbersonly(e, inputstring) {
	if (navigator.appName == 'Microsoft Internet Explorer')	key = window.event.keyCode;
	else key = e.which;
	if (key >= 48 && key <= 57) return true;
	else if (key == 0 || key == 8 || key == 9) return true;
	else return false;
}

function numbersanddecimalonly(e, inputstring) {
	if (navigator.appName == 'Microsoft Internet Explorer')	key = window.event.keyCode;
	else key = e.which;
	
	if (key >= 48 && key <= 57) return true;
	else if (key == 46 && inputstring.indexOf(".") == -1) return true;
	else if (key == 0 || key == 8 || key == 9) return true;
	else return false;
}

function phonedigitsonly(e, inputstring) {
	if (navigator.appName == 'Microsoft Internet Explorer')	key = window.event.keyCode;
	else key = e.which;
	
	if (key >= 48 && key <= 57) return true;
	else if (key == 35) return true;
	else if (key == 42) return true;
	else if (key == 0 || key == 8 || key == 9) return true;
	else return false;
}

function loadMap(mapid, mapdiv) {
	if (mapid == 1) $('#' + mapdiv).html('<strong class="big">University of Florida</strong><br/>2028 SW 34th Street, Gainesville, FL 32607<br/>Phone: (352) 374-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2028+SW+34th+Street,+Gainesville,+FL+32607&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=29.6338703,-82.3726528&zoom=15&size=576x300&maptype=roadmap&markers=29.6338703,-82.3726528&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 2) $('#' + mapdiv).html('<strong class="big">University of South Florida</strong><br/>2770 University Square Drive, Tampa, FL 33612<br/>Phone: (813) 977-5500<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2770+University+Square+Drive,+Tampa,+FL+33612&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=28.0569593,-82.4305482&zoom=15&size=576x300&maptype=roadmap&markers=28.0569593,-82.4305482&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 3) $('#' + mapdiv).html('<strong class="big">St. Petersburg</strong><br/>2701 4th Street North, St Petersburg, FL 33704<br/>Phone: (727) 896-3278<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2701+4th+Street+North,+St+Petersburg,+FL+33704&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=27.796924,-82.638201&zoom=15&size=576x300&maptype=roadmap&markers=27.796924,-82.638201&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 4) $('#' + mapdiv).html('<strong class="big">Florida State University</strong><br/>623 West Tennessee Street, Tallahassee, FL 32304<br/>Phone: (850) 224-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=623+West+Tennessee+Street,+Tallahassee,+FL+32304&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=30.4446692,-84.2926591&zoom=15&size=576x300&maptype=roadmap&markers=30.4446692,-84.2926591&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 5) $('#' + mapdiv).html('<strong class="big">University of Georgia</strong><br/>496 Baxter St, Athens, GA 30605<br/>Phone: (706) 543-5000<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=496+Baxter+St,+Athens,+GA+30605&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=33.9505,-83.3832&zoom=15&size=576x300&maptype=roadmap&markers=33.9505,-83.3832&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 6) $('#' + mapdiv).html('<strong class="big">University of Illinois</strong><br/>1409 S Neil St, Champaign, IL 61820<br/>Phone: (217) 355-3278<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=1409+S+Neil+St,+Champaign,+IL+61820&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=40.0995005,-88.2443959&zoom=15&size=576x300&maptype=roadmap&markers=40.0995005,-88.2443959&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 7) $('#' + mapdiv).html('<strong class="big">Illinois State University</strong><br/>712 Kingsley St, Normal, IL 61761<br/>Phone: (309) 454-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=712+Kingsley+St,+Normal,+IL+61761&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=40.5041291,-88.9964533&zoom=15&size=576x300&maptype=roadmap&markers=40.5041291,-88.9964533&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 8) $('#' + mapdiv).html('<strong class="big">University of Iowa</strong><br/>702 South Gilbert Street, Suite 103, Iowa City, IA 52240<br/>Phone: (319) 354-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=702+South+Gilbert+Street,+Suite+103,+Iowa+City,+IA+52240&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=41.65249,-91.530449&zoom=15&size=576x300&maptype=roadmap&markers=41.65249,-91.530449&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 9) $('#' + mapdiv).html('<strong class="big">Kansas State University</strong><br/>702 North 11th Street, Manhattan, KS 66502<br/>Phone: (785) 770-3333<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=702+North+11th+Street,+Manhattan,+KS+66502&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=39.1859675,-96.5731243&zoom=15&size=576x300&maptype=roadmap&markers=39.1859675,-96.5731243&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 10) $('#' + mapdiv).html('<strong class="big">Michigan State University</strong><br/>311 West Grand River Ave, East Lansing, MI 48823<br/>Phone: (517) 351-8400<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=311+West+Grand+River+Ave,+East+Lansing,+MI+48823&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=42.736248,-84.488415&zoom=15&size=576x300&maptype=roadmap&markers=42.736248,-84.488415&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 11) $('#' + mapdiv).html('<strong class="big">Western Michigan University</strong><br/>3262 Stadium Drive, Kalamazoo, MI 49008<br/>Phone: (269) 544-1100<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=3262+Stadium+Drive,+Kalamazoo,+MI+49008&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=42.2718109,-85.6298709&zoom=15&size=576x300&maptype=roadmap&markers=42.2718109,-85.6298709&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 12) $('#' + mapdiv).html('<strong class="big">University of Missouri</strong><br/>1201 E Broadway, Columbia, MO 65201<br/>Phone: (573) 874-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=1201+E+Broadway,+Columbia,+MO+65201&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=38.951779,-92.32407&zoom=15&size=576x300&maptype=roadmap&markers=38.951779,-92.32407&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 13) $('#' + mapdiv).html('<strong class="big">UNC Wilmington</strong><br/>1414 South College Road, Wilmington, NC 28403<br/>Phone: (910) 313-0072<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=1414+South+College+Road,+Wilmington,+NC+28403&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=34.21175,-77.887072&zoom=15&size=576x300&maptype=roadmap&markers=34.21175,-77.887072&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 14) $('#' + mapdiv).html('<strong class="big">North Carolina State University</strong><br/>2712 Hillsborough Street, Raleigh, NC 27607<br/>Phone: (919) 836-1555<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2712+Hillsborough+Street,+Raleigh,+NC+27607&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=35.788885,-78.67171&zoom=15&size=576x300&maptype=roadmap&markers=35.788885,-78.67171&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 15) $('#' + mapdiv).html('<strong class="big">University of North Carolina - Chapel Hill</strong><br/>306 West Franklin Street, Suite A, Chapel Hill, NC 27516<br/>Phone: (919) 968-3278<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=306+West+Franklin+Street,+Suite+A,+Chapel+Hill,+NC+27516&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=35.9115465,-79.0599371&zoom=15&size=576x300&maptype=roadmap&markers=35.9115465,-79.0599371&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 16) $('#' + mapdiv).html('<strong class="big">Ohio State University</strong><br/>2404 North High Street, Columbus, OH 43202<br/>Phone: (614) 261-9800<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2404+North+High+Street,+Columbus,+OH+43202&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=40.0112742,-83.0103899&zoom=15&size=576x300&maptype=roadmap&markers=40.0112742,-83.0103899&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 17) $('#' + mapdiv).html('<strong class="big">Penn State University</strong><br/>300 South Pugh Street, Suite 101, State College, PA 16801<br/>Phone: (814) 234-4862<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=300+South+Pugh+Street,+Suite+101,+State+College,+PA+16801&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=40.7933077,-77.8572499&zoom=15&size=576x300&maptype=roadmap&markers=40.7933077,-77.8572499&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 18) $('#' + mapdiv).html('<strong class="big">Texas A&amp;M University</strong><br/>107 Dominik Drive, College Station, TX 77840<br/>Phone: (979) 764-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=107+Dominik+Drive,+College+Station,+TX+77840&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=30.618931,-96.321937&zoom=15&size=576x300&maptype=roadmap&markers=30.618931,-96.321937&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 19) $('#' + mapdiv).html('<strong class="big">Texas State</strong><br/>403 North Guadalupe Street San Marcos, TX 78666<br/>Phone: (512) 754-8629<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=403+North+Guadalupe+Street+San+Marcos,+TX+78666&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=29.885609,-97.942284&zoom=15&size=576x300&maptype=roadmap&markers=29.885609,-97.942284&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 20) $('#' + mapdiv).html('<strong class="big">Virginia Tech</strong><br/>210 Prices Fork Road, Suite A, Blacksburg, VA 24060<br/>Phone: (540) 552-3200<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=210+Prices+Fork+Road,+Suite+A,+Blacksburg,+VA+24060&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=37.2348,-80.4217&zoom=15&size=576x300&maptype=roadmap&markers=37.2348,-80.4217&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else if (mapid == 21) $('#' + mapdiv).html('<strong class="big">University of Wisconsin</strong><br/>2825 University Ave, Madison, WI 53705<br/>Phone: (608) 238-9494<br/><div class="vertspacer"><a href="http://maps.google.com/maps?q=2825+University+Ave,+Madison,+WI+53705&ie=utf-8&oe=utf-8&um=1&sa=X&oi=geocode_result&resnum=1&ct=title" target="_blank"><img src="http://maps.google.com/staticmap?center=43.074128,-89.437321&zoom=15&size=576x300&maptype=roadmap&markers=43.074128,-89.437321&key=ABQIAAAAbKLgq65kiZVESFyjVQGh6RSZq2jUT1pVScXAAJo9EGulJjaq0RS0GnAujcMFfBsvu_lqFVIpMLZ7ig" border="0" /></a></div><br/>');
	else $('#' + mapdiv).html('');
}

function setCookie(name, value, expires, path, domain, secure) {
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );
	
	// if the expires variable is set, make the correct expires time, the current script below will set it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24
	if (expires) {
		expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );
	
	document.cookie = name + "=" + escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" );
}

function getCookie(check_name) {
	// first we'll split this cookie up into name/value pairs
	// note: document.cookie only returns name=value, not the other components
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false; // set boolean t/f default f

	for ( i = 0; i < a_all_cookies.length; i++ ) {
		// now we'll split apart each name=value pair
		a_temp_cookie = a_all_cookies[i].split( '=' );
		
		// and trim left/right whitespace while we're at it
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
		
		// if the extracted name matches passed check_name
		if ( cookie_name == check_name ) {
			b_cookie_found = true;
			// we need to handle case where cookie has no value but exists (no = sign, that is):
			if ( a_temp_cookie.length > 1 ) {
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}
			// note that in cases where cookie is initialized but no value, null is returned
			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}
	if ( !b_cookie_found ) {
		return null;
	}
}
