function resetSelect(elemID) {
	$(elemID).selectedIndex=0;
}

function resetTextField(elemID) {
	$(elemID).value="";
}

function uncheckElement(elemID) {
	$(elemID).checked=false;	
}

function uncheckOtherJobTypes() {
	for(var i=1; i<=4; i++) {
		uncheckElement('jobtype_'+i);
	}
}

function checkElement(elemID) {
	$(elemID).checked=true;	
}

function uncheckOtherPostTypes() {
	for(var i=1; i<=3; i++) {
		uncheckElement('posttype_'+i);
	}
}

function resetJobSearchForm() {
	resetTextField('search_keywords');
	resetSelect('search_location');
	resetSelect('search_sector');
	resetSelect('search_salary');
	uncheckOtherJobTypes();
	uncheckOtherPostTypes();
	checkElement('jobtype_0');
	checkElement('posttype_0');	
}

function resetCVSearchForm() {
	resetTextField('search_keywords');
	resetSelect('search_location');
	resetSelect('search_sector');
	resetSelect('search_salary');
	uncheckOtherJobTypes();
	checkElement('jobtype_0');
}