function photoGallery(theId, theLang, thePhotoId ,thePhotonum, sefUrlStatus, parseParams) {
	fileLocation = '';
	if (sefUrlStatus!='Y') {
		fileLocation = '';
	} else {
		fileLocation = '/';
	}

	w_width = 700;
	w_height = 660;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam =  fileLocation+'templates/ws_mm_projects_07/showphotogallery.php?pageid=' + theId + '&lang=' + theLang+ '&photoid=' + thePhotoId + '&photonum=' + thePhotonum;
  window.photoGalleryWindow = open(fparam, 'photoGalleryWindow', theWindowParam);
	setTimeout('if(photoGalleryWindow&&!photoGalleryWindow.closed)photoGalleryWindow.focus()',100);
}
function showPhoto(theId, theLang, thePhotoNum, sefUrlStatus, parseParams) {
	fileLocation = '';
	if (sefUrlStatus!='Y') {
		fileLocation = '';
	} else {
		fileLocation = '/';
	}

	w_width = 710;
	w_height = 640;
	if (screen) {
		w_left = (screen.availWidth - w_width)/2;
		w_top = ((screen.availHeight - w_height)/2)-20;
	}
	theWindowParam = 'width='+w_width+',height='+w_height+',left='+w_left+',top='+w_top+',status=no,resizable=yes,scrollbars=yes';

	fparam = fileLocation+'templates/ws_mm_projects_07/showphoto.php?pageid=' + theId + '&lang=' + theLang + '&photonum=' + thePhotoNum;
  window.showPhotoWindow = open(fparam, 'showPhotoWindow', theWindowParam);
	setTimeout('if(showPhotoWindow&&!showPhotoWindow.closed)showPhotoWindow.focus()',100);
}
function goToFindProperty(theform,thePageId) {
  var theLoc = theform.criteria_location.value;
  var theType = theform.criteria_type.value;
  var theMinPrice = theform.criteria_minprice.value;
  var theMaxPrice = theform.criteria_maxprice.value;
  var theRef = theform.criteria_referenceno.value;
	
  lochref = 'index.php?pageid='+thePageId+'&filter=Search&criteria=set';

	if (theLoc != '') {	lochref += '&loc=' + theLoc; }
	if (theType != '') {	lochref += '&type=' + theType; }
	if (theMinPrice != '') {	lochref += '&minprice=' + theMinPrice; }
	if (theMaxPrice != '') {	lochref += '&maxprice=' + theMaxPrice; }
	if (theRef != '') {	lochref += '&ref=' + theRef; }

	//alert("The values are: "+theLoc+" "+theType+" "+theMinPrice+" "+theMaxPrice+" "+theRef+"The url is: "+lochref);
	location = lochref;
}
function enquireforproperty(thePageId, theLang) {
	alert(thePageId+theLang);
	
  lochref = 'index.php?pageid='+thePageId+'&filter=Search&criteria=set';
	
	//alert("The values are: "+theLoc+" "+theType+" "+theMinPrice+" "+theMaxPrice+" "+theRef+"The url is: "+lochref);
	location = lochref;
}

