$("#datasheetTemplate").dialog({
                autoOpen: false,
                height: 520,
                width: 600,
                modal: true,
				resizable: false				
				});
				
$('.datasheetLink').click(function() {

$('#datasheetTemplate').dialog('open');
});


function datasheetDialogClose()
{
$("#datasheetTemplate").dialog('close');
}

$("#email").focus( function ()
{
	if ($(this).val() == "Required")
	{
		$(this).val("");
		$(this).css("color","black");
	}
	
	if ($(this).css("color","red"))
	{
		$(this).css("color","black");
	}

}); 

$("#name").focus( function ()
{
	if ($(this).val() == "Required")
	{
		$(this).val("");
		$(this).css("color","black");
	}
	
	if ($(this).css("color","red"))
	{
		$(this).css("color","black");
	}

}); 

$("#company").focus( function ()
{
	if ($(this).val() == "Required")
	{
		$(this).val("");
		$(this).css("color","black");
	}
	
	if ($(this).css("color","red"))
	{
		$(this).css("color","black");
	}

}); 

function focusValidation()
{
	if ($(this).val() == "Required")
	{
		$(this).val("");
		$(this).css("color","black");
	}
	
	if ($(this).css("color","red"))
	{
		$(this).css("color","black");
	}
}

$(".ui-dialog-titlebar-close").click( function () 
{
document.forms["downloadForm"].reset();
document.getElementById("validationMessage").innerHTML = "";
});

 $("#privacyPolicyScreen").dialog({
                autoOpen: false,
                height: 600,
                width: 700,
                modal: true,
				resizable: true				
				});
				
$('#privacyPolicy').click(function() {$('#privacyPolicyScreen').dialog('open');});
$('#privacyPolicy2').click(function() {$('#privacyPolicyScreen').dialog('open');});

 $("#termsAndConditionsScreen").dialog({
                autoOpen: false,
                height: 600,
                width: 700,
                modal: true,
				resizable: true				
				});
				
$('#termsAndConditions').click(function() {$('#termsAndConditionsScreen').dialog('open');});
