﻿function noPostBack(sNewFormAction)
{
		   var theform;
		   if (window.navigator.appName.toLowerCase().indexOf('microsoft') > -1) {
			theform = document.Form;
		   }
		   else {
			theform = document.forms['Form'];
		   }
		   theform.action = sNewFormAction;
		   theform.encoding='application/x-www-form-urlencoded';
		   theform.__VIEWSTATE.name = 'NOVIEWSTATE';
		   theform.submit();
}

$(document).ready(function()
{
	$(".defaultText").focus(function(srcc)
	{
		if ($(this).val() == $(this)[0].title)
		{
			$(this).removeClass("defaultTextActive");
			$(this).val("");
		}
	});
	
	$(".defaultText").blur(function()
	{
		if ($(this).val() == "")
		{
			$(this).addClass("defaultTextActive");
			$(this).val($(this)[0].title);
		}
	});
	
	$(".defaultText").blur();
});




$(function () {

	// File List fix
	$('.filesList li:even').addClass('alter');
	$('.filesList li').hover(function () {
		$(this).addClass('hover');
	}, function () {
		$(this).removeClass('hover');
	});
});
