$(document).ready(function(){
	//add class to body if IE6 because it's a toolshed
	if(jQuery.browser.msie && (jQuery.browser.version < 7)){
		$("body").addClass("stylesIE6");
	}
	
	//popup links
	$(".popuplink").click(function(e){
		var url=$(e.target).attr("href");
		newwindow=window.open(url,'name');
		if (window.focus) {newwindow.focus()}
		return false;
	});
	
	//clear input values on click
	$(".clearValueOnClick").click(function(e){
		$(e.target).val('');
		$(e.target).removeClass("clearValueOnClick");
		return false;
	});
	
});