function close_return() 
{
window.close();
}

function print_return() 
{
window.print();
}

function shop_close()
{ 
self.close();
}

function shop_update()
{ 
window.opener.location.reload();
self.close();
}

var t;
function clockStartLoad() {
t = setTimeout("window.close()",10000);
}
function clockStopClose() {
clearTimeout(t);
}


function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}
function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}