// URLQSParser1, Made in 1997 by Rui M. SIlva <mc18711@ci.uminho.pt>
var thisUrl=document.URL.toString()
var start=1+thisUrl.indexOf('?')
var qs=thisUrl.substring(start,thisUrl.length); // Capture the QueryString
if (start > 0) { // If there is a QS then...
	var sets=qs.split('&'), nsets=sets.length; // sets is an array of strings in the format var=value
	for(i=0;i<nsets;i++) { // for each pair...
		pair=sets[i].toString().split('=');    // splice it...
		eval("var "+pair[0]+"='"+pair[1]+"';");  // and eval it.
	}
}

function checkSearch(theForm) {
	switch(theForm.operation.options.selectedIndex) {
		case 1:
			theForm.action = "/site/search/content-liability.aspx?ID=63";
			break;    
		case 2:
			theForm.action = "/site/search/data-protection-and-privacy.aspx?ID=64";
			break;    
		case 3:
			theForm.action = "/site/search/employment-and-immigration.aspx?ID=66";
			break;    
		case 4:
			theForm.action = "/site/search/intellectual-property.aspx?ID=67";
			break;    
		case 5:
			theForm.action = "/site/search/regulatory-compliance.aspx?ID=68";
			break;    
		case 6:
			theForm.action = "/site/search/tax-and-corporate-finance.aspx?ID=69";
			break;    
	}
	theForm.submit();
	return false;
}

function populateSearch() {
	if (operation != "") {
		document.getElementById('section')[operation].selected = true;	
	}
}
