//<![CDATA[
	function getElement(objID) {
		if(document.all) {
			return document.all[objID];
		} else if(document.getElementById) {
			return document.getElementById(objID);
		} else {
			for (iLayer = 1; iLayer < document.layers.length; iLayer++) {
				if(document.layers[iLayer].id == objID)
				return document.layers[iLayer];
			}
		}
		return Null;
	} 

	function linkMe(url){
		lWin=window.open('http://'+url, 'LinkWin', 'width=800, height=600, resizable');
	}
	
	function processGetPost(){
		var myajax=ajaxpack.ajaxobj
		var myfiletype=ajaxpack.filetype
		if (myajax.readyState == 4){ //if request of file completed
			if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
				if (myfiletype=="txt")
					getElement('AJAXContent').innerHTML=myajax.responseText;
				else
					alert(myajax.responseXML)
			}
		}
	}

//Define function to construct the desired parameters and their values to post via Ajax
	function getPostParameters(){
		var namevalue=getElement('contactName').value;
		var emailvalue=getElement('contactEmail').value;
		var phonevalue=getElement('contactPhone').value;
		var commentvalue=getElement('contactComment').value;
		var poststr = "name=" + encodeURI(namevalue) + "&email=" + encodeURI(emailvalue) + "&phone=" + encodeURI(phonevalue) + "&comment=" + encodeURI(commentvalue);
		return poststr;
	}

	function viewPic(x){
		pWin=window.open('pages/viewPic.php?pic='+x, 'PicWin', 'width=800, height=600, resizable');
	}

	function sendContact(){
		var poststr=getPostParameters();
		ajaxpack.getAjaxRequest("pages/contact.cfm", poststr, processGetPost, "txt");
	}

	function doSearch(){
		alert("We are sorry for the inconvience but currently our search is disabled.");
	}
//]]>
