<!--
function jsPopUp(name,id,id2,attr3) {
	windowName =  name;
	windowLeft = 100;
	windowTop=100;

	switch (windowName) {
		case 'preview':	// preview
			if ( id2 != '' ) {
				windowWidth = id2.substring(0,id2.indexOf('x'));
				windowHeight = id2.substring(id2.indexOf('x')+1,id2.length);
			} else {
				windowWidth = 300;
				windowHeight = 400;	
			}
			windowScrollbars = 0;
			windowURL = attr3 + "preview.htm?src=" + id + "&w=" + windowWidth + "&h=" + windowHeight;
			break;
	}

	windowProps = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + windowScrollbars + ",resizable=0,copyhistory=0,width=" + windowWidth + ",height=" + windowHeight + ",left=" + windowLeft + ",top=" + windowTop;
	window.open(windowURL,windowName,windowProps);				
} // end function

var panel_open = "panel-default";
function js_show_panel(panel_id) {
	if (panel_open != "") {
		obj_panel = document.getElementById(panel_open);
		obj_panel.style.display = "none";
	} // end if
	obj_panel = document.getElementById(panel_id);
	obj_panel.style.display = "block";
	panel_open = panel_id;
} // end function

function js_contact() {
	var obj_form = document.forms['form-contact'];
	var obj_email = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	var str_message = "";
	if (obj_form.frm_name.value == ""){ str_message += "\tYour name\n"};
	if (!obj_email.test(obj_form.frm_email.value) && obj_form.frm_phone.value == ""){ str_message += "\tYour email address and/or phone number\n"};
	if (obj_form.frm_message.value == ""){ str_message += "\tYour message\n"};
	if (str_message != "") {
		alert('Some details were missing, please complete the following:\n' + str_message);
		return false;
	} else {
		return true;
	} // end if
} // end function
-->