function CheckForErrorMessages(){$q=$.parseQuery();if($q.error!=undefined){if($("#dialog").length==0)
$("body").append("<div id='dialog'></div>");switch($q.error)
{case"na":$("#dialog").html("You must enter both a user id and password.");break;case"pwd":case"user":$("#dialog").html("<p>The user id/password combination you have entered is invalid.</p><p>Please confirm that you are using the correct user id and password before trying again.</p>");break;case"expired":$("#dialog").html("<p>Your user account has expired.</p><p>Please contact <a href='mailto:support@picturetrax.com'>support</a> to have your account re-enabled.</p>");break;case"toa":$("#dialog").html("<p>You must agree to the Terms and Conditions of use before you will be allowed into the site.</p>");break;default:$("#dialog").html("<p>An unknown error has occurred.</p><p>Please contact <a href='mailto:support@picturetrax.com'>support</a> to help fix this problem.</p>");break;}
$("#dialog").dialog({title:'Log-in Error',buttons:{"Ok":function(){$(this).dialog("close");}},modal:true,hide:'highlight',resizable:false,draggable:false}).parent().effect("pulsate",{times:3},500);}};
