function IsNumeric(input) {
	return (input - 0) == input && input.length > 0;
}
function IsEmail(input) {
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(input);
}
(function($) {
	$.fn.self = function() {
		return $(this).clone().remove().html();
	}
})(jQuery);
function title_hazirla() {
	$("input[title!=], textarea[title!=]").each(function(a, b) {
		if ($(this).val() == "") {
			$(this).val($(this).attr("title"));
			$(this).addClass("titled");
		}
		$(this).focus(function() {
			if ($(this).val() == $(this).attr("title")) {
				$(this).val("");
				$(this).removeClass("titled");
			}
		});
		$(this).blur(function() {
			if ($(this).val() == "") {
				$(this).val($(this).attr("title"));
				$(this).addClass("titled");
			}
		});
	});
}
function title_kaldir() {
	$("input.titled[title!=],textarea.titled[title!=]").each(function(a, b) {
		if ($(this).val() == $(this).attr("title")) {
			$(this).val("");
		}
		$(this).removeClass("titled");
	});
}
$(document).ready(function() {
	var SW = screen.width;
	if(SW < 1200 && SW > 1000) {
		$("html").addClass("SR_1024x768");
	}
});
