var page=encodeURI(document.location.href.toLowerCase());
var source = page.substring(0,page.lastIndexOf('.htm'));
strRef = source + '.asp';
window.parent.location.replace (strRef);