function clearSearchText() {
	var srchFld = document.getElementById('keyword').value;
	if (srchFld == 'Search Site') {
		document.getElementById('keyword').value = '';
	}
}
function clearDefaultText(fld,txt) {

	if (fld.value == txt) {
		fld.value = '';
	}
}

function addSearchText() {
	var srchFld = document.getElementById('keyword').value;
	if (srchFld == '') {
		document.getElementById('keyword').value = 'Search Site';
	}
}

function sendLogin() {
	$.ajax({
		type: "POST",
		url: "/Modules/CustomForms/Login/AjaxLogin.asp",
		data: "Username="+document.getElementById('Username').value+"&Password="+document.getElementById('Password').value,
		success: function(content){
			$("#login").html(content);
			//window.location.reload();
		}
	});
}

function sendLogout() {
	$.ajax({
		type: "POST",
		url: "/Modules/CustomForms/Login/AjaxLogout.asp",
		success: function(content){
			$("#login").html(content);
			//window.location.reload();
		}
	});
}


function categoryUpdater(){
	$("#selectmake").change(function(){
		if ( $("select#selectmake option:selected").val() !=0 ){
			subCategoryAjax($("select#selectmake option:selected").val());
		}
	});
}





