//onerror=handleErr;
//if (document.referrer.toLowerCase().substr(0,28)!='http://www.costumes4less.com' & document.referrer.toLowerCase().substr(0,25)!='http://costumes4less.com/' & document.referrer!='')
//{
// url='Referrer.asp?source=' + document.referrer.replace("&","~") + '&landing=' + encodeURI('');
// xmlhttpDivId='';
// HttpRequest(url);
//}
function HttpRequestComplete()
{
if (xmlhttp.readyState==4)
{
if (xmlhttp.status==200)
{
if (xmlhttpDivId=='CatThemeMenuDiv')
{
document.getElementById('CatThemeMenuDiv').innerHTML=xmlhttp.responseText;
document.getElementById('CatThemeMenuDiv').style.border='0px';
document.getElementById('CatThemeMenuDiv').style.background='transparent';
}
else if (xmlhttpDivId!='')
{
document.getElementById(xmlhttpDivId).innerHTML=xmlhttp.responseText;
}
}
else
if (xmlhttpDivId=='CatThemeMenuDiv')
HideCatThemeMenu();
}
}
function HttpRequest(url)
{
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
xmlhttp.onreadystatechange = HttpRequestComplete;
} // code for IE
else if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp)
{
xmlhttp.onreadystatechange = HttpRequestComplete;
xmlhttp.open("GET",url,true);
xmlhttp.send();
}
}
return;
}
var xmlhttp;
var xmlhttpDivId;
function handleErr(msg,url,l)
{
url='javascripterrorreport.asp?msg=' + msg + '&url=' + url + '&line=' + l;
xmlhttpDivId='';
HttpRequest(url);
return true;
}
function FillCatThemeMenu(qstr,event)
{
document.getElementById('CatThemeMenuDiv').style.display='inline';
return;
}
FillCatThemeMenuWroking=0;
function FillCatThemeMenu1(qstr,event)
{
if (qstr!='' && FillCatThemeMenuWroking!=1)
{
FillCatThemeMenuWroking=1;
document.getElementById('CatThemeMenuDiv').innerHTML="
Please Wait . . .";
document.getElementById('CatThemeMenuDiv').style.background='#ffffff';
document.getElementById('CatThemeMenuDiv').style.border='1px solid #993333';
document.getElementById('CatThemeMenuDiv').style.left=event.clientX+document.body.scrollLeft;
document.getElementById('CatThemeMenuDiv').style.top=event.clientY+document.body.scrollTop;
url='CatThemeMenu1.asp?' + qstr;
xmlhttpDivId='CatThemeMenuDiv';
HttpRequest(url);
}
document.getElementById('CatThemeMenuDiv').style.display='inline';
return;
}
function FillCatThemeMenu2(qstr,event)
{
if (qstr!='' && FillCatThemeMenuWroking!=1)
{
FillCatThemeMenuWroking=1;
document.getElementById('CatThemeMenuDiv').innerHTML="
Please Wait . . .";
document.getElementById('CatThemeMenuDiv').style.background='#ffffff';
document.getElementById('CatThemeMenuDiv').style.border='1px solid #993333';
document.getElementById('CatThemeMenuDiv').style.left=event.clientX+document.body.scrollLeft;
document.getElementById('CatThemeMenuDiv').style.top=event.clientY+document.body.scrollTop;
url='CatThemeMenu2.asp?' + qstr;
xmlhttpDivId='CatThemeMenuDiv';
HttpRequest(url);
}
document.getElementById('CatThemeMenuDiv').style.display='inline';
return;
}
function FillRelatedCatHeader(qstr)
{
if (qstr!='')
{
url='RelatedCatThemeHeader.asp?sid=' + qstr;
xmlhttpDivId='RelatedCatHeaderDiv';
HttpRequest(url);
}
return;
}
function FillRelatedThemeHeader(qstr)
{
if (qstr!='')
{
url='RelatedCatThemeHeader.asp?tid=' + qstr;
xmlhttpDivId='RelatedThemeHeaderDiv';
HttpRequest(url);
}
return;
}
function HideCatThemeMenu()
{
FillCatThemeMenuWroking=0;
document.getElementById('CatThemeMenuDiv').style.display='none';
return true;
}
function ShowDiv(id,event)
{
if (event && document.getElementById(id).style.display=='none')
document.getElementById(id).style.left=event.clientX-Math.round(document.getElementById(id).style.width.replace('px','')/2);
if (document.getElementById(id))
document.getElementById(id).style.display='inline';
}
function HideDiv(id)
{
if (document.getElementById(id))
document.getElementById(id).style.display='none';
}
function MoreLessDiv(id,ClassChange)
{
if (document.getElementById(id))
if (document.getElementById(id).style.display=='none')
{
document.getElementById(id).style.display='inline';
ClassChange.className='Less';
}
else
{
document.getElementById(id).style.display='none';
ClassChange.className='More';
}
}
str='';
str=str + '
';
str=str + '';
str=str + '| ';
str=str + '';
str=str + ' | ';
str=str + ' | ';
str=str + '';
str=str + '';
str=str + ' | ';
str=str + '
';
str=str + '
';
if (document.getElementById('CustomerServiceDiv'))
document.getElementById('CustomerServiceDiv').innerHTML=str;