function cookiesEnabled()
{
var tmpcookie = new Date();
chkcookie = (tmpcookie.getTime() + '');
document.cookie = "chkcookie=" + chkcookie + "; path=/";
if (document.cookie.indexOf(chkcookie,0) < 0) return false;
else return true;
}
function getRealm(num)
{
if(num==1) return 's';
if(num==3) return 'c';
return 'na';
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write(' \n');
}
function doSearchSubmit(theForm)
{
var targetURL='https://'+location.hostname;
var realm=theForm.realm.options[theForm.realm.selectedIndex].value
switch(realm)
{
case '1':
case '4': targetURL+='/produse/';break;
case '2': targetURL+='/cumpar/';break;
case '3': targetURL+='/firme/';break;
}
if(theForm.keywords.value=='') theForm.keywords.value=' ';
var str=theForm.keywords.value;
str=replaceDiactricits(str);
str = str.replace(/\//g, ' ');
targetURL+=escape(str.replace(/ /g,'-'))+'/';
//alert(str);
if (realm == 4) {
targetURL += 'r/';
}
targetURL+='start-0/10/';
theForm.action=targetURL;
document.location=targetURL;
}
function replaceDiactricits(str)
{
newstr='';
for(i=0;i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i