﻿function redirect(t,ctl)
{

if (window.event!=null)
{
if (window.event.keyCode==13)
{
window.event.keyCode=0;
if (ctl.value=='')
{
alert('Inserire nel box del testo!');
return;
}

var b=document.getElementById("litHidden");
var type;
if (b==null)
type='4';
else
type=document.getElementById("litHidden").innerHTML;
location.href='http://www.dotnethell.it/Search.aspx?Search=' + ctl.value.replace('\'',' ') + '&type=' + type;
return;
}
return;
}



if (t.which!=null)
{//Firefox
if (t.which==13)
{
if (ctl.value=='')
{
alert('Inserire nel box del testo!');
return;
}
var b=document.getElementById("litHidden");
var type;
if (b==null)
type='4';
else
type=document.getElementById("litHidden").innerHTML;
location.href='http://www.dotnethell.it/Search.aspx?Search=' + ctl.value.replace('\'',' ') + '&type=' + type;
return;
}
return;
}


}

function accept(code)
{
var truthBeTold = window.confirm("Sei sicuro di voler accettare questa risposta?\r\n\r\nPremi OK solo se la risposta data\r\nti ha aiutato a risolvere il problema.\r\nSarà comunque possibile continuare il Thread\r\nanche se sarà marcato come 'Risolto'.");
if (truthBeTold)
location.href="Accept.aspx?ID=" + escape(code);
else
return;
}
