
var item = new Array();

c=0; 
item[c]=new Array("index.htm","","MediClean: Cleaning Services for Hospitals and Medical Facilities: Melbourne, Australia","mediclean,cleaning,contractors,healthcare,health,hospital,medical,cleaners,sterile,agecare,clinical,clinic,facility,facilities,melbourne,victoria,australia,home","MediClean delivers comprehensive cleaning services for medical facilities, clinics, hospitals and the whole healthcare industry in Melbourne and Victoria.");
c++; 
item[c]=new Array("about.htm","","About MediClean: Cleaning Contractors for Hospitals and Medical Facilities: Melbourne, Australia","about,company,clients,services,procedures","Providing professional cleaning services for 20 years. Read about us and some of our long standing clients.");
c++; 
item[c]=new Array("services.htm","","Services of MediClean: Healthcare and Medical Facility Cleaners: Melbourne, Australia","services, cleaning, procedures, audits, operations, methodology, standards","Information about our professional and sterile cleaning services, standards and procedures followed at MediClean");
c++; 
item[c]=new Array("quote.htm","","Free No Obligation Quotation from MediClean: Professional Medical Cleaning for Age Care and Medical Clinics: Melbourne, Australia","request quote, free quotation, no obligation quote","Ask for a free No Obligation Quotation for professional medical cleaning services in Melbourne, Victoria from MediClean.");
c++; 
item[c]=new Array("servicerequest.htm","","Cleaning Service Request for MediClean: Report problem in our healthcare cleaning services","request for service problem, report complaint in health care cleaning","Report any problem in our medical cleaning services for a prompt response from MediClean.");
c++; 
item[c]=new Array("faqs.htm","","Frequently Asked Questions from MediClean: Professional Medical Cleaning for Age Care and Medical Clinics: Melbourne, Australia","faqs, FAQ, common queries, questions, client queries","Answers to frequently asked questions and common queries about medical and health care facilities cleaning services from MediClean.");
c++; 
item[c]=new Array("manuals.htm","","Operational and industry manuals from MediClean: Professional Medical Cleaning for Healthcare facilities and Medical Clinics: Melbourne, Australia","manual,procedure,operation,industry,white paper","Operation manuals, procedures, industry white papers for medical and healthcare facilities cleaning services from MediClean.");
c++;
item[c]=new Array("contact.htm","","Contact MediClean: Professional Medical Cleaning for Healthcare and Medical facilities: Melbourne, Australia","contact information, address, phone, telephone, fax, postal address, email address, contact form","Contact details for MediClean including street address, phone and fax numbers as well as a contact form.");
c++;
item[c]=new Array("sitemap.htm","","Sitemap for MediClean: Professional Medical Cleaning for Hospitals and Medical Clinics: Melbourne, Australia","sitemap, website, webpages, links","Sitemap and webpages list with links to all website pages of MediClean.");

page="<html><head><title>MediClean: Search Results</title><link href='mstyle.css' rel='stylesheet' type='text/css'></head><body><table width='850' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td valign='bottom' background='images/bg_hdr.gif'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='bottom' align='right'><img src='images/logo.png' width='235' height='96'></td></tr></table></td></tr><tr><td height='150' valign='bottom' background='images/hdr.png'>&nbsp;</td></tr><tr><td width='600' valign='top' align='center'><div class='pgtitle' align='left'>Your Search Results:</div><table width='100%' cellpadding='10' cellspacing='0'><tr><td>";


function search(frm)
{
 win = window.open("","","scrollbars");
 win.document.write(page);
 txt = frm.srchval.value.split(" ");
 fnd = new Array(); total=0;
 for (i = 0; i < item.length; i++)
 {
  fnd[i] = 0; 
  order = new Array(0, 4, 2, 3);
  for (j = 0; j < order.length; j++)
  for (k = 0; k < txt.length; k++)
  if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
  fnd[i] += (j+1);
 }
 for (i = 0; i < fnd.length; i++)
 {
  n = 0; w = -1;
  for (j = 0;j < fnd.length; j++)
  if (fnd[j] > n) { n = fnd[j]; w = j; };
  if (w > -1) total += show(w, win, n);
  fnd[w] = 0;
 }
 win.document.write("<br><div align='left'>Total found: "+total+"</div></td></tr></table><a href='javascript:window.close()'>Close This Window [X]</a><br><hr noshade size='1' width='50%'><div class='copyright'>&copy; 2007 MediClean</div></td></tr></table></td></tr></table></body></html>");
 win.document.close();
}

function show(which,wind,num)
{
 link = item[which][1] + item[which][0];
 line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> <br>Score: "+num+"<br>";
 line += item[which][4] + "<br>"+link+"<br></td></tr>";
 wind.document.write(line);
 return 1;
}

function qcheck() {
	var doc  = document.qform;
	if (doc.qname.value=="") {
		alert("Please enter your name !!");
		doc.qname.focus();
		return false;
	}
	if (doc.org.value=="") {
		alert("Please enter your organisation name !!");
		doc.org.focus();
		return false;
	}
	if (doc.street.value=="") {
		alert("Please enter your street address !!");
		doc.street.focus();
		return false;
	}
	if (doc.suburb.value=="") {
		alert("Please enter your suburb !!");
		doc.suburb.focus();
		return false;
	}
	if (doc.state.value=="") {
		alert("Please select your state !!");
		doc.state.focus();
		return false;
	}
	if ((doc.ph_mob_home.value=="") && (doc.ph_business.value=="")) {
		alert("Please enter at least one contact phone number !!");
		doc.ph_mob_home.focus();
		return false;
	}
	if (doc.qmail.value=="") {
		alert("Please enter your email address !!");
		doc.qmail.focus();
		return false;
	}
	if ((doc.qmail.value != '') && (doc.qmail.value.indexOf('@') == -1)) {
	    alert("Please enter a valid email address in the format your_name@company.com, etc.");
	    doc.qmail.focus();
	    return false;
	}

	return true;
}

function srvcheck() {
	var doc  = document.serviceform;
	if (doc.sname.value=="") {
		alert("Please enter your name !!");
		doc.sname.focus();
		return false;
	}
	if (doc.site.value=="") {
		alert("Please enter your site name !!");
		doc.site.focus();
		return false;
	}
	if (doc.sphone.value=="") {
		alert("Please enter your contact phone !!");
		doc.sphone.focus();
		return false;
	}
	if (doc.smail.value=="") {
		alert("Please enter your email address !!");
		doc.smail.focus();
		return false;
	}
	if ((doc.smail.value != '') &&  (doc.smail.value.indexOf('@') == -1)) {
	    alert("Please enter a valid email address in the format your_name@company.com, etc.");
	    doc.smail.focus();
	    return false;
	}
	return true;
}

function ccheck() {
	var doc  = document.contactform;
	if (doc.cname.value=="") {
		alert("Please enter your name !!");
		doc.cname.focus();
		return false;
	}

	if ((doc.cmail.value != '') &&  (doc.cmail.value.indexOf('@') == -1)) {
    alert("Please enter a valid email address in the format your_name@company.com, etc.");
    return doc.cmail.focus();
	}
	if (doc.cphone.value=="") {
		alert("Please enter a contact phone number !!");
		doc.cphone.focus();
		return false;
	}

	return true;
}
