function vpas(str)
{
str=str.replace(/\'/g,'\\\'');
str=str.replace(/\"/g,'\\"');
str=str.replace(/\\/g,'\\\\');
str=str.replace(/\0/g,'\\0');
return str;
}
function vpss(str)
{
str=str.replace(/\\'/g,'\'');
str=str.replace(/\\"/g,'"');
str=str.replace(/\\\\/g,'\\');
str=str.replace(/\\0/g,'\0');
return str;
}
function vpyt1(ytid,cid,title)
{
try
{
// title = vpas(title);
// document.write("here we go" + ytid + " " + cid + " " + title + "
");
// index.php?option=com_content&Itemid=9&id=13&lang=RU&task=view
document.write(" ");
document.write("");
document.write("
");
// document.write(" ");
// document.write("
");
// document.write(" ");
document.write("
");
document.write("");
document.write(" ");
}
catch (e)
{
// catch all thrown errors and print error type
// alert(e.name);
window.status = "1 " + e.name;
}
}
function vpyt2(o,id)
{
try
{
var oH = document.getElementById("trof_rm_"+id);
if(oH)
{
o.href=oH.href
}
else
{
// alert(window.location);
o.href=window.location;
}
//alert("trof_rm_"+id + "\n HREF "+ o.href);
//var sH = "";//sH.href;
}
catch (e)
{
// catch all thrown errors and print error type
window.status = "2 " + e.name;
}
return true;
}
function ft_getC (name)
{
try
{
var dcookie = document.cookie; var cname = name + "="; var clen = dcookie.length; var cbegin = 0;
while (cbegin < clen)
{
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname)
{
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
}
catch (e)
{
// catch all thrown errors and print error type
window.status = "3 " + e.name;
}
return "";
}