function uploadFile(thePath) {
	jsCompanyFile = document.getElementById("companyfile");
	jsCompFile = jsCompanyFile.value.toLowerCase();
	jsFileType = jsCompFile.substring(jsCompFile.length - 3);
	if ((jsFileType != "jpg") && (jsFileType != "png") && (jsFileType != "bmp") && (jsFileType != "gif") && (jsFileType != "peg")){
		if ((jsFileType == "doc") || (jsFileType == "ocx")){
		    alert("The file you're attempting to upload must be a .jpg, .png or .gif file format.\n\nYour file is a ." + jsFileType + " file which is a Word Document. The image being submitted must be seperate from the Word Document.");}
		if (jsFileType == "tif"){
		    alert("The file you're attempting to upload must be a .jpg, .png or .gif file format.\n\nYour file is a ." + jsFileType + " file which is a TIF Format. You must convert the image to a .jpg or .gif format first before uploading. If you're using Windows, open the file in Microsoft Paint and select 'save as' and change 'type' to '.jpg'");}
		if ((jsFileType != "doc") && (jsFileType != "tif") && (jsFileType != "ocx")){
		    alert("The file you're attempting to upload must be a .jpg, .png or .gif file format.\n\nYour file is a ." + jsFileType + " file.");}
		return false;}
	objForm = document.getElementById("uploadForm");
	objForm.action = "/company-stuff-upload-file.aspx?" + thePath;
	objForm.submit();}
function CheckSubmit(){
    jsForm = document.getElementById("uploadForm");
	jsBio = document.getElementById("txtBio");
	if (jsBio.value.length < 1001){
		jsForm.submit();}
	else{
		alert("Company bio too long. Please limit bio to 75 words (1000 characters). Submitted information (" + jsBio.value.length + " characters)");
		return false;}}
